Open summerlotus513 opened 2 years ago
i try recompile protobuf with configure
$ make clean
$ make distclean
$ ./autogen.sh
$ ./configure --enable-static --disable-shared --host=arm-eabi --with-sysroot=$SYSROOT CC=$CC CXX=$CXX CFLAGS="-fPIC -DANDROID -nostdlib" --enable-cross-compile --with-protoc=protoc LIBS="-lc" --prefix=$OUTPUT_DIR
not worked!
i want build it for android. i compileted zeromq and protobuf with https://github.com/machinekit/QtQuickVcp#android_install when i build it in Qt, i get amny error sush as
:-1: error: error: /opt/protobuf-android/lib/libprotobuf.a(common.o): requires unsupported dynamic reloc R_ARM_REL32; recompile with -fPIC
Qt: 5.12.2 NDK: r19c SDK: 24.4.1 JDK: 8u311 So, how i can solve it?