Results 1 to 2 of 2

Thread: how to reduce the size of dll's of Qt

  1. #1
    Join Date
    Mar 2009
    Posts
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Windows

    Default how to reduce the size of dll's of Qt

    Hi,

    I have tried reduce the size of dll's of Qt version 4.7.1 using QConfig. After disabling some features by QConfig tool, I configured and compiled Qt(dynamically), with Visual Studio 2005 compiler. The configuration script I used to configure is [configure -platform win32-msvc2005 -no-openvg -no-opengl -no-webkit -nomake examples -nomake demos -qconfig myqt]. After this command is executed, i run "nmake". but the compilation ends with some errors.

    1) Does this qconfig tool is effective with Qt4.6.2 or Qt4.7.1?
    2) How do I use QConfig effectively to reduce the size of my Qt application?
    3) Are there other approaches to disable some features from Qt?

    Thanks for Help!
    Last edited by naren82; 1st March 2011 at 07:06.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to reduce the size of dll's of Qt

    Quote Originally Posted by naren82 View Post
    Hi,

    I have tried reduce the size of dll's of Qt version 4.7.1 using QConfig. After disabling some features by QConfig tool, I configured and compiled Qt(dynamically), with Visual Studio 2005 compiler. The configuration script I used to configure is [configure -platform win32-msvc2005 -no-openvg -no-opengl -no-webkit -nomake examples -nomake demos -qconfig myqt]. After this command is executed, i run "nmake". but the compilation ends with some errors.
    "Some errors" is not useful in diagnosing the problem.
    1) Does this qconfig tool is effective with Qt4.6.2 or Qt4.7.1?
    Yes. Clearly playing about with the features broke the build, so it must be having some effect. Removing features is mostly targeted a resource poor embedded environments though.
    2) How do I use QConfig effectively to reduce the size of my Qt application?
    Start by not shipping unneeded DLLs. If you really must, compile out features in the DLLs you need to ship. There are some predefined feature sets http://doc.qt.nokia.com/4.7/fine-tuning-features.html
    3) Are there other approaches to disable some features from Qt?
    You can enable and disable components and features of Qt from the configure command. Run "configure --help" and read the page linked above.

Similar Threads

  1. I need to reduce size of qtgui dll
    By naren82 in forum Qt Programming
    Replies: 0
    Last Post: 16th February 2011, 13:11
  2. Reduce Qt/e library size for Arm ..!
    By jagadishjithu in forum Best Practices in Qt Programming
    Replies: 1
    Last Post: 13th March 2010, 09:39
  3. is it possible to reduce the static exe file size?
    By mismael85 in forum Installation and Deployment
    Replies: 1
    Last Post: 17th April 2008, 01:18
  4. how to reduce the size of qt/e application
    By sar_van81 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 16th August 2007, 16:19
  5. Reduce the size of Qt-compiled software
    By ct in forum Qt Programming
    Replies: 7
    Last Post: 2nd May 2007, 15:05

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.