第一范文网 - 专业文章范例文档资料分享平台

毕业设计笔记之OpenCV各种环境搭建by捉不住的鼬鼠

来源:用户分享 时间:2025/5/31 10:33:22 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

选择编译器:

出现错误:

CMake Error: CMake was unable to find a build program corresponding to \CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.

CMake Error: CMake was unable to find a build program corresponding to \CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is:

CMAKE_CXX_COMPILER_ENV_VAR CMake Error: Could not find cmake module file:

C:/soft/OpenCV2.4.8/build/x86/mingw/CMakeFiles/3.2.1/CMakeCXXCompiler.cmake

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is:

CMAKE_C_COMPILER_ENV_VAR CMake Error: Could not find cmake module file: C:/soft/OpenCV2.4.8/build/x86/mingw/CMakeFiles/3.2.1/CMakeCCompiler.cmake Configuring incomplete, errors occurred! 需要添加MinGW的环境变量到PATH: C:\\soft\\QT5.4.1\\Tools\\mingw491_32\\bin

退出后再次打开CMake,完成:

再次点击configure,红色消失:

然后点击Generate:

进入mingw目录:

输入mingw32-make:

这样可用于QT和mingw编译器的库文件就生成了。而对于Linux,只需要三句命令: cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. make

sudo make install 太方便了,所以我比较喜欢在Linux环境下编程。 做完上面的步骤,还要添加环境变量: C:\\soft\\OpenCV2.4.8\\build\\x86\\mingw\\bin

毕业设计笔记之OpenCV各种环境搭建by捉不住的鼬鼠.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c5hai336kpr507xm0vyne_9.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top