gpt4 book ai didi

c++ - Windows Vista 上 Qt 中的静态构建

转载 作者:行者123 更新时间:2023-11-30 02:12:44 25 4
gpt4 key购买 nike

我目前运行的是 Windows Vista Home Premium,我和我的 friend 使用 Qt Creator 开发了一个应用程序。我们现在正在尝试将我们的应用程序部署为一个可执行文件,因此我们正在尝试进行静态构建。我们在 .pro 文件中添加了 CONFIG += static。

我们使用此文档来帮助我们:

http://doc.trolltech.com/4.1/deployment-windows.html

当我尝试构建 QT 时,我使用了这个命令:

configure -static -platform win32-msvc

然后我得到这个错误:

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 添加到我的 PATH 中,但我在我的计算机上找不到它。任何帮助将不胜感激。谢谢。

最佳答案

您会在 visual studio 安装的 bin 目录下找到一个名为“vcvars32.bat”的批处理文件。在尝试构建 QT 之前从命令行运行它。那应该可以解决您的问题。

关于c++ - Windows Vista 上 Qt 中的静态构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1458252/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com