CMake Error at CMakeLists.txt:6 (find_package):
By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenCV", but
CMake did not find one.
> Task :app:configureCMakeDebug[arm64-v8a] FAILED
C/C++: CMake Error at CMakeLists.txt:6 (find_package):
C/C++: By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
C/C++: asked CMake to find a package configuration file provided by "OpenCV", but
C/C++: CMake did not find one.
C/C++: Could not find a package configuration file provided by "OpenCV" with any
C/C++: of the following names:
C/C++: OpenCVConfig.cmake
C/C++: opencv-config.cmake
C/C++: Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
C/C++: "OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
C/C++: provides a separate development package or SDK, be sure it has been
C/C++: installed.
> Task :app:configureCMakeDebug[armeabi-v7a] FAILED
C/C++: CMake Error at CMakeLists.txt:6 (find_package):
C/C++: By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
C/C++: asked CMake to find a package configuration file provided by "OpenCV", but
C/C++: CMake did not find one.
C/C++: Could not find a package configuration file provided by "OpenCV" with any
C/C++: of the following names:
C/C++: OpenCVConfig.cmake
C/C++: opencv-config.cmake
C/C++: Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
C/C++: "OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
C/C++: provides a separate development package or SDK, be sure it has been
C/C++: installed.
> Task :app:configureCMakeDebug[x86] FAILED
C/C++: CMake Error at CMakeLists.txt:6 (find_package):
C/C++: By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
C/C++: asked CMake to find a package configuration file provided by "OpenCV", but
C/C++: CMake did not find one.
C/C++: Could not find a package configuration file provided by "OpenCV" with any
C/C++: of the following names:
C/C++: OpenCVConfig.cmake
C/C++: opencv-config.cmake
C/C++: Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
C/C++: "OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
C/C++: provides a separate development package or SDK, be sure it has been
C/C++: installed.
> Task :app:configureCMakeDebug[x86_64] FAILED
C/C++: CMake Error at CMakeLists.txt:6 (find_package):
C/C++: By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
C/C++: asked CMake to find a package configuration file provided by "OpenCV", but
C/C++: CMake did not find one.
C/C++: Could not find a package configuration file provided by "OpenCV" with any
C/C++: of the following names:
C/C++: OpenCVConfig.cmake
C/C++: opencv-config.cmake
C/C++: Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
C/C++: "OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
C/C++: provides a separate development package or SDK, be sure it has been
C/C++: installed.
[CXX1429] error when building with cmake using C:\Users\Administrator\Desktop\android-yolov8-bytetrack\app\src\main\cpp\CMakeLists.txt: -- The C compiler identification is Clang 14.0.7
-- The CXX compiler identification is Clang 14.0.7
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/development/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/development/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring incomplete, errors occurred!
See also "C:/Users/Administrator/Desktop/android-yolov8-bytetrack/app/.cxx/Debug/24153m3g/arm64-v8a/CMakeFiles/CMakeOutput.log".
C++ build system [configure] failed while executing:
@echo off
"D:\\development\\Android\\sdk\\cmake\\3.22.1\\bin\\cmake.exe" ^
"-HC:\\Users\\Administrator\\Desktop\\android-yolov8-bytetrack\\app\\src\\main\\cpp" ^
"-DCMAKE_SYSTEM_NAME=Android" ^
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON" ^
"-DCMAKE_SYSTEM_VERSION=24" ^
"-DANDROID_PLATFORM=android-24" ^
"-DANDROID_ABI=arm64-v8a" ^
"-DCMAKE_ANDROID_ARCH_ABI=arm64-v8a" ^
"-DANDROID_NDK=D:\\development\\Android\\sdk\\ndk\\25.2.9519653" ^
"-DCMAKE_ANDROID_NDK=D:\\development\\Android\\sdk\\ndk\\25.2.9519653" ^
"-DCMAKE_TOOLCHAIN_FILE=D:\\development\\Android\\sdk\\ndk\\25.2.9519653\\build\\cmake\\android.toolchain.cmake" ^
"-DCMAKE_MAKE_PROGRAM=D:\\development\\Android\\sdk\\cmake\\3.22.1\\bin\\ninja.exe" ^
"-DCMAKE_CXX_FLAGS=-std=c++17" ^
"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\Administrator\\Desktop\\android-yolov8-bytetrack\\app\\build\\intermediates\\cxx\\Debug\\24153m3g\\obj\\arm64-v8a" ^
"-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=C:\\Users\\Administrator\\Desktop\\android-yolov8-bytetrack\\app\\build\\intermediates\\cxx\\Debug\\24153m3g\\obj\\arm64-v8a" ^
"-DCMAKE_BUILD_TYPE=Debug" ^
"-BC:\\Users\\Administrator\\Desktop\\android-yolov8-bytetrack\\app\\.cxx\\Debug\\24153m3g\\arm64-v8a" ^
-GNinja
from C:\Users\Administrator\Desktop\android-yolov8-bytetrack\app
CMake Error at CMakeLists.txt:6 (find_package):
By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenCV", but
CMake did not find one.
Could not find a package configuration file provided by "OpenCV" with any
of the following names:
OpenCVConfig.cmake
opencv-config.cmake
Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
"OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
provides a separate development package or SDK, be sure it has been
installed.
解决方案 须修改本地opencv ncnn地址