Results 1 to 5 of 5

Thread: Complie problems in using Qt Creator.

  1. #1
    Join Date
    Apr 2010
    Posts
    6
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Question Complie problems in using Qt Creator.

    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.
    Qt Code:
    1. Running build steps for project QC_0420_2...
    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
    3. Exited with code 0.
    4. Starting: C:/Qt/2010.02.1/mingw/bin/mingw32-make.exe -w
    5. mingw32-make: Entering directory `C:/Qt/workspace/QC_0420_2'
    6. C:/Qt/2010.02.1/mingw/bin/mingw32-make -f Makefile.Debug
    7. mingw32-make[1]: Entering directory `C:/Qt/workspace/QC_0420_2'
    8. 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
    9. 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
    10. mingw32-make[1]: Leaving directory `C:/Qt/workspace/QC_0420_2'
    11. mingw32-make: Leaving directory `C:/Qt/workspace/QC_0420_2'
    12. c:/qt/2010.02.1/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lQtDBusd
    13. collect2: ld returned 1 exit status
    14. mingw32-make[1]: *** [debug\QC_0420_2.exe] Error 1
    15. mingw32-make: *** [debug] Error 2
    16. Exited with code 2.
    17. Error while building project QC_0420_2
    18. When executing build step 'Make'
    To copy to clipboard, switch view to plain text mode 


    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Complie problems in using Qt Creator.

    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.

  3. The following user says thank you to Lykurg for this useful post:

    Zmrca (26th April 2010)

  4. #3
    Join Date
    Apr 2010
    Posts
    6
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: Complie problems in using Qt Creator.

    Quote Originally Posted by Lykurg View Post
    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.

  5. #4
    Join Date
    Apr 2010
    Posts
    6
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Wink Re: Complie problems in using Qt Creator.

    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.

  6. #5
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Complie problems in using Qt Creator.

    Quote Originally Posted by Zmrca View Post
    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...

Similar Threads

  1. how to use Qwt in Qt creator(1.2.1)?
    By qtlinuxnewbie in forum Qwt
    Replies: 2
    Last Post: 6th March 2010, 13:29
  2. Replies: 0
    Last Post: 12th October 2009, 22:37
  3. Qt Creator
    By fnmblot in forum General Discussion
    Replies: 3
    Last Post: 12th April 2009, 08:06
  4. Qt Creator on Mac OS X
    By stephenju in forum Qt Tools
    Replies: 2
    Last Post: 12th March 2009, 21:51
  5. QT4 Plugins - problems, problems
    By NormanDunbar in forum Qt Programming
    Replies: 6
    Last Post: 9th May 2006, 15:39

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.