Results 1 to 6 of 6

Thread: Problem with compiling

  1. #1
    Join Date
    Mar 2009
    Posts
    9
    Thanks
    1
    Qt products
    Qt4

    Default Problem with compiling

    Hi people!

    I'm new user QT-Creator, but i'm programer have 20 years in varibles linguagers.
    I am having trouble compiling the program for example musicplayer. Compile output:

    Running build steps for project capabilities... Creating gdb macros library...
    QMAKESPEC set to C:\Qt\2009.01\qt\mkspecs\win32-g++ overrides mkspec of selected qt win32-g++
    Starting: C:/Qt/2009.01/qt/bin/qmake.exe C:/Qt/2009.01/qt/examples/phonon/capabilities/capabilities.pro -spec win32-g++ -r
    Exited with code 0.
    Starting: C:/Qt/2009.01/mingw/bin/mingw32-make.exe -w
    mingw32-make: Entering directory `C:/Qt/2009.01/qt/examples/phonon/capabilities'
    C:/Qt/2009.01/mingw/bin/mingw32-make -f Makefile.Debug all
    mingw32-make[1]: Entering directory `C:/Qt/2009.01/qt/examples/phonon/capabilities'
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -I"..\..\..\include\phonon" -I"..\..\..\include" -I"..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"." -I"c:\qt-greenhouse\Trolltech\Code_less_create_more\Trollte ch\Code_less_create_more\Troll\4.5.0\qt\mkspecs\wi n32-g++" -o tmp\obj\debug_shared\window.o window.cpp
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -I"..\..\..\include\phonon" -I"..\..\..\include" -I"..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"." -I"c:\qt-greenhouse\Trolltech\Code_less_create_more\Trollte ch\Code_less_create_more\Troll\4.5.0\qt\mkspecs\wi n32-g++" -o tmp\obj\debug_shared\main.o main.cpp
    C:/Qt/2009.01/qt/bin/moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -I"..\..\..\include\phonon" -I"..\..\..\include" -I"..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"." -I"c:\qt-greenhouse\Trolltech\Code_less_create_more\Trollte ch\Code_less_create_more\Troll\4.5.0\qt\mkspecs\wi n32-g++" -D__GNUC__ -DWIN32 window.h -o tmp\moc\debug_shared\moc_window.cpp
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -I"..\..\..\include\phonon" -I"..\..\..\include" -I"..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"." -I"c:\qt-greenhouse\Trolltech\Code_less_create_more\Trollte ch\Code_less_create_more\Troll\4.5.0\qt\mkspecs\wi n32-g++" -o tmp\obj\debug_shared\moc_window.o tmp\moc\debug_shared\moc_window.cpp
    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug\capabilities.exe tmp/obj/debug_shared/window.o tmp/obj/debug_shared/main.o tmp/obj/debug_shared/moc_window.o -L"c:\Qt\2009.01\qt\lib" -L"c:\Qt\2009.01\qt\lib" -lmingw32 -lqtmaind -lphonond4 -lQtGuid4 -lQtCored4
    mingw32-make[1]: Leaving directory `C:/Qt/2009.01/qt/examples/phonon/capabilities'
    mingw32-make: Leaving directory `C:/Qt/2009.01/qt/examples/phonon/capabilities'
    C:\Qt\2009.01\mingw\bin\..\lib\gcc\mingw32\3.4.5\. .\..\..\..\mingw32\bin\ld.exe: cannot find -lphonond4
    collect2: ld returned 1 exit status
    mingw32-make[1]: *** [debug\capabilities.exe] Error 1
    mingw32-make: *** [debug-all] Error 2
    Exited with code 2.
    Error while building project capabilities
    When executing build step 'Make'
    My SO is Windows Vista and my version of QT-Creator is 4.5.
    I am thinking of migrating to QT, but must first resolve these problems, so need help from you.
    Thank's

    Jean

  2. #2
    Join Date
    Mar 2008
    Posts
    141
    Thanks
    10
    Thanked 9 Times in 9 Posts

    Default Re: Problem with compiling

    hm, i am not a programmer, but it looks like phonon is missing. Therefore your source does not compile on windows.

  3. #3
    Join Date
    Mar 2009
    Posts
    9
    Thanks
    1
    Qt products
    Qt4

    Default Re: Problem with compiling

    But I did the complete installation, then imagine what he must have also installed the libraries of the phono.
    Like I said before, although be programmer I never used the QT, then I'm totally lost.
    Thank's.

    Jean

  4. #4
    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: Problem with compiling

    Hi, have a look at installing phonon:

    Warning: The MinGW version of Qt does not support building the Qt backend.
    Lykurg

  5. #5
    Join Date
    Mar 2008
    Location
    Houston, Texas, USA
    Posts
    277
    Thanks
    9
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: Problem with compiling

    What about this? Does it work anymore?

    http://wiki.qtcentre.org/index.php?t...ws_using_MinGW
    Qt-4.7.3 | Gentoo ~amd64 | KDE-4.7
    Aki IRC Client for KDE4 | Qt Documentation

  6. #6
    Join Date
    Mar 2009
    Posts
    9
    Thanks
    1
    Qt products
    Qt4

    Default Re: Problem with compiling

    I had already installed the DirectX SDK, but I had just only given the command
    "config ...-phonon", then yesterday applied the command "make" and despite 2 hours after he submitted 2 errors when I returned to run the example musicplayer it came to running, but without running their functionality such as file upload audio featuring the message: WARNING: bool Phonon:: FactoryPrivate: createBackend () phonon backend plugin could not be loaded.
    Still do not understand the reasons, things are still very confusing to me yet.
    I need to use the phonon multimedia functions or it is a framework and I use if you want and do not want I use the multimedia functions right?
    Thank's

    Jean

Similar Threads

  1. Compiling Problem qt/embedded 4.4.1 linux scratchbox arm
    By hw in forum Installation and Deployment
    Replies: 0
    Last Post: 11th September 2008, 19:25
  2. Problem in compiling
    By ja_sapienza in forum Qt Programming
    Replies: 7
    Last Post: 11th July 2008, 15:10
  3. Problem compiling Qt4.4.0 with mingw-static in examples/webkit
    By KjellKod in forum Installation and Deployment
    Replies: 2
    Last Post: 10th July 2008, 13:32
  4. xlC V9 problem compiling Qt 3.3.8
    By kevinm in forum Installation and Deployment
    Replies: 0
    Last Post: 8th April 2008, 20:23
  5. compiling problem / Qt DLL files
    By ht1 in forum Newbie
    Replies: 1
    Last Post: 5th January 2008, 17:58

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
  •  
Qt is a trademark of The Qt Company.