Results 1 to 4 of 4

Thread: Debug mode Qt 4.3.2

  1. #1
    Join Date
    Oct 2007
    Posts
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Debug mode Qt 4.3.2

    Hi,
    have a question about the debug mode for my simplest qt-applications:
    Even though i want only to debug my qt-aplications and not the whole qt-library itself,
    have i to build the debug libraries in every case ?

    I tried to create the debug mode for my simple project with “make debug” , but an error message occurred :

    c:\Qt\4.3.2\bin\qmake.exe -win32 -o Makefile QtTest.pro
    mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory `C:/QtTest'
    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
    oc -mthreads -Wl -Wl,-subsystem,windows -o "debug\QtTest.exe" debug\main.o -L"c
    :\Qt\4.3.2\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
    C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\ mingw32\bin\ld.exe: cannot fin
    d -lQtGuid4
    collect2: ld returned 1 exit status
    mingw32-make[1]: *** [debug\QtTest.exe] Error 1
    mingw32-make[1]: Leaving directory `C:/QtTest'
    mingw32-make: *** [debug] Error 2


    Please help me !

    My installations (Windows XP-SP2):
    (MinGW) MinGW-5.1.3.exe,( Debugger : ) gdb-5.2.1-1.exe
    (Qt Opensource) Qt-win-opensource-4.3.2-mingw.exe

    Environment variables :
    QTDIR=C:\Qt\4.3.2 and QMAKESPEC=win32g++ .
    PATH=C:\Qt\4.3.2\bin;C:\MinGW\bin;....

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Debug mode Qt 4.3.2

    Try not to link to the Qt debug libs, but the release ones instead, if you only want to debug your code. Works on Mac very well.

  3. #3
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Debug mode Qt 4.3.2

    PLEASE use the forum search function!
    It's the third question about this issue today

    http://www.qtcentre.org/forum/f-inst...t432-9564.html

  4. #4
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Debug mode Qt 4.3.2

    he doesn't want to build the debug libs. just wants to build his app in debug mode and link to the release libs

Similar Threads

  1. Difference between Debug and Release Mode
    By sunil.thaha in forum Qt Programming
    Replies: 2
    Last Post: 5th May 2013, 13:31
  2. What is debug mode for without MSVC?
    By firegun9 in forum Newbie
    Replies: 1
    Last Post: 5th September 2007, 17:21
  3. Problem with Debug mode in KDevelop
    By zlatko in forum KDE Forum
    Replies: 1
    Last Post: 16th June 2006, 09:10
  4. Unable to execute in Debug Mode
    By Kapil in forum Installation and Deployment
    Replies: 38
    Last Post: 5th April 2006, 07:27
  5. How to build in debug mode?
    By Weilor in forum Newbie
    Replies: 5
    Last Post: 15th February 2006, 14:02

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.