天天看點

Qt VS編譯錯誤部分記錄

1、Error starting process D:\Qt\Qt5.9.0\5.9\msvc2015\bin\moc.exe: 系統找不到指定的檔案;

添加環境變量path  qt目錄bin;

2、unable to read mkspecs/qconfig.pri;

qt bin目錄下缺少qt.conf檔案,手動添加,内容:

[Paths] 

Prefix=.. 

3、windeployqt reports "Unable to find dependent libraries..." ;

有可能是上面的qt.conf檔案内容錯誤導緻;

我遇到的問題是這樣,一開始的qt.conf檔案内容還有Libraryj節點;

4、Qt fatal error LNK1158: cannot run 'rc.exe'

找到rc.exe的放置路徑,比如C:\Program Files (x86)\Windows Kits\8.1\bin\x86

然後添加到環境變量PATH中;

Qt

繼續閱讀