Results 1 to 4 of 4

Thread: TIP: If Qt4.1 debug compile doesn't work...

  1. #1
    Join Date
    Jan 2006
    Location
    Cincinnati, Ohio, USA
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11

    Lightbulb TIP: If Qt4.1 debug compile doesn't work...

    Make sure you complied Qt with the 'debug' flag. This might be obvious for a lot of you out there. But for a Qt newbie like myself, this took some thinking.

    Problem: you can compile a release version of your Qt project just fine. However, when you try and compile it with debug information so you can walk through your program it fails.

    Solution: recompile Qt with the 'debug' flag.

    Hope that helps someone like it did me,
    Paul

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

    Default Re: TIP: If Qt4.1 debug compile doesn't work...

    I think you can even have a dual build with Qt4.
    It's nice to be important but it's more important to be nice.

  3. #3
    Join Date
    Jan 2006
    Location
    Athens - Greece
    Posts
    219
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: TIP: If Qt4.1 debug compile doesn't work...

    Quote Originally Posted by axeljaeger
    I think you can even have a dual build with Qt4.
    Yes beacause the letter d is appended to the filename of all the libs

  4. #4
    Join Date
    Jan 2006
    Posts
    33
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11

    Default Re: TIP: If Qt4.1 debug compile doesn't work...

    I tried adding debug to the CONFIG in the *.pro file yesterday. (Something I'm used to do)
    But for some reason libqtmain.a is missing in my installation of QT 4.1 on windows. Downloaded it two days ago. I still have the 4.0 version on the computer and I can find the file in that tree.
    Am I missing something here? Did something change between 4.0 and 4.1 and the old qmake was used (complete new project)?

    Cheers,

    Moppel

Similar Threads

  1. qwt don't compile with debug?
    By yunpeng880 in forum Qwt
    Replies: 0
    Last Post: 2nd December 2008, 09:46
  2. Programs compile in debug mode - solved
    By tpf80 in forum Installation and Deployment
    Replies: 1
    Last Post: 18th August 2008, 10:53
  3. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 08:18
  4. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 10:02
  5. Some very weird compilation warnings
    By MarkoSan in forum Qt Programming
    Replies: 21
    Last Post: 23rd January 2008, 17:48

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.