Compiling opencv-mobile

  • Hello,

    We are unable to reproduce this error message at the moment. Please try compiling with this package and see if the error persists.
    Downloaded 436 times
  • Cool! I was able to just run "opencv-mobile-test" directly from the build directory and it worked right away!

    I'll try compiling it tomorrow.
  • Trying to compile, I keep getting:

    Code: Select all

    CMake Error at CMakeLists.txt:9 (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.
    I'm not very good at all this CPP make stuff! :?
  • Is there anything else to modify in CMakeLists.txt besides changing the cross-compiler path?

    The normal compilation process is illustrated in the diagram below:
    企业微信截图_17067683209763.png
  • 我遇到了跟他一模样的问题。
    我的文件夹内容见附件。
    报错内容与命令行反馈也在附件中。
    Attachments
    Screenshot from 2024-02-01 18-37-21.png
    Downloaded 378 times
  • 不过,我用你在这个贴子里上传的压缩包就好了。我的是luckfox-pico ,把cmakelists中的内容按我自己的系统改了改。
  • 尝试替换一下 opencv-mobile-4.8.1-luckfox-pico 包,再进行编译
    Attachments
    Downloaded 328 times