在Windows上運行QT Creator。我有一個軟件包,它告訴我有關g ++ 4.7中的一個bug,所以我下載了mingw g ++版本4.6.2。問題是,當我通過QT創建者運行cmake時,它似乎仍然指向舊目錄(我現在已經刪除)。這裏是控制檯輸出,當我的cmake運行:Cmake似乎指向MinGW的舊目錄
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看來這工作!非常感謝你的幫助! –