【发布时间】:2013-04-14 19:07:53
【问题描述】:
在 Windows 上运行 QT Creator。我有一个包警告我 g++ 4.7 中的一个错误,所以我下载了 mingw g++ 4.6.2 版。问题是当我通过 QT creator 运行 cmake 时,它似乎仍然指向旧目录(我现在已经删除了)。这是我运行 cmake 时的控制台输出:
CMake Error: your RC compiler: "C:/MinGW-4.7.1/bin/windres.exe" was not found. Please set CMAKE_RC_COMPILER to a valid compiler path or name.
CMake Error: your C compiler: "C:/MinGW-4.7.1/bin/gcc.exe" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "C:/MinGW-4.7.1/bin/g++.exe" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
我不确定问题出在 QT Creator 或 Cmake 还是什么。我在 Windows 上运行这些东西。
【问题讨论】:
-
您是否删除了项目的CMake输出目录并再次运行配置阶段?
-
@Haroogan 看来这行得通!非常感谢您的帮助!
标签: windows cmake mingw qt-creator