PDA

View Full Version : Qt 4.3.2 + eclipse 3.3 first project building



christauffre
30th November 2007, 13:13
Hello,

I try to build the AdressBook example from Trolltech, but I can't build the project I create with QtGui Wizard. I Don't add anything in the source code. This is the really first build.

Perhaps a Mingw32 problem? or Eclipse? Or Qt configuration? I'm new with Eclipse, and know only VC++6. I would like to try Eclipse with Qt, instead of VC++/MFC.

Thank you for your help.

Here is my my console message:

mingw32-make
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `D:/Christophe/PROJETS-INFO/AdressBook'
d:\qt\4.3.2\bin\uic.exe adressbook.ui -o ui_adressbook.h
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\qt\4.3.2\include\QtCore" -I"..\..\..\qt\4.3.2\include\QtCore" -I"..\..\..\qt\4.3.2\include\QtGui" -I"..\..\..\qt\4.3.2\include\QtGui" -I"..\..\..\qt\4.3.2\include" -I"..\..\..\qt\4.3.2\include\ActiveQt" -I"debug" -I"." -I"..\..\..\qt\4.3.2\mkspecs\win32-g++" -o debug\main.o main.cpp
mingw32-make[1]: *** [debug\main.o] Error 1
mingw32-make[1]: Leaving directory `D:/Christophe/PROJETS-INFO/AdressBook'
mingw32-make: *** [debug] Error 2

marcel
30th November 2007, 18:00
I see you're building the debug version. This only works if you have Qt compiled in debug mode.

christauffre
5th December 2007, 12:52
I can compile very well address book example in a command window, with code source generated with Eclipse, but not directly with "build project" eclipsemenu command. So i think my QT configuration is ok. What can be the problem?