CMAKE:配置过程中的错误,项目文件可能无效

发布于 2025-01-21 23:26:20 字数 8 浏览 2 评论 0原文

continue

I am new to cmake. I am trying to build opencv using cmake 3.7.2 (64 bit)to be used in Qt.
I am working on a windows 10 64 bit system.
I have followed the steps given in the link:
https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows

As per the instructions I installed Qt-Qt5.9-MingGW 5.3.0 32 bit.

The path for MinGW is also set to C:\Qt\Tools\mingw530_32\bin.

The link above shows the following instructions:

Compiling OpenCV

When I followed the instructions for building opencv I got the following error after clicking "Configure"

Error message

It would be good if someone can help me with this problem.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苍白女子 2025-01-28 23:26:20

continue

I believe you missed the instruction to set QT_MAKE_EXECUTABLE and other variables in cmake-gui. The instructions from the https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows documentation state this:

Set QT_MAKE_EXECUTABLE to D:\Qt\5.9\mingw53_32\bin\qmake.exe
Set Qt5Concurrent_DIR to D:\Qt\5.9\mingw53_32\lib\cmake\Qt5Concurrent
Set Qt5Core_DIR to D:\Qt\5.9\mingw53_32\lib\cmake\Qt5Core
Set Qt5Gui_DIR to D:\Qt\5.9\mingw53_32\lib\cmake\Qt5Gui
Set Qt5Test_DIR to D:\Qt\5.9\mingw53_32\lib\cmake\Qt5Test
Set Qt5Widgets_DIR to D:\Qt\5.9\mingw53_32\lib\cmake\Qt5Widgets
Set Qt5OpenGL_DIR to D:\Qt\5.9\mingw53_32\lib\cmake\Qt5OpenGL
Set CMAKE_BUILD_TYPE to Release or RelWithDebInfo
Set OPENCV_VS_VERSIONINFO_SKIP=1

You do these inside cmake-gui

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文