PDA

View Full Version : Complie problems in using Qt Creator.



Zmrca
20th April 2010, 16:43
My Qt sdk is for windows just downloaded from Nokia.com which has both IDE and SDK.

All GUI realated projects have same problem but not Qt console appllicaion.
And I also created a project by using Carbnide2.3, it runs well.

Complie output as bellow, read lines are errors information.


Running build steps for project QC_0420_2...
Starting: c:/qt/2010.02.1/qt/bin/qmake.exe C:/Qt/workspace/QC_0420_2/QC_0420_2.pro -spec win32-g++ -r
Exited with code 0.
Starting: C:/Qt/2010.02.1/mingw/bin/mingw32-make.exe -w
mingw32-make: Entering directory `C:/Qt/workspace/QC_0420_2'
C:/Qt/2010.02.1/mingw/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Qt/workspace/QC_0420_2'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_DBUS_LIB -DQT_TESTLIB_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\2010.02.1\qt\include\QtCore" -I"..\..\2010.02.1\qt\include\QtGui" -I"..\..\2010.02.1\qt\include\QtTest" -I"..\..\2010.02.1\qt\include\QtDBus" -I"..\..\2010.02.1\qt\include" -I"..\..\2010.02.1\qt\include\ActiveQt" -I"debug" -I"..\..\2010.02.1\qt\mkspecs\win32-g++" -o debug\main.o main.cpp
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -mthreads -Wl -o debug\QC_0420_2.exe debug/main.o -L"c:\Qt\2010.02.1\qt\lib" -lQtDBusd -lQtTestd4 -lQtGuid4 -lQtCored4
mingw32-make[1]: Leaving directory `C:/Qt/workspace/QC_0420_2'
mingw32-make: Leaving directory `C:/Qt/workspace/QC_0420_2'
c:/qt/2010.02.1/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lQtDBusd
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\QC_0420_2.exe] Error 1
mingw32-make: *** [debug] Error 2
Exited with code 2.
Error while building project QC_0420_2
When executing build step 'Make'


c:/qt/2010.02.1/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lQtDBusd
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\QC_0420_2.exe] Error 1
mingw32-make: *** [debug] Error 2
Exited with code 2.
Error while building project QC_0420_2
When executing build step 'Make'


exe: cannot find -lQtDBusd. what's lQtDBusd? Why QtCreator cant find it? How can I fixed it?

Lykurg
20th April 2010, 16:47
Ehm, from the docs: "The QtDBus module is a Unix-only library that you can use to perform Inter-Process Communication using the D-Bus protocol."

Remove dbus from the QT variable in your *.pro files.

Zmrca
20th April 2010, 16:52
Ehm, from the docs: "The QtDBus module is a Unix-only library that you can use to perform Inter-Process Communication using the D-Bus protocol."

Remove dbus from the QT variable in your *.pro files.

Ok. I will try and give you a reply later. Many thanks.

Zmrca
20th April 2010, 17:11
Complie successed. It's so strange QT + = IQDbus added to my *.pro file automatically.
There is many things to do to improve Qt creator.
Creator show my UI finally:).Thanks.

Lykurg
20th April 2010, 17:16
There is many things to do to improve Qt creator.I use creator for a long time now, and it never added anything without my knowledge. So I guess you have imported a project and checked the check box in the import dialog...