Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build for android errro! #303

Open
summerlotus513 opened this issue Jan 7, 2022 · 1 comment
Open

build for android errro! #303

summerlotus513 opened this issue Jan 7, 2022 · 1 comment

Comments

@summerlotus513
Copy link

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?

@summerlotus513
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant