CMake Error at CMakeLists.txt:6 (find_package):

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地址

  • 20
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值