Re: [Development] Use static qt libraries

2012-07-24 Thread marius.storm-olsen
On 07/24/2012 05:08 AM, ext Thiago Macieira wrote: > It looks like your system has a major issue with dynamic linking if it takes > 10 seconds to load two or three libraries. Take QtGui's statistics (ok, on > Linux, but it's an indication): > > libQtCore.so.5: 3953 relocations, 3658 relative (92%),

Re: [Development] Use static qt libraries

2012-07-24 Thread shane.kearns
> On terça-feira, 24 de julho de 2012 15.17.23, Thiago Macieira wrote: > > Here we have a big problem. QNetworkConfigurationPrivate is not > > exported, so it can't be used from the plugins. It should be > exported > > and its virtual destructor should be de-inlined. > > Actually, since the class

Re: [Development] Use static qt libraries

2012-07-24 Thread Thiago Macieira
On terça-feira, 24 de julho de 2012 15.17.23, Thiago Macieira wrote: > Here we have a big problem. QNetworkConfigurationPrivate is not exported, so > it can't be used from the plugins. It should be exported and its virtual > destructor should be de-inlined. Actually, since the class is not derive

Re: [Development] Use static qt libraries

2012-07-24 Thread Thiago Macieira
On terça-feira, 24 de julho de 2012 16.25.22, Olivier Goffart wrote: > On Tuesday 24 July 2012 13:06:30 Thiago Macieira wrote: > > On terça-feira, 24 de julho de 2012 12.13.27, Thiago Macieira wrote: > > > QFocusHelper > > > > This is a class defined in a .cpp, deriving from QWidget. So it has > >

Re: [Development] Use static qt libraries

2012-07-24 Thread Thiago Macieira
On terça-feira, 24 de julho de 2012 13.02.01, song.7@nokia.com wrote: > Thanks ! Last one is: "9: 0 OBJECT WEAK DEFAULT UND > _ZTI28QNetworkConfigurationPrivate". Virtual, inline, non-exported destructor. It's the same case as QStaticTextUserData, except it's not exported. Si

Re: [Development] Use static qt libraries

2012-07-24 Thread song.7.liu
o Macieira Sent: Tuesday, July 24, 2012 7:07 PM To: development@qt-project.org Subject: Re: [Development] Use static qt libraries On terça-feira, 24 de julho de 2012 12.13.27, Thiago Macieira wrote: > QFocusHelper This is a class defined in a .cpp, deriving from QWidget. So it has virtual meth

Re: [Development] Use static qt libraries

2012-07-24 Thread Olivier Goffart
On Tuesday 24 July 2012 13:06:30 Thiago Macieira wrote: > On terça-feira, 24 de julho de 2012 12.13.27, Thiago Macieira wrote: > > QFocusHelper > > This is a class defined in a .cpp, deriving from QWidget. So it has virtual > methods by way of inheritance. > > But since it's in a .cpp, we have to

Re: [Development] Use static qt libraries

2012-07-24 Thread Thiago Macieira
On terça-feira, 24 de julho de 2012 12.13.27, Thiago Macieira wrote: > QFocusHelper This is a class defined in a .cpp, deriving from QWidget. So it has virtual methods by way of inheritance. But since it's in a .cpp, we have to conclude it's a compiler bug. > QAbstractUndoItem This is a real, a

Re: [Development] Use static qt libraries

2012-07-24 Thread Thiago Macieira
On terça-feira, 24 de julho de 2012 09.57.48, shane.kea...@accenture.com wrote: > > > Thanks, are such undefined symbols normal ? And is there a way to fix > > > > it ? > > > > Missing only the _ZTI ones is highly irregular. The typeinfo objects > > are always emitted together with the virtual tabl

Re: [Development] Use static qt libraries

2012-07-24 Thread Thiago Macieira
On terça-feira, 24 de julho de 2012 01.42.20, peng-peter@nokia.com wrote: > We are now porting Qt5 (selected modules) on a low profile device > (ARM11@300MHz). All shared objects can XIP - so there is no need to load > libs from ROM to RAM. But a major problem is the loading time of an > applic

Re: [Development] Use static qt libraries

2012-07-24 Thread shane.kearns
> > Thanks, are such undefined symbols normal ? And is there a way to fix > it ? > > Missing only the _ZTI ones is highly irregular. The typeinfo objects > are always emitted together with the virtual table and other objects. > Since the virtual tables are not missing, the only explanation I can >

Re: [Development] Use static qt libraries

2012-07-24 Thread Thiago Macieira
On terça-feira, 24 de julho de 2012 04.03.31, song.7@nokia.com wrote: > Thanks, are such undefined symbols normal ? And is there a way to fix it ? Missing only the _ZTI ones is highly irregular. The typeinfo objects are always emitted together with the virtual table and other objects. Since th

Re: [Development] Use static qt libraries

2012-07-23 Thread Rohan McGovern
-MP/Brisbane) > Sent: Tuesday, July 24, 2012 11:58 AM > To: Liu Song.7 (Nokia-MP/Beijing) > Cc: Lan Peng-Peter (Nokia-MP/Beijing); Storm-Olsen Marius (Nokia-MP/Austin); > development; thiago.macieira > Subject: Re: [Development] Use static qt libraries > Importance: High > &g

Re: [Development] Use static qt libraries

2012-07-23 Thread song.7.liu
); development; thiago.macieira Subject: Re: [Development] Use static qt libraries Importance: High song.7@nokia.com said: > Hi, > > Now we can build out the single libqt5.so (using ARM toolchain) by: > > "OPTS += -static" to create the static qt libs > &quo

Re: [Development] Use static qt libraries

2012-07-23 Thread Rohan McGovern
song.7@nokia.com said: > Hi, > > Now we can build out the single libqt5.so (using ARM toolchain) by: > > "OPTS += -static" to create the static qt libs > "ar -x libQtXX.a" to extract the .o files > "armlink --fpic --shared *.o -o libqt5.so" to generate final single so > > Bu

Re: [Development] Use static qt libraries

2012-07-23 Thread song.7.liu
-Original Message- From: Lan Peng-Peter (Nokia-MP/Beijing) Sent: Tuesday, July 24, 2012 9:42 AM To: Storm-Olsen Marius (Nokia-MP/Austin); Liu Song.7 (Nokia-MP/Beijing); development@qt-project.org; thiago.macie...@intel.com Subject: RE: [Development] Use static qt libraries Importance: Hi

Re: [Development] Use static qt libraries

2012-07-23 Thread peng-peter.lan
12 6:06 PM > To: development@qt-project.org; thiago.macie...@intel.com > Subject: [Development] 回复: Re: Use static qt libraries > > To reduce the loading time. > -原信息- > 发件人: ext Thiago Macieira > 发送: 2012/07/24, 02:09 > 收件人: development@qt-project.org > 主题: Re: [

Re: [Development] Use static qt libraries

2012-07-23 Thread Thiago Macieira
On segunda-feira, 23 de julho de 2012 14.39.16, song.7@nokia.com wrote: > OK, based on my current understanding, do you mean that: > I still need to build all of the current qt modules as static objects, which > can be done by OPTS += -static or by other way ? No. What you need to do is figur

Re: [Development] Use static qt libraries

2012-07-23 Thread song.7.liu
; From: Liu Song.7 (Nokia-MP/Beijing) > Sent: Monday, July 23, 2012 9:39 AM > To: Storm-Olsen Marius (Nokia-MP/Austin) > Cc: development@qt-project.org > Subject: RE: [Development] Use static qt libraries > > OK, based on my current understanding, do you mean that: > I still need

Re: [Development] Use static qt libraries

2012-07-23 Thread marius.storm-olsen
kia-MP/Beijing) > Sent: Monday, July 23, 2012 9:39 AM > To: Storm-Olsen Marius (Nokia-MP/Austin) > Cc: development@qt-project.org > Subject: RE: [Development] Use static qt libraries > > OK, based on my current understanding, do you mean that: > I still need to build all of the c

Re: [Development] Use static qt libraries

2012-07-23 Thread song.7.liu
ent@qt-project.org Subject: Re: [Development] Use static qt libraries OK, based on my current understanding, do you mean that: I still need to build all of the current qt modules as static objects, which can be done by OPTS += -static or by other way ? Thanks, Song -Original Message- From:

Re: [Development] Use static qt libraries

2012-07-23 Thread song.7.liu
10:35 PM To: Liu Song.7 (Nokia-MP/Beijing) Cc: development@qt-project.org Subject: RE: [Development] Use static qt libraries Importance: High No, you will need to link it all at once, since an .so is considered a final product. You might be able to mess around with a qt5-massive-library.pro

Re: [Development] Use static qt libraries

2012-07-23 Thread marius.storm-olsen
e- > From: Liu Song.7 (Nokia-MP/Beijing) > Sent: Monday, July 23, 2012 9:16 AM > To: Storm-Olsen Marius (Nokia-MP/Austin) > Cc: development@qt-project.org > Subject: RE: [Development] Use static qt libraries > > Thanks for help. Is there any tool to link all of the separ

Re: [Development] Use static qt libraries

2012-07-23 Thread song.7.liu
@qt-project.org Subject: Re: [Development] Use static qt libraries Importance: High On 23/07/2012 08:56, ext song.7@nokia.com wrote: > Hi, > > To use the static qt libraries, now I can build out all the > libQtCore.a , libQtGui.a , libQtWidgets.a etc with option -static. > >

Re: [Development] Use static qt libraries

2012-07-23 Thread marius.storm-olsen
On 23/07/2012 08:56, ext song.7@nokia.com wrote: > Hi, > > To use the static qt libraries, now I can build out all the libQtCore.a > , libQtGui.a , libQtWidgets.a etc with option -static. > > Also I can create a new shared object libQtMaster.so which is composed > of all of above static objects

Re: [Development] Use static qt libraries

2012-07-23 Thread Thiago Macieira
On segunda-feira, 23 de julho de 2012 13.56.51, song.7@nokia.com wrote: > Hi, > > To use the static qt libraries, now I can build out all the libQtCore.a , > libQtGui.a , libQtWidgets.a etc with option -static. Also I can create a > new shared object libQtMaster.so which is composed of all of a

[Development] Use static qt libraries

2012-07-23 Thread song.7.liu
Hi, To use the static qt libraries, now I can build out all the libQtCore.a , libQtGui.a , libQtWidgets.a etc with option -static. Also I can create a new shared object libQtMaster.so which is composed of all of above static objects (libQtXXX.a), then I want my Qt application be dynamic linked w