Qt-interest Archive, May 2008
QT opensource 4.4.0 on embedded arm - building minimal library
Message 1 in thread
Hi All,
I am a newbie to QT. I am using QT 4.4.0 on embedded arm. I observe that
there are many libraries built with QT. I want to know how to build library
with minimum size since I have tight constraints on memory footprint. My
application has only some basic widgets and some images. At present when
I've built libraries in release mode i found the size comes to around 19MB
with only Qtcore, QtGui, QtNetwork which is very large to be accomodated in
my system.
Also fonts is around 15MB. How can I build with less fonts supported? Also I
dont want all styles. How to disable some while building it? I didnt get
this info while I did ./configure --help.
--
[ signature omitted ]
Message 2 in thread
"Harinandan S" <harinandans@xxxxxxxxx> wrote in message news:5a459d5e0805270614k812bc23h3af2464d8ca2d261@xxxxxxxxxxxxxxxxx
Hi All,
I am a newbie to QT. I am using QT 4.4.0 on embedded arm. I observe that there are many libraries built with QT. I want to know how to build library with minimum size since I have tight constraints on memory footprint. My application has only some basic widgets and some images. At present when I've built libraries in release mode i found the size comes to around 19MB with only Qtcore, QtGui, QtNetwork which is very large to be accomodated in my system.
Also fonts is around 15MB. How can I build with less fonts supported? Also I dont want all styles. How to disable some while building it? I didnt get this info while I did ./configure --help.
--
Regards,
Harinandan S
Hi,
Just very recently, there has been some postings on this on this list. Did you search the archives?
For instance, on may 26, Naja Melan started a topic called "defines for making a qtgui lite". In there, you can find some references to do what you are after.
HTH,
André
Message 3 in thread
On Tuesday 27 May 2008 13.14:17 Harinandan S wrote:
> Hi All,
>
> I am a newbie to QT. I am using QT 4.4.0 on embedded arm. I observe that
> there are many libraries built with QT. I want to know how to build library
> with minimum size since I have tight constraints on memory footprint. My
> application has only some basic widgets and some images. At present when
> I've built libraries in release mode i found the size comes to around 19MB
> with only Qtcore, QtGui, QtNetwork which is very large to be accomodated in
> my system.
>
> Also fonts is around 15MB. How can I build with less fonts supported? Also
> I dont want all styles. How to disable some while building it? I didnt get
> this info while I did ./configure --help.
Hi,
First thing, you should rather ask the Qt-embedded (the actual) and
QTopia-core(for version till 4.4.0) interest list as you will have more
chance to get information on embedded specific issuses.
Now some pointers:
To reduce the memory foot print:
1) configure option is : "-qconfig local" where local corresponds to
qconfig-local.h in src/corelib/src/corelib/global/qconfig-local.h
2) take a look at src/corelib/global/qconfig-*.h
These files contains exactly what you need between full blown Qt and minimal
configuration. You might as well copy one rename it for your system and
remove more options you don't need. BUT beware, some widgets might need
things that you wouldn't have thought of in the first place. So be careful
when you try that
3) If you want to support less fonts, simply remove them on your target
filesystem.
4) To enable or disable styles look again at configure's output, you'll see
information about them. If you don't find them
./configure --help | grep style
Cheers,
Samuel
--
[ signature omitted ]
Message 4 in thread
On Tue, May 27, 2008 at 9:09 PM, Samuel Gaist <samuel.gaist@xxxxxxx> wrote:
> On Tuesday 27 May 2008 13.14:17 Harinandan S wrote:
> > Hi All,
> >
> > I am a newbie to QT. I am using QT 4.4.0 on embedded arm. I observe that
> > there are many libraries built with QT. I want to know how to build
> library
> > with minimum size since I have tight constraints on memory footprint. My
> > application has only some basic widgets and some images. At present when
> > I've built libraries in release mode i found the size comes to around
> 19MB
> > with only Qtcore, QtGui, QtNetwork which is very large to be accomodated
> in
> > my system.
> >
> > Also fonts is around 15MB. How can I build with less fonts supported?
> Also
> > I dont want all styles. How to disable some while building it? I didnt
> get
> > this info while I did ./configure --help.
>
> Hi,
>
> First thing, you should rather ask the Qt-embedded (the actual) and
> QTopia-core(for version till 4.4.0) interest list as you will have more
> chance to get information on embedded specific issuses.
>
> Now some pointers:
> To reduce the memory foot print:
> 1) configure option is : "-qconfig local" where local corresponds to
> qconfig-local.h in src/corelib/src/corelib/global/qconfig-local.h
>
> 2) take a look at src/corelib/global/qconfig-*.h
> These files contains exactly what you need between full blown Qt and
> minimal
> configuration. You might as well copy one rename it for your system and
> remove more options you don't need. BUT beware, some widgets might need
> things that you wouldn't have thought of in the first place. So be careful
> when you try that
I see that the #defines are all having NO prefix. So if my understanding is
right I need to have all those features which I dont want in that list. Am I
right?
>
>
> 3) If you want to support less fonts, simply remove them on your target
> filesystem.
>
> 4) To enable or disable styles look again at configure's output, you'll see
> information about them. If you don't find them
> ./configure --help | grep style
>
> Cheers,
> Samuel
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]
Message 5 in thread
27 мая 2008, в 16:14, Harinandan S написал(а):
>
> I am a newbie to QT. I am using QT 4.4.0 on embedded arm. I observe
> that
> there are many libraries built with QT. I want to know how to build
> library
> with minimum size since I have tight constraints on memory
> footprint. My
> application has only some basic widgets and some images. At present
> when
> I've built libraries in release mode i found the size comes to
> around 19MB
> with only Qtcore, QtGui, QtNetwork which is very large to be
> accomodated in
> my system.
>
> Also fonts is around 15MB. How can I build with less fonts
> supported? Also I
> dont want all styles. How to disable some while building it? I didnt
> get
> this info while I did ./configure --help.
>
Take a look at my post in the "Building QT for embedded linux - LINK
variable in Makefile is not being set properly" thread. Compiling Qt
in thumb instruction set lowers memory footprint.
--
[ signature omitted ]