静态构建Qt中在Windows Vista [英] Static build in Qt on Windows Vista
问题描述
我目前正在运行Windows Vista Home premium,我已经开发使用Qt Creator的我的朋友的应用程序。我们现在正在努力我们的应用程序部署为只有一个可执行文件,所以我们正在努力做一个静态的构建。我们已经添加CONFIG + =在我们的.pro文件是静态的。
I am currently running Windows Vista Home Premium, and I have developed an application with my friend using Qt Creator. We are now trying to deploy our application as just one executable, so we are trying to do a static build. We have added CONFIG += static in our .pro file.
我们正在使用此文件来帮助我们:
We are using this documentation to help us:
http://doc.trolltech.com/4.1/deployment-windows.html
当我尝试建立QT,我用这个命令:
When I try to build QT, I use this command:
configure -static -platform win32-msvc
然后,我得到这个错误:
Then I get this error:
Creating qmake...
execute: File or path is not found (nmake)
execute: File or path is not found (nmake)
Cleaning qmake failed, return code -1
我想我必须NMAKE添加到我的路径,但我找不到我的电脑上。任何帮助将大大AP preciated。谢谢你。
I think I have to add nmake to my PATH, but I can't find it on my computer. Any help would be greatly appreciated. Thank you.
推荐答案
您会发现你的Visual Studio的bin目录下的批处理文件安装一个名为VCVARS32.BAT。运行在命令行中尝试构建Qt之前。这应该解决您的问题。
You will find a batch file under the bin directory of your visual studio install called "vcvars32.bat". Run that from the command line before you try building QT. That should solve your problems.
这篇关于静态构建Qt中在Windows Vista的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!