Alexpux / Qt-builds

Scripts for building Qt-5.x
48 stars 16 forks source link

[Request] Qt static link build. #1

Closed jgh0721 closed 11 years ago

jgh0721 commented 11 years ago

I wan to bulild and link Qt and the other modules statically. but currently, your script support only shared build.

Thanks for you.

Alexpux commented 11 years ago

Do you need Qt4 or Qt5 static link? Or both?

jgh0721 commented 11 years ago

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.

Alexpux commented 11 years ago

I can see this if you need. My builds build plugins only for mysql, postgresql and firebird

Alexpux commented 11 years ago

I starting work on static builds of Qt

jgh0721 commented 11 years ago

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

Clipboard

Alexpux commented 11 years ago

Do you launch program from QtCreator? Do you copy dlls from prerequisites folder?

jgh0721 commented 11 years ago

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

Alexpux commented 11 years ago

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.

jgh0721 commented 11 years ago

hm... yeah, Using dependencywalker, I copied all required dlls to qt\bin folder. but I got above errors. :-(

Alexpux commented 11 years ago

What version of Qt you built? Can you post screenshot from Dependency Walker?

jgh0721 commented 11 years ago

I built Qt version 5.0.1 x32, x64

Additionaly, I copied libiconv-2.dll to qt\bin folder. but still i got error dialog box;

Clipboard Clipboard_ Clipboard__ Clipboard___

Thanks for your efforts. :-)

Alexpux commented 11 years ago

Open webkit dll in dependency walker and show me screenshots. Bu do screenshots with middle expanded part not top part

jgh0721 commented 11 years ago

this is qt5webkit.dll in assistant.exe Clipboard__

Alexpux commented 11 years ago

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?

jgh0721 commented 11 years ago

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?

Alexpux commented 11 years ago

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.

jgh0721 commented 11 years ago

Ok. I got it. Thanks for your answer. :-)

Alexpux commented 11 years ago

I add support to build OCI plugin. You need get latest scripts from master branch. If you have any issue about this - write me.

jgh0721 commented 11 years ago

Oh, Thanks you!!

Alexpux commented 11 years ago

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

Alexpux commented 11 years ago

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.