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

Making .so file for Android #90

Open
ybjeon opened this issue Aug 13, 2024 · 0 comments
Open

Making .so file for Android #90

ybjeon opened this issue Aug 13, 2024 · 0 comments

Comments

@ybjeon
Copy link

ybjeon commented Aug 13, 2024

My project's goal is to run this library on Android.

At first, I tried to used .so files in this repo, but it throws the error :

"java.lang.UnsatisfiedLinkError: dlopen failed: library "libstdc++.so.6" not found:"

than I realized I have to build my own .so for Android.

I'm in the middle of making .so files using command below,

cmake -B build -S . \
    -DUSE_SWIG=ON \
    -DUSE_OPENMP=OFF \
    -DUSE_HOMEBREW_FALLBACK=OFF \
    -DCMAKE_TOOLCHAIN_FILE=$NDK/build/cmake/android.toolchain.cmake \
    -DANDROID=true \
    -DANDROID_STL=c++_shared\
    -DANDROID_ABI=arm64-v8a \
    -DANDROID_PLATFORM=android-33

but it still didn't work well and occasionally stopped.

Have you tried any attempt for deploying it on Android?

or could you give me the cmake command which you used for making lib_lightgbm.so files in this repo.?

BTW, thanks for the great library.

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