我从 Qt Creator 构建应用程序时遇到问题;从配置步骤中,我收到此错误:
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindQt4.cmake:1382 (message):
Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
CMakeLists.txt:13 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
如果我从命令行配置它,一切都是文件:
cmake -G "MinGW Makefiles" ..\ProjectDir
在路径中存在环境变量 Qt(src、bin 和 lib 路径)。
平台:
Windows 7
MinGW/GCC 4.4
CMake 2.8.11
Qt 4.8.5
Qt Creator 2.8.1