Results 1 to 3 of 3

Thread: How to optimize qt libs for embedded x86?

  1. #1
    Join Date
    Jun 2009
    Posts
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default How to optimize qt libs for embedded x86?

    Today ,I try to compile qt libs.
    My source code is qt-embedded-linux-opensource-src-4.5.1.tar.gz.

    My command is "./configure -release -static -fast -no-qt3support".

    But the result makes me amazed!
    List of .a files:

    libQtCore.a 3.5MB
    libQtDBus.a 724.4KB
    libQtGui.a 15.6MB
    libQtNetwork.a 1.3MB
    libQtScript.a 1.9MB
    libQtSql.a 339.4KB
    libQtSvg.a 468.6KB

    Why libQtCore.a and libQtGui.a are so big?Is it a really embedded version?
    So ,I think maybe I make a incorrect command?
    Could you tell my how to optimize qt libs for embedded x86 and arm ?
    Thanks a lot!!

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to optimize qt libs for embedded x86?

    if u use static libs that the size will be more... remove static. Also you can delete some gui elements which are never needed ... for example if u DEFINES += Q_NO_TOOLBAR or something then toolbar functionality will not compile...

  3. #3
    Join Date
    Jun 2009
    Posts
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to optimize qt libs for embedded x86?

    Thanks a lot!
    I notice that we can find a official tools from ./tools/qconfig.We should comiple it by myself.

Similar Threads

  1. using third party libs
    By jay in forum Qt Programming
    Replies: 13
    Last Post: 14th April 2009, 15:52
  2. Linking against different Libs
    By AlphaWolf in forum Qt Programming
    Replies: 3
    Last Post: 10th February 2009, 15:25
  3. problem with order of libs during linking
    By minimax in forum Qt Programming
    Replies: 2
    Last Post: 8th January 2008, 10:32
  4. Bad relink libs on QT4 Mac OSX (install_name_tool)
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 7th April 2007, 09:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.