PDA

View Full Version : Error when compiling for static version in windows



que
17th September 2008, 00:51
Hi i was trying to compile a static version of qt 4.4.1 for windows xp sp 3 using the mingw32

i follow this procedure


install 4.4.1
modify \mkspecs\win32-g++\qmake.conf to include the -static reference
"QMAKE_LFLAGS = -static -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc"
configure using command: "configure -static -release -no-exceptions -webkit -assistant-webkit"
run "make sub-src", which seems to finish okay
then try to run "make install" but then i get an error when it tries to compile assistant


i have included errors in the zip file

Any help in helping me solve this problem would be appreciated

jpn
17th September 2008, 19:00
You cannot link Webkit (nor Phonon) statically as they are LGPL libraries.

durbrak
21st September 2008, 18:33
Actually, I have linked WebKit statically into my application. It worked right out of the box. I'm not sure about Phonon though as I have never used it.

xbert
18th October 2008, 00:48
Actually, I have linked WebKit statically into my application. It worked right out of the box. I'm not sure about Phonon though as I have never used it.

durbrak: Can you please describe how did you managed that (some special flags in .pro or configuration or something like that)? With MinGW and Windows i have the same errors like described.

jpn: LGPL should not be an problem in a GPL-build.

b1
28th October 2008, 20:41
For what its worth I followed the procedure at:

http://rag.com.au/linux/qt4howto.html

and it worked for me.

Regards, B1.