Unable to configure Qt for static building

Deadly 提交于 2019-12-11 05:26:46

问题


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

I get some output, ending in:

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

Please help


回答1:


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-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




回答2:


I'm in the same situation of user963258 and I get the same error. I deleted syncqt.* from qt bin folder, but I then get the same error

qmake gives code 3 when attempting to configure qt for static building

Why Qt4.8 has so many issues?



来源:https://stackoverflow.com/questions/9835906/unable-to-configure-qt-for-static-building

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!