Open
Description
I build it on my Android phone chroot container
my env:
ubuntu-22.04-arm64
gcc 12.3 g++ 12.3
protoc 3.12.4
libfmt must compile alone,otherwise could not find std.h.
https://github.com/fmtlib/fmt
apt-get install -yq \
cmake git golang libbrotli-dev \
libgtest-dev liblz4-dev libpcre2-dev libprotobuf-dev libunwind-dev \
libzstd-dev pkg-config protobuf-compiler ninja-build xz-utils \
libusb-1.0-0-dev libbsd-dev
make -j8 -lbsd
Then i got an error:
[ 93%] Running cpp protocol buffer compiler on adb/proto/app_processes.proto
app_processes.proto: This file contains proto3 optional fields, but --experimental_allow_proto3_optional was not set.
make[2]: *** [vendor/CMakeFiles/libadb.dir/build.make:75: vendor/app_processes.pb.h] Error 1
make[1]: *** [CMakeFiles/Makefile2:327: vendor/CMakeFiles/libadb.dir/all] Error 2
make: *** [Makefile:156: all] Error 2