Making .so file for Android
Opened this issue · 0 comments
ybjeon commented
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.