[Mingw-w64-public] Fwd: cross compiling with static Qt libraries

2012-07-04 Thread jan van katwijk
-- Forwarded message -- From: Erik van Pienbroek Date: 2012/7/4 Subject: Re: [Mingw-w64-public] cross compiling with static Qt libraries To: mingw-w64-public@lists.sourceforge.net jan van katwijk schreef op wo 04-07-2012 om 11:41 [+0200]: > x86_64-w64-mingw32-g++ -static -Wl,-s -

[Mingw-w64-public] Fwd: cross compiling with static Qt libraries

2012-07-04 Thread jan van katwijk
-- Forwarded message -- From: Erik van Pienbroek Date: 2012/7/4 Subject: Re: [Mingw-w64-public] cross compiling with static Qt libraries To: mingw-w64-public@lists.sourceforge.net jan van katwijk schreef op wo 04-07-2012 om 11:41 [+0200]: > x86_64-w64-mingw32-g++ -static -Wl,-s -

Re: [Mingw-w64-public] Fwd: cross compiling with static Qt libraries

2012-07-04 Thread xunxun
于 2012/7/4 18:35, jan van katwijk 写道: > May be this is the wrong list, do not know, but it seems to me that > QtCore and QtGui need a lot of > windows-related libs, such as ole32 and gdi32, and a lot more, but I > cannot find which ones. > > The second issue is indeed the way the makefile is gene

Re: [Mingw-w64-public] Fwd: cross compiling with static Qt libraries

2012-07-04 Thread Kai Tietz
2012/7/4 xunxun : > And, Kai > > Should we add -lole32 and -lgdi32 to gcc's internal specs? > This may avoid the issue. > > -- > Best Regards, > xunxun > Hmm, this seems not to be the right thing. gdi32.dll will be automatically added if option '-mwindows' is specified. This makes sense as other

Re: [Mingw-w64-public] Fwd: cross compiling with static Qt libraries

2012-07-04 Thread jan van katwijk
May be this is the wrong list, do not know, but it seems to me that QtCore and QtGui need a lot of windows-related libs, such as ole32 and gdi32, and a lot more, but I cannot find which ones. The second issue is indeed the way the makefile is generated and the order in which the libraries appear i

Re: [Mingw-w64-public] Fwd: cross compiling with static Qt libraries

2012-07-04 Thread xunxun
And, Kai Should we add -lole32 and -lgdi32 to gcc's internal specs? This may avoid the issue. -- Best Regards, xunxun -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security an

Re: [Mingw-w64-public] Fwd: cross compiling with static Qt libraries

2012-07-04 Thread xunxun
于 2012/7/4 18:12, jan van katwijk 写道: > Thanx so far. It seems that the qmake does not generate a right order > for the libs to be linked. > When adding LIBS += -lole32 -lgdi32 to the ".pro" file, the -lole32 > -lgdi32 appears in front > of the Qtlibs and they will not find the symbols. When man

[Mingw-w64-public] Fwd: cross compiling with static Qt libraries

2012-07-04 Thread jan van katwijk
Thanx so far. It seems that the qmake does not generate a right order for the libs to be linked. When adding LIBS += -lole32 -lgdi32 to the ".pro" file, the -lole32 -lgdi32 appears in front of the Qtlibs and they will not find the symbols. When manually adding the libs to the line, these symbols a