Skip to content
Discussion options

You must be logged in to vote

So I know this is old, but just in case you haven't figured it out, I'm pretty sure you have to specify the target-arch ZLib path and lib in cmake. I had to do something similar when building protobuf from source.

Something like:

-DZLIB_LIBRARY=$(xx-info sysroot)lib/libz.so \
-DZLIB_INCLUDE_DIR=${xx-info sysroot)usr/include \

You'll probably have to do that with any other dependency libraries as well. An alternative might be to add your target-arch lib and include paths to your LDFLAGS and CFLAGS/CXXFLAGS variables. I'm not sure if xx does this by default.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AFCMS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants