尝试为静态构建配置 qt 时,qmake 给出代码 3 [英] qmake gives code 3 when attempting to configure qt for static building

查看:40
本文介绍了尝试为静态构建配置 qt 时,qmake 给出代码 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有最新的 Qt SDK.我正在尝试使用 VS2010 将它配置为静态构建(动态链接工作正常)我在这个位置有它:C:\QtSDK\Desktop\Qt\4.8.0\msvc2010

I have the latest Qt SDK. I'm trying to configure it for static building with VS2010 (dynamic linking works fine) I have it at this location: C:\QtSDK\Desktop\Qt\4.8.0\msvc2010

当我使用 VS2010 命令提示符去那里并尝试运行 configure -static 或 configure -static 我得到一些输出但最后它失败了

When I go there with the VS2010 command prompt and try to run configure -static, or configure -static I get some output but in the end it fails with

Generating Makefiles...
 WARNING: c:\QtSDK\Desktop\Qt\4.8.0\msvc2010\projects.pro:44: Unable to find file
 for inclusion src\src.pro
WARNING: c:\QtSDK\Desktop\Qt\4.8.0\msvc2010\projects.pro:46: Unable to find file
 for inclusion doc\doc.pri
Reading C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/tools
Reading C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/translations/translations.pro
Reading C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/examples
Reading C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/demos
Qmake failed, return code 3

请帮忙

推荐答案

我下载了源 zip 文件,而不是尝试使用 SDK 中的内容,现在它正在运行.只需从这里下载源代码,解压,然后运行解压文件夹中的configure.exe.我的猜测(虽然我已经检查过)是 SDK 版本中缺少源文件或其他资源.

I downloaded the source zip file instead of trying to work with what came in the SDK and it's working now. Just download the source from here, unzip it, and run the configure.exe in the unzipped folder. My guess (although I have inspected this) is that there's missing source files or other resources in the SDK version.

这篇关于尝试为静态构建配置 qt 时,qmake 给出代码 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆