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

Can I use it to compile .so lib #3

Open
MicahXIE opened this issue Sep 15, 2019 · 1 comment
Open

Can I use it to compile .so lib #3

MicahXIE opened this issue Sep 15, 2019 · 1 comment

Comments

@MicahXIE
Copy link

collect install directories to build/install

cmake -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON
-DCMAKE_TOOLCHAIN_FILE="${NDK_ROOT}/build/cmake/android.toolchain.cmake"
-DANDROID_NDK="${NDK_ROOT}"
-DANDROID_NATIVE_API_LEVEL=${API_LEVEL}
-DANDROID_ARM_NEON=ON
-DANDROID_ABI="$ABI"
-DCMAKE_BUILD_TYPE=Release
-DBUILD_TESTING=OFF
-DANDROID_STL="c++_shared"
../../

cmake version: 3.6.2
ndk version: android-ndk-r14b

I just changed -DANDROID_STL but it still generate .a lib. Do I need to change any other things. Thanks

@wangyendt
Copy link

You could take a try to turn on this option: -DBUILD_SHARED_LIBS=ON

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

2 participants