PDA

View Full Version : Debug mode Qt 4.3.2



oetzi
13th October 2007, 13:56
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;....

marcel
13th October 2007, 14:15
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.

ChristianEhrlicher
13th October 2007, 16:18
PLEASE use the forum search function!
It's the third question about this issue today

http://www.qtcentre.org/forum/f-installation-5/t-fail-to-build-debug-libraries-in-qt432-9564.html

marcel
13th October 2007, 18:06
he doesn't want to build the debug libs. just wants to build his app in debug mode and link to the release libs