2010-02-17 61 views
6

我在嘗試配置Qt時遇到錯誤。Qt安裝錯誤

Erro : 
    execute: File or path is not found (nmake) 
    execute: File or path is not found (nmake) 
    Cleaning qmake failed, return code -1 




// installion files. 
    InterBase...............no 

Sources are in..............E:\xampp\Qt\4.6 
Build is done in............E:\xampp\Qt\4.6 
Install prefix..............E:\xampp\Qt\4.6 
Headers installed to........E:\xampp\Qt\4.6\include 
Libraries installed to......E:\xampp\Qt\4.6\lib 
Plugins installed to........E:\xampp\Qt\4.6\plugins 
Binaries installed to.......E:\xampp\Qt\4.6\bin 
Docs installed to...........E:\xampp\Qt\4.6\doc 
Data installed to...........E:\xampp\Qt\4.6 
Translations installed to...E:\xampp\Qt\4.6\translations 
Examples installed to.......E:\xampp\Qt\4.6\examples 
Demos installed to..........E:\xampp\Qt\4.6\demos 

Creating qmake... 
execute: File or path is not found (nmake) 
execute: File or path is not found (nmake) 
Cleaning qmake failed, return code -1 


E:\xampp\Qt\4.6> 

回答

8

如果你想用一個Visual Studio環境來構建Qt的,你必須確保nmakecl都在PATH

最簡單的方法就是簡單地使用Visual Studio命令提示符(例如在開始菜單中找到)。

+0

不,我不想使用Visual Studio。我只想要Qt。 – coderex 2010-02-18 01:26:29

+0

你想要怎樣構建Qt?你需要以某種方式構建它來獲取二進制文件。 – 2010-02-18 06:22:09

+0

如果你只想Qt,我想你需要mingw32,它包含在Windows的開源SDK版本中。 (另一種編譯器,不是微軟的,但仍然是一個編譯器...) – e8johan 2010-02-18 14:36:36

0

你需要改變你的路徑,以便它導致nmake的任何地方。

0

嘗試將「-make nmake」標誌添加到configure命令中。

+0

也許這隻適用於舊版本的Qt;在Qt 5.7.0中:「將未知部分nmake傳遞給-make。」 – 2016-10-17 18:00:35