我想为qt creator配置然后生成opencv库以链接它们.我打开了cmake 3.1.0并输入了源代码和构建路径.
资源:
C:/Users/Philipp_Laptop/Downloads/opencv/sources
build: C:/opencv-mingw
Run Code Online (Sandbox Code Playgroud)
然后我用路径配置了mingw-compiler:
C:/Qt/Tools/mingw482_32/bin/gcc.exe
C:/Qt/Tools/mingw482_32/bin/g++.exe
Run Code Online (Sandbox Code Playgroud)
配置成功后,我设置了with_Qt选项.我配置了两次,它显示以下错误:
Detected version of GNU GCC: 48 (408)
CMake Warning (dev) at cmake/OpenCVUtils.cmake:261 (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 …Run Code Online (Sandbox Code Playgroud)