Qt安装错误

7

当我尝试配置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>
3个回答

9
如果您想在Visual Studio环境下构建Qt,您需要确保nmakeclPATH中。最简单的方法是使用Visual Studio命令提示符(例如,在开始菜单中找到)。

不,我不想使用Visual Studio工作。我只想要Qt。 - coderex
你想用什么来构建Qt呢?你需要以某种方式构建它才能获得二进制文件。 - Georg Fritzsche
如果你只想要Qt,我猜你需要mingw32,它包含在Windows开源SDK版本中。(另一个编译器,不是微软的,但仍然是一种编译器...) - e8johan

0

你需要更改路径,使其指向nmake所在的位置。


0
尝试将标志“-make nmake”添加到您的配置命令中。

也许这只适用于旧版本的Qt;在Qt 5.7.0中:“未知部分nmake传递到-make。” - Aaron Campbell

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接