Results 1 to 8 of 8

Thread: Small Libraries

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2008
    Posts
    142
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 20 Times in 20 Posts

    Default Re: Small Libraries

    Well, if you release your project under GPL anyway the easiest solution would be to build a static version of Qt and link the binary release of your application against that static Qt.

    If you do that, only the parts of Qt that you are using are included in your binary, and you do not need to ship any Qt libraries for it to work.

  2. #2
    Join Date
    Jul 2009
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Re: Small Libraries

    Quote Originally Posted by rexi View Post
    Well, if you release your project under GPL anyway the easiest solution would be to build a static version of Qt and link the binary release of your application against that static Qt.

    If you do that, only the parts of Qt that you are using are included in your binary, and you do not need to ship any Qt libraries for it to work.
    Yes, so i should copy the Qt folder and run configure and make

    configure.exe
    -release
    -static
    -opensource
    -no-exceptions
    -no-qt3support
    -no-opengl
    -no-qmake

    Is there anything more i can remove for make it even smaller?

  3. #3
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Platforms
    MacOS X Unix/X11
    Thanks
    1
    Thanked 52 Times in 52 Posts

    Default Re: Small Libraries

    Yes.

    First call strip -s on the executable
    then use upx to compress the executable
    It's nice to be important but it's more important to be nice.

Similar Threads

  1. Qt + Eclipse + MinGW + Windows: How to include libraries?
    By jambrek in forum General Programming
    Replies: 3
    Last Post: 19th December 2007, 13:57
  2. Replies: 2
    Last Post: 8th March 2007, 22:22
  3. Qt 3.3 libraries
    By ToddAtWSU in forum Qt Programming
    Replies: 1
    Last Post: 21st December 2006, 17:25
  4. Standardization on libraries
    By brcain in forum General Discussion
    Replies: 13
    Last Post: 16th August 2006, 22:56
  5. Replies: 4
    Last Post: 7th March 2006, 08:52

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.