viaduck/openssl-cmake

android compile demo

Closed this issue · 1 comments

hello, could you show a complete android compile demo. There shows an error "Use NDK cmake toolchain or cmake android autoconfig" when I compile for Android

Have a look at the CI configuration. You have to specify the path to the CMake toolchain file from the Android NDK installation, e.g. -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake. Android Studio does this automatically when you setup linking to a native library.