Results 1 to 16 of 16

Thread: Explain Qt library sizes, please

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Explain Qt library sizes, please

    Use the following construct:
    "CONFIG(debug, debug|release) { ... }" for debug mode compilation and "CONFIG(release, debug|release){...}" for release mode compilation. Then when the compilation is in debug and release proper scopes will get activated.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Jan 2008
    Posts
    155
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Explain Qt library sizes, please

    Thanks, this seems to work on win32-mcvc2008.
    However this does not seems to work on MacX, only GeneratedFiles/Debug is generated.
    But this is not serious for me at the moment.

    And still, the Win32 app wants VC90.DebugCRT to run on the other PC.
    I have removed my linked-in library and put the source directly in the project, so there cannot be any debug/release mixup, if there ever was.
    Any suggestions where I should look?
    I have used the dependency walker and I have not found anything debug-related so far.
    MacOSX user dabbling with Linux and Windows.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Explain Qt library sizes, please

    Quote Originally Posted by bnilsson View Post
    Thanks, this seems to work on win32-mcvc2008.
    However this does not seems to work on MacX, only GeneratedFiles/Debug is generated.
    But this is not serious for me at the moment.
    It should work. Provided that debug_and_release is supported on Mac.

    I have used the dependency walker and I have not found anything debug-related so far.
    Did it show a dependency on the debug version of the C runtime? What exactly depended on it?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Jan 2008
    Posts
    155
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Explain Qt library sizes, please

    I tried again on another development PC, installed Qt like this in the VC2008 command window:

    configure -static -release - no-webkit
    nmake sub-src

    So no static debug libraries were built.

    Now I could build the release app and it finally worked at the target PC.
    So far so good.

    However, I failed to make the (same) VC project build a debug shared app, since the settings in the VC debug configuration was not properly set for this.
    I had previously built Qt shared in the development PC so the shared libs were there also.
    Is it possible to have a single VC project with both shared(debug) and static(release) builds?

    And if it is, is it possible to have this generated by a single .pro file by qmake (with TARGET vcapp)?


    In general, how does one usually set up the Qt/vc environment for shared debugging and static deployment?
    MacOSX user dabbling with Linux and Windows.

  5. #5
    Join Date
    Jan 2008
    Posts
    155
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Explain Qt library sizes, please

    As this discussion drifted a bit since the original question, I move the shared debug / static release build to another thread.
    MacOSX user dabbling with Linux and Windows.

Similar Threads

  1. Extending a plugin in a static library
    By ultim8 in forum Qt Programming
    Replies: 5
    Last Post: 25th March 2010, 15:10
  2. Replies: 4
    Last Post: 18th December 2009, 18:55
  3. plugin in a library
    By alisami in forum Qt Programming
    Replies: 2
    Last Post: 3rd October 2008, 17:21
  4. Adding library dependencies to qmake
    By sadastronaut in forum Installation and Deployment
    Replies: 2
    Last Post: 18th March 2008, 17:06
  5. Replies: 1
    Last Post: 5th March 2007, 20:50

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.