I am trying to compile a project on wsl (ubantu 20.0) with android-ndk-r20b (I also tried r23b), and I failed:
The imported target "ade" references the file
"/home/workspace/bolt/third_party/android-aarch64/opencv/sdk/native/3rdparty/libs/libade.a"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/home/workspace/bolt/third_party/android-aarch64/opencv/sdk/native/jni/abi-/OpenCVModules.cmake"
but not all the files it references.
Call Stack (most recent call first):
third_party/android-aarch64/opencv/sdk/native/jni/abi-/OpenCVConfig.cmake:139 (include)
CMakeLists.txt:31 (include)
I guess it is because the download link https://github.com/opencv/ade/archive/ in opencv-4.5.2/modules/gapi/cmake/DownloadADE.cmake
cannot be accessed (404), but I don’t know how to fix it. Please help me.
By the way, if I build with BUILD_TEST=OFF, this problem disappears. However, I need to do something with BUILD_TEST=ON.