新手求教,怎样能将opencv配置到qt里?
才开始接触qt没几天,所以对qt可以说是完全不懂。按照网上给的教程弄的,但是出现了这种状况:
Detected version of GNU GCC: 49 (409)
CMake Warning (dev) at cmake/OpenCVUtils.cmake:279 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "WIN32" will no longer be dereferenced when the
policy is set to NEW. Since the policy is not set the OLD behavior will be
used.
Call Stack (most recent call first):
CMakeLists.txt:127 (OCV_OPTION)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at cmake/OpenCVUtils.cmake:76 (if):
if given arguments:
"E:/C++" "MATCHES" "^E:/C++/Opencv 3.0/opencv/sources" "OR" "E:/C++" "MATCHES" "^E:/C++"
Regular expression "^E:/C++/Opencv 3.0/opencv/sources" cannot compile
Call Stack (most recent call first):
CMakeLists.txt:354 (ocv_include_directories)
Configuring incomplete, errors occurred!
See also "E:/C++/CMakeFiles/CMakeOutput.log".
网上的是在Win7下配置的qt 5.0.1;Opencv 2.4.4,cmake 不知道
我的是Win8.1, qt 5.4.0 , opencv 2.4.10, cmake 3.1.1
谁知道错误希望能指出,谢谢了!