NDK - problems after GNUSTL has been removed from the NDK (revision r18)

前端 未结 3 606
谎友^
谎友^ 2020-12-03 20:07

Today I updated my Android Studio NDK to the most recent release 18.0.5002713. After the successful installation process I tried to rerun my app but was not abl

3条回答
  •  抹茶落季
    2020-12-03 20:39

    first reply to @Aqeel iqbal's comment in the first comment, the reason you cannot find a cmakelist is may because you are not using opencv sources, opencv provide independet package for android sdk. The following ling is the origenal source for opencv sources opencv release, choose sources to download, not android pack.

    After download the sources, cd to the root dir of the source file e.g. opencv-2.4.13.6 then execute the command provided by @y30, and noted the $ANDROID_DIR may not be your correct file path of your android ndk, for me I use these:

    ... -DCMAKE_TOOLCHAIN_FILE=/Users/ihandysoft/Library/Android/sdk/ndk-bundle/build/cmake/android.toolchain.cmake ...

    here is armv8a I had generated https://github.com/2666fff/opencv-for-android

提交回复
热议问题