• <bdo id='POVkA'></bdo><ul id='POVkA'></ul>

      <small id='POVkA'></small><noframes id='POVkA'>

      1. <tfoot id='POVkA'></tfoot><legend id='POVkA'><style id='POVkA'><dir id='POVkA'><q id='POVkA'></q></dir></style></legend>
        <i id='POVkA'><tr id='POVkA'><dt id='POVkA'><q id='POVkA'><span id='POVkA'><b id='POVkA'><form id='POVkA'><ins id='POVkA'></ins><ul id='POVkA'></ul><sub id='POVkA'></sub></form><legend id='POVkA'></legend><bdo id='POVkA'><pre id='POVkA'><center id='POVkA'></center></pre></bdo></b><th id='POVkA'></th></span></q></dt></tr></i><div id='POVkA'><tfoot id='POVkA'></tfoot><dl id='POVkA'><fieldset id='POVkA'></fieldset></dl></div>

        cmake 在 opencv c++ 项目中不起作用

        cmake is not working in opencv c++ project(cmake 在 opencv c++ 项目中不起作用)

        <small id='nQaTV'></small><noframes id='nQaTV'>

          <bdo id='nQaTV'></bdo><ul id='nQaTV'></ul>
            <tbody id='nQaTV'></tbody>
          <legend id='nQaTV'><style id='nQaTV'><dir id='nQaTV'><q id='nQaTV'></q></dir></style></legend>

            1. <tfoot id='nQaTV'></tfoot>

              • <i id='nQaTV'><tr id='nQaTV'><dt id='nQaTV'><q id='nQaTV'><span id='nQaTV'><b id='nQaTV'><form id='nQaTV'><ins id='nQaTV'></ins><ul id='nQaTV'></ul><sub id='nQaTV'></sub></form><legend id='nQaTV'></legend><bdo id='nQaTV'><pre id='nQaTV'><center id='nQaTV'></center></pre></bdo></b><th id='nQaTV'></th></span></q></dt></tr></i><div id='nQaTV'><tfoot id='nQaTV'></tfoot><dl id='nQaTV'><fieldset id='nQaTV'></fieldset></dl></div>

                  本文介绍了cmake 在 opencv c++ 项目中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我需要你的帮助!我在这个链接中有这个 C++ 代码

                  [链接] https://github.com/royshil/FoodcamClassifier

                  而且我两天以来一直在尝试编译它,但我失败了他们说我必须使用 cmake ,我试过GUI 版本,它给了我与 cmake 本身相关的错误.所以我拿了 cpp 和头文件并创建了一个新项目,但我现在有 100 个与 opencv 库相关的错误,我向上帝发誓我确定我的项目中包含文件夹和它的库!不知道怎么回事!

                  有什么想法吗?

                  错误如下:

                  <前>'CMake 错误:无法打开缓存文件进行保存.C:/Program Files/CMake 2.8/bin/CMakeCache.txtCMakeLists.txt:4 (FIND_PACKAGE) 处的 CMake 错误:找不到模块 FindOpenCV.cmake 或包的配置文件开放简历.调整 CMAKE_MODULE_PATH 以找到 FindOpenCV.cmake 或将 OpenCV_DIR 设置为包含 OpenCV 的 CMake 配置文件的目录.该文件将具有以下名称之一:OpenCVConfig.cmakeopencv-config.cmakeOpenCV_DIR-NOTFOUND配置不完整,出现错误!CMake 错误:无法打开缓存文件进行保存.C:/Program Files/CMake 2.8/bin/CMakeCache.txtCMake 错误::系统错误:权限被拒绝CMake 错误::系统错误:权限被拒绝 '

                  解决方案

                  您可能需要在 CMakeLists.txt 之前 中添加以下代码段行 FIND_PACKAGE(OpenCV Required) (在我的情况下):

                  SET("OpenCV_DIR" "PATH/TO/CMake/build")

                  在我的安装中它解决了问题,因为提到的文件位于构建文件夹中.

                  I need your help ! I have this C++ code in this link

                  [link] https://github.com/royshil/FoodcamClassifier

                  and I've been trying since two days to compaile it , and I've failed they say that I have to use cmake , I've tried the "GUI version and it gave me errors realted to the cmake itself . so I took the cpp and header files and made a new project but I have now 100 errors related to the opencv library and I swear to god I'm sure of the include folders and the libs of it in my project ! don't know what's the matter with it !

                  any idea ?

                  Here's the errors :

                  'CMake Error: Unable to open cache file for save. C:/Program Files/CMake 2.8/bin/CMakeCache.txt
                  CMake Error at CMakeLists.txt:4 (FIND_PACKAGE):
                    Could not find module FindOpenCV.cmake or a configuration file for package
                    OpenCV.
                  
                    Adjust CMAKE_MODULE_PATH to find FindOpenCV.cmake or set OpenCV_DIR to the
                    directory containing a CMake configuration file for OpenCV.  The file will
                    have one of the following names:
                  
                      OpenCVConfig.cmake
                      opencv-config.cmake
                  
                  
                  
                  OpenCV_DIR-NOTFOUND
                  Configuring incomplete, errors occurred!
                  CMake Error: Unable to open cache file for save. C:/Program Files/CMake 2.8/bin/CMakeCache.txt
                  CMake Error: : System Error: Permission denied
                  CMake Error: : System Error: Permission denied '
                  

                  解决方案

                  You're probably gonna have to add the following piece of code in the CMakeLists.txt before the line FIND_PACKAGE(OpenCV Required) (in my case):

                  SET("OpenCV_DIR" "PATH/TO/CMake/build")
                  

                  In my installation it solved the problem since the mentioned files are located in the build folder.

                  这篇关于cmake 在 opencv c++ 项目中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  What is inside .lib file of Static library, Statically linked dynamic library and dynamically linked dynamic library?(静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么?)
                  How do I load a C DLL from the SXS in Python?(如何从 Python 中的 SXS 加载 C DLL?)
                  Can Cython code be compiled to a dll so C++ application can call it?(Cython 代码可以编译成 dll 以便 C++ 应用程序可以调用它吗?)
                  Delay Loading DLLs(延迟加载 DLL)
                  Throwing C++ exceptions across DLL boundaries(跨 DLL 边界抛出 C++ 异常)
                  Loading a dll from a dll?(从 dll 加载 dll?)

                    <i id='OBxZT'><tr id='OBxZT'><dt id='OBxZT'><q id='OBxZT'><span id='OBxZT'><b id='OBxZT'><form id='OBxZT'><ins id='OBxZT'></ins><ul id='OBxZT'></ul><sub id='OBxZT'></sub></form><legend id='OBxZT'></legend><bdo id='OBxZT'><pre id='OBxZT'><center id='OBxZT'></center></pre></bdo></b><th id='OBxZT'></th></span></q></dt></tr></i><div id='OBxZT'><tfoot id='OBxZT'></tfoot><dl id='OBxZT'><fieldset id='OBxZT'></fieldset></dl></div>
                    1. <tfoot id='OBxZT'></tfoot>
                        <legend id='OBxZT'><style id='OBxZT'><dir id='OBxZT'><q id='OBxZT'></q></dir></style></legend>
                          <bdo id='OBxZT'></bdo><ul id='OBxZT'></ul>
                        • <small id='OBxZT'></small><noframes id='OBxZT'>

                            <tbody id='OBxZT'></tbody>