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

Problem with static compilation #58

Open
M1cha opened this issue Jul 24, 2015 · 0 comments
Open

Problem with static compilation #58

M1cha opened this issue Jul 24, 2015 · 0 comments

Comments

@M1cha
Copy link

M1cha commented Jul 24, 2015

this is my config:
cmake -DANDROID_ABI="armeabi-v7a with NEON" -DANDROID_NATIVE_API_LEVEL=android-22

/media/Data/android/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: error: /media/Data/android/android-ndk-r10d/platforms/android-21/arch-arm/usr/lib/libc.a(new.o): multiple definition of 'operator delete(void*)'
/media/Data/android/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: /media/Data/android/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a(del_op.o): previous definition here

If I switch to stlport_static I get this error:
/tmp/ndk-user/tmp/build-stlport/ndk/sources/cxx-stl/gabi++/src/fatal_error.cc:65: error: undefined reference to 'dlopen'
/tmp/ndk-user/tmp/build-stlport/ndk/sources/cxx-stl/gabi++/src/fatal_error.cc:68: error: undefined reference to 'dlsym'
/tmp/ndk-user/tmp/build-stlport/ndk/sources/cxx-stl/gabi++/src/fatal_error.cc:72: error: undefined reference to 'dlclose'

what this basically means is that I can't use any stl without having some kind of weird errors.

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