2010-02-17 62 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