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

error when selecting gnustl_shared #5

Closed
preet opened this issue Sep 5, 2013 · 2 comments
Closed

error when selecting gnustl_shared #5

preet opened this issue Sep 5, 2013 · 2 comments

Comments

@preet
Copy link

preet commented Sep 5, 2013

If I pass -DANDROID_STL=gnustl_shared to cmake, I get an error during configuration like so:

Error copying file (if different) from "/home/user/Dev/env/sys/android-toolchain-arm/arm-linux-androideabi/lib/armv7-a/libgnustl_shared.so" to "/libgnustl_shared.so".
CMake Error at /home/user/Downloads/build/android-cmake/android.toolchain.cmake:1138 (message):
Failed copying of
/home/user/Dev/env/sys/android-toolchain-arm/arm-linux-androideabi/lib/armv7-a/libgnustl_shared.so
to the /libgnustl_shared.so

It seems like the variable LIBRARY_OUTPUT_PATH is empty when this is called [line 1138]. If I copy the block of code responsible for copying libgnustl_shared to after where output directories are setup (line 1546) the error goes away... I don't know if this breaks anything else or if I'm doing something else wrong to generate the error in the first place.

@rggjan
Copy link

rggjan commented Nov 28, 2013

This doesn't work, because then it uses the wrong stl to LINK, see line 1340.

When moving this block down, then it copies libgnustl_shared.so to the right folder, but links against libgnustl_static.a in the end...

@taka-no-me
Copy link
Owner

Thanks all for reporting. Hope I've fixed this issue.

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

3 participants