无法为静态构建配置 Qt [英] Unable to configure Qt for static building

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

问题描述

本质上这是对 这个问题 从未有人回答过.我正在尝试按照这些说明设置 Qt 以进行静态链接.到目前为止,我所做的只是转到我的 Qt 版本所在的位置,然后运行 ​​

Essentially this is a repost of this question which was never answered. I am trying to set up Qt for static linking following these instructions. So far, all I've done is go to where my Qt version is, and run

configure -static

我得到一些输出,以:

Sources are in..............C:\QtSDK\Desktop\Qt\4.8.0\msvc2010
Build is done in............C:\QtSDK\Desktop\Qt\4.8.0\msvc2010
Install prefix..............C:\QtSDK\Desktop\Qt\4.8.0\msvc2010
Headers installed to........C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/include
Libraries installed to......C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/lib
Plugins installed to........C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/plugins
Imports installed to........C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/imports
Binaries installed to.......C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/bin
Docs installed to...........C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/doc
Data installed to...........C:/QtSDK/Desktop/Qt/4.8.0/msvc2010
Translations installed to...C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/translations
Examples installed to.......C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/examples
Demos installed to..........C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/demos

WARNING: Using static linking will disable the use of plugins.
     Make sure you compile ALL needed modules into the library.
Running syncqt...
I couldn't find a pro file for QtCore module
syncqt failed, return code 9

请帮忙

推荐答案

这是从源代码编译 Qt 4.8.0 的一个已知问题.只需删除 qt bin 文件夹中的 syncqt.* :

It's a known issue compiling Qt 4.8.0 from source. Just delete syncqt.* in qt bin folder :

http:///labs.qt.nokia.com/2011/12/15/qt-4-8-0-released/#comment-49942http://labs.qt.nokia.com/2011/12/15/qt-4-8-0-released/#comment-49951http://labs.qt.nokia.com/2011/12/15/qt-4-8-0-released/#comment-49953

http://labs.qt.nokia.com/2011/12/15/qt-4-8-0-released/#comment-49942 http://labs.qt.nokia.com/2011/12/15/qt-4-8-0-released/#comment-49951 http://labs.qt.nokia.com/2011/12/15/qt-4-8-0-released/#comment-49953

这篇关于无法为静态构建配置 Qt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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