Qt Creator的OpenCV配置中出错 [英] Error in OpenCV configuration for Qt Creator

查看:262
本文介绍了Qt Creator的OpenCV配置中出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循这些说明OpenCV SDK的配置在Qt Creator IDE中使用它,但我不能总结点6.5,由于Cmake-GUI中的配置错误。我在CMake中设置的编译器gcc和g ++包含在Qt文件夹中的MinGW32的配置,所有看起来好。但是当Cmake-GUI启动构建配置的过程时,最终会出现

I followed these instructions in the configuration of OpenCV SDK for using it in Qt Creator IDE, but I couldn't conclude point 6.5, due to configuration errors in Cmake-GUI. I setup the configuration in CMake of the compilers gcc and g++ contained in Qt folder for MinGW32, and all looks Ok. But when Cmake-GUI starts the process of build configuration it ends up saying


在配置过程中出错,项目文件可能无效。

"Error in configuration process, project files may be invalid".

找不到以下文件:



  • QT_QMAKE_EXECUTABLE;

  • Qt5Concurrent_DIR;

  • QT5Core_DIR;

  • QT5Gui_DIR;

  • QT5Test_DIR;

  • QT5Widgets_DIR。

  • QT_QMAKE_EXECUTABLE;
  • Qt5Concurrent_DIR;
  • QT5Core_DIR;
  • QT5Gui_DIR;
  • QT5Test_DIR;
  • QT5Widgets_DIR.

继续下面的配置教程,没有达到mingw32-make install的最终指令。我使用以下版本的软件:Qt 5.3.0,OpenCV 2.4.9,CMake 2.8.12.2。我的操作系统是Windows 7.

After this issue I tried to go on with following points of configuration tutorial, without reaching the final instruction of mingw32-make install. I'm using the following versions of softwares: Qt 5.3.0, OpenCV 2.4.9, CMake 2.8.12.2. My OS is Windows 7.

如何在CMake配置中恢复丢失的Qt文件?
是否有另一种方法使用Qt配置OpenCV(就像使用预编译的OpenCV库的构建一样)?

How can I recover the missing Qt files in CMake configuration? Is there an alternative way for configuring OpenCV with Qt (like using precompiled build of OpenCV libraries)?

推荐答案

必须通过将它作为QT5Core_DIR的参数传递来手动指定Qt的位置。

You have to specify the location of Qt manually by passing it as an argument for QT5Core_DIR.

这篇关于Qt Creator的OpenCV配置中出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆