Results 1 to 20 of 29

Thread: phonon4qtmingw.zip - a magical package!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Smile Re: phonon4qtmingw.zip - a magical package!

    I just have realized that it only builds under mingw32-make release...
    sorry for bothering, my mistake...

  2. #2
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: phonon4qtmingw.zip - a magical package!

    you can modify the configure command line in the source (edit commands.txt) for adding debug mode if you want (I think removing -release solves it all). don't forget running install.cmd again.

    by default it builds in release mode just for speed.

  3. #3
    Join Date
    Jul 2009
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: phonon4qtmingw.zip - a magical package!

    I have the latest version of Microsoft DirectX and Microsoft SDK installed..I use Qt 4.5.2..When the configuration of your package is over, I am still not being able to use phonon
    It gives error

    the steps I followed are:
    Install Qt 4.5.2
    run phonon4qt

    Is there antything that i am missing?

  4. #4
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: phonon4qtmingw.zip - a magical package!

    I use Qt 4.5.2
    have you a complete SDK installed?

    When the configuration of your package is over, I am still not being able to use phonon
    It gives error
    what is the error message?
    what command lines did you use for building your app?

    the steps I followed are:
    Install Qt 4.5.2
    run phonon4qt
    did you run install.cmd before phonon4qt by clicking it? (don't call the install.cmd from the command line)
    then you must open a fresh Qt command prompt and run the phonon4qt there.
    then answer the two questions with y or n.
    then, after pressing any key to continue, wait (possibly several hours) to complete the build process.
    I recommend you to redirect the build tools' messages to the log file (by replying y to the related question).
    save any error messages you see on the command line, and give them and the log file.

  5. #5
    Join Date
    Jul 2009
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: phonon4qtmingw.zip - a magical package!

    hey I got it installed by some other way..anyway, thanks for the help!

  6. #6
    Join Date
    Jan 2006
    Posts
    115
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: phonon4qtmingw.zip - a magical package!

    Hello FS Lover,

    I.am trying to get this patch get working on my machine.
    The problem is that i can only use Debug Mode because Release Mode give my a error( lphonond is missing ).
    In your early post you describe to change the commnds.txt the command line into the Debug Mode.
    Can you tell me wich command line in commands.txt.

    Thanks in advance.

  7. #7
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: phonon4qtmingw.zip - a magical package!

    The problem is that i can only use Debug Mode because Release Mode give my a error( lphonond is missing ).
    phonond is the debug version of the phonon lib that your compiler requested it.
    so it seems that your compilation was not in release mode (only).
    what command lines did you use for building?
    Last edited by FS Lover; 2nd August 2009 at 10:03.

  8. #8
    Join Date
    Jan 2006
    Posts
    115
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: phonon4qtmingw.zip - a magical package!

    Hello,

    I figured it out i have change the 2 lines in commands.txt with -release configuration into -debug .
    It compiles and works perfect voor my phonon examples and demos.

    Thanks.

  9. #9
    Join Date
    Jun 2007
    Location
    Netherlands
    Posts
    54
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: phonon4qtmingw.zip - a magical package!

    Hey i have tried this but i get the following error message

    Qt Code:
    1. ====================================================================
    2. current directory: F:\Qt\2009.03\mingw\include
    3. ====================================================================
    4.  
    5. step 1: adding new files to and patching some mingw's header files...
    6.  
    7. patching file amvideo.h
    8. patching file bdatypes.h
    9. patching file control.h
    10. patching file dshow.h
    11. patching file strmif.h
    12. patching file vmr9.h
    13.  
    14. ====================================================================
    15.  
    16. step 2: setting Microsoft DirectX SDK 2008 paths...
    17.  
    18. Dx x64 target enviroment is now enabled.
    19. The system cannot find the batch label specified - Host
    20.  
    21. F:\Qt\2009.03\mingw\include>
    To copy to clipboard, switch view to plain text mode 

    Only thing i changed was the -release command to -debug-and-release

    <edit>
    I have added the Host label to the phonon4qt.cmd to make it look like this:

    Qt Code:
    1. :x86_Target
    2. Set Lib=%DXSDK_DIR%Lib\x86;%Lib%
    3. Set Include=%DXSDK_DIR%Include;%Include%
    4. echo Dx x86 target enviroment is now enabled.
    5.  
    6. :Host
    7. rem -----------------------
    8. echo.
    9. echo lib=%lib%
    10. echo include=%include%
    To copy to clipboard, switch view to plain text mode 

    Running it now will let you now if it worked.

    <Edit2>


    That didn't work i get the following error when configuring qt:
    Qt Code:
    1. In file included from thread\qsemaphore.cpp:42:
    2. thread\qsemaphore.h:57: internal compiler error: Segmentation fault
    3. Please submit a full bug report,
    4. with preprocessed source if appropriate.
    5. See <URL:http://www.mingw.org/bugs.shtml> for instructions.
    6. mingw32-make[2]: *** [tmp/obj/debug_shared/qsemaphore.o] Error 1
    7. mingw32-make[2]: Leaving directory `F:/Qt/2009.03/qt/src/corelib'
    8. mingw32-make[1]: *** [debug-all] Error 2
    9. mingw32-make[1]: Leaving directory `F:/Qt/2009.03/qt/src/corelib'
    10. mingw32-make: *** [sub-corelib-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 

    And for some information i am using QtCreator 1.2 with Qt 4.5.2 on a windows 7 64 bit pc.
    Last edited by eekhoorn12; 18th August 2009 at 19:14.

  10. #10
    Join Date
    Jun 2007
    Location
    Netherlands
    Posts
    54
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: phonon4qtmingw.zip - a magical package!

    A friend of me also tried to install phonon support on qt. He used a fresh install of the Qt toolkit including mingw, he also runs 64 bit windows 7 and he gets the following error:

    Qt Code:
    1. In file included from image\qiconengine.cpp:42:
    2. image\qiconengine.h:55: internal compiler error: Segmentation fault
    3. Please submit a full bug report,
    4. with preprocessed source if appropriate.
    5. See <URL:http://www.mingw.org/bugs.shtml> for instructions.
    6. mingw32-make[2]: * [tmp/obj/debug_shared/qiconengine.o] Error 1
    7. mingw32-make[2]: Leaving directory `C:/Qt/2009.03/qt/src/gui'
    8. mingw32-make[1]: * [debug-all] Error 2
    9. mingw32-make[1]: Leaving directory `C:/Qt/2009.03/qt/src/gui'
    10. mingw32-make: * [sub-gui-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 

    <Edit>
    I have added his entire log file
    Attached Files Attached Files
    Last edited by eekhoorn12; 19th August 2009 at 08:14.

  11. #11
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: phonon4qtmingw.zip - a magical package!

    this is a special case I can't test and don't know the cause.
    I have not a 64 bit machine neither have the windows 7.
    but I think it's worth some further testings.
    for example, try adding the `Goto x86_Target' command after the `:x64_Target' label line in the commands.txt file for testing build with 32 bit libs on your 64 bit machine.
    Don't forget to run the install.cmd again after modifying the commands.txt.

    I have no many more ideas.
    I think you can build Qt on a 32 bit machine with windows xp or vista and use it on your 64 bit windows 7 environment too.

    and I think you can contact qt software sending your error message too.
    probably they will give you some useful information (if so, please don't forget to post them here too).
    Last edited by FS Lover; 23rd August 2009 at 06:30.

  12. #12
    Join Date
    Jul 2008
    Posts
    69
    Thanks
    9
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: phonon4qtmingw.zip - a magical package!

    Hi FS_Lover
    thanks for the files.

    Windows XP, with Qt4.5.2 and mingw installed using the QTcreator package
    gcc version 3.4.2 (mingw-special)

    I tried to run it
    clicked first on "instal.cmd"

    then open the prompt for QT4.5.2

    it is asking for some lib files

    |? include/ddraw.h
    |? include/dmo.h
    |? include/dmodshow.h
    |? include/medparam.h
    |? include/qnetwork.h
    |Index: include/amvideo.h

    see details below

    any idea why ??
    thanks again
    SunnySan

    Qt Code:
    1. Setting up a MinGW/Qt only environment...
    2. -- QTDIR set to C:\Qt\4.5.2
    3. -- PATH set to C:\Qt\4.5.2\bin
    4. -- Adding C:\MinGW\bin to PATH
    5. -- Adding C:\WINDOWS\System32 to PATH
    6. -- QMAKESPEC set to win32-g++
    7.  
    8. C:\Qt\4.5.2>phonon4qt
    9.  
    10. this will build qt (mingw version) with phonon support
    11. overal operation typically takes hours (e.g. 5 hours on a 800MHz CPU)
    12. do you want to automatically shutdown your system after completion of the build
    13. proccess?
    14. (y/n): y
    15.  
    16. Press any key to continue . . .
    17.  
    18. do you want all messages printed by the build tools
    19. to be redirected to the log file instead of displaying on the console?
    20. (y/n): y
    21.  
    22. phonon4qt's log file's address is: "C:\Qt\4.5.2\phonon4qt.log"
    23.  
    24. Press any key to continue . . .
    25.  
    26. getting user options is done
    27. now the rest of operations for building qt are automatic (no user intervention)
    28. configure and mingw32-make commands will be run consecutively
    29. with command line options needed for building qt's phonon with mingw
    30. note that this program doesn't try to manage or
    31. even recognize any errors in the build process
    32. but if you have the prerequisites there should be no problems
    33. please report the result of your build to me if you can
    34. email me at: hamidreza_mz -=at=- yahoo -=dot=- com
    35. building takes a long time
    36. you can leave your machine alone if you want, after pressing one more any key!
    37.  
    38. press any key to begin the rest of operations that are fully automatic...
    39. The system cannot find the path specified.
    40.  
    41. ====================================================================
    42. current directory: C:\Qt\4.5.2
    43. ====================================================================
    44.  
    45. step 1: adding new files to and patching some mingw's header files...
    46.  
    47. can't find file to patch at input line 11
    48. Perhaps you should have used the -p or --strip option?
    49. The text leading up to this was:
    50. --------------------------
    51. |? include/ddraw.h
    52. |? include/dmo.h
    53. |? include/dmodshow.h
    54. |? include/medparam.h
    55. |? include/qnetwork.h
    56. |Index: include/amvideo.h
    57. |===================================================================
    58. |RCS file: /cvs/src/src/winsup/w32api/include/amvideo.h,v
    59. |retrieving revision 1.4
    60. |diff -r1.4 amvideo.h
    61. --------------------------
    62. File to patch:
    To copy to clipboard, switch view to plain text mode 
    Last edited by SunnySan; 17th October 2009 at 11:42. Reason: updated contents

  13. #13
    Join Date
    Sep 2009
    Posts
    39
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: phonon4qtmingw.zip - a magical package!

    Hi to all.. I downloaded phononmingw-zip and zipped it and into the folder i clicked in install.cmd, It asked for click on for phononqt.cmd i clicked on it. it asked for process i copied mingw folder and pasted in this phonon4Qt folder.
    It asked for Shut down operation etc, where should be msg's should be stored it was in /phononlog.txt.. I tried to found it out where it is stored i didnt get it.Plz assist me i tried an example given in phonon_test program. it gave error while compiling . the error i have posted here,,,,
    Running build steps for project musicplayer...
    Configuration unchanged, skipping QMake step.
    Starting: C:/Qt/2009.03/phonon4qtmingw/mingw/bin/mingw32-make.exe -w
    mingw32-make: Entering directory `C:/Qt/2009.03/qt/examples/phonon/musicplayer'
    C:/Qt/2009.03/phonon4qtmingw/mingw/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory `C:/Qt/2009.03/qt/examples/phonon/musicplayer'
    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug\musicplayer.exe debug/main.o debug/mainwindow.o debug/moc_mainwindow.o -L"c:\Qt\2009.03\qt\lib" -lmingw32 -lqtmaind -lphonond -lQtGuid4 -lQtCored4
    mingw32-make[1]: Leaving directory `C:/Qt/2009.03/qt/examples/phonon/musicplayer'
    mingw32-make: Leaving directory `C:/Qt/2009.03/qt/examples/phonon/musicplayer'
    C:\Qt\2009.03\phonon4qtmingw\mingw\bin\..\lib\gcc\ mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lphonond
    collect2: ld returned 1 exit status
    mingw32-make[1]: *** [debug\musicplayer.exe] Error 1
    mingw32-make: *** [debug] Error 2
    Exited with code 2.
    Error while building project musicplayer
    When executing build step 'Make'

  14. #14
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: phonon4qtmingw.zip - a magical package!

    get the latest Qt. it has phonon support. you don't need to the magical package anymore.

Similar Threads

  1. Qt binary package on different distributions - problem
    By Tux-Slack in forum Qt Programming
    Replies: 6
    Last Post: 6th August 2008, 11:33
  2. how to integrate Qtopia with the Helix source package
    By hrudhay in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 19th June 2008, 11:23
  3. Creating Package Installer
    By AP.Sakkthivel in forum General Programming
    Replies: 3
    Last Post: 18th July 2007, 19:18

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.