[Request] Qt static link build.
jgh0721 opened this issue · comments
I wan to bulild and link Qt and the other modules statically. but currently, your script support only shared build.
Thanks for you.
Do you need Qt4 or Qt5 static link? Or both?
I needs both Qt4 and Qt5.
ps. Do you know how to build qt 4 or qt 5 OCI library( Oracle QtSql Module ). I cannot build oci library using mingw.
Thanks for you.
I can see this if you need. My builds build plugins only for mysql, postgresql and firebird
I starting work on static builds of Qt
Yes, I needs OCI Library for QtSql module using MinGW.
Thanks for your efforts.
I have another question. I just have been built Qt 5.0.1 for MinGW using your build scripts. But, console apps are works fine. windows apps doesn't works. below image is error message.
my system is
OS : Windows 7 x64 Ultimate.
Dev Tools : your Qt-Build Scripts, VS 2008SP1, VS 2010SP1, VS2012 UP1
Do you launch program from QtCreator? Do you copy dlls from prerequisites folder?
Yes, I copied my required dlls to prerequistes folders ( ex), qt\bin ) , I got error dialog box when launching assistant.exe, designer.exe, and so on.
my copied dlls list using dependency walker:
icudt50.dll
icuin50.dll
icuuc50.dll
libgcc_s_sjlj-1.dll
libgomp-1.dll
liblzma-5.dll
libpcre16-0.dll
libsqlite3-0.dll
libssp-0.dll
libstdc++-6.dll
libwinpthread-1.dll
libxml2-2.dll
libxslt-1.dll
qminimal.dll
qminimald.dll
qwindows.dll
qwindowsd.dll
Try to download Dependency Walker from http://www.dependencywalker.com for your Qt build (32 or 64 bit) and open, for example, assistant.exe in dependency walker. If you missing some ddlx it show you.
hm... yeah, Using dependencywalker, I copied all required dlls to qt\bin folder. but I got above errors. :-(
What version of Qt you built? Can you post screenshot from Dependency Walker?
Open webkit dll in dependency walker and show me screenshots. Bu do screenshots with middle expanded part not top part
First, post screenshot with opened second part of window where you have "Error opening file". Second try to launch my build http://sourceforge.net/projects/mingwbuilds/files/external-binary-packages/Qt-Builds/Qt-5.0.1-x32.7z/download.
And do you rename or move folder with Qt after build?
oh.. yeah. I rename and move initially installed qt folders. First, I restore folder name and there, just works fine. So I got questions. Why couldn't rename or move initially qt folders?
Qt store installation paths hardwood in libraries. To use Qt from different path you need patch them and hardcode another path. I work on patch program.
Ok. I got it. Thanks for your answer. :-)
I add support to build OCI plugin. You need get latest scripts from master branch. If you have any issue about this - write me.
Oh, Thanks you!!
If you need to move Qt folder to another location you can create qt.conf file in "bin" subdirectory with next content:
[Paths]
Prefix = c:/QtSDK/Qt4
Translations = translations
Where Prefix is new Qt folder location
Now you can build static Qt by pass "--static-qt" to build script. But Qt5 has many issues with static build and it builded without ANGLE, ICU, Webkit and SQL drivers.