PDA

View Full Version : phonon4qtmingw.zip - a magical package!



FS Lover
20th July 2009, 17:16
http://rapidshare.com/files/257997882/phonon4qtmingw.zip.html

this package which is just about 6 megabytes (compare it with downloading MS DX SDK that is about 500MB), adds phonon support to your mingw qt, very easily.

you must have installed mingw qt sdk completely on your MS Windows.
sdk's mingw installation must not be canceled.

then double click on the install.cmd file inside the package.
and follow the instructions.
it is fully automatic.
test it and tell me about your results and opinion.
specially tell me about you phonon video support.

thank all others for their helps; including Qt Software guys.

FS Lover
21st July 2009, 07:20
I recommend you to test it using a fresh installation of Qt SDK.
qt command prompt should be in %qtdir% (it's the default when opening qt command prompt).

FS Lover
25th July 2009, 07:01
some of my friends tested the package on other machines recently.
they told me that it works great and no video problem exists.
so I think this package is the easiest way for adding phonon support to mingw qt ever.

but we are waiting to see default phonon support precompiled in the mingw version of qt in the near future.

Joe
25th July 2009, 10:07
Unfortunately the Rapidshare link appears to have expired. Could you please post it again, I would really appreciate that. Thanks a million.

wysota
25th July 2009, 12:26
Maybe you could add the file as forum attachment here?

FS Lover
26th July 2009, 09:02
Unfortunately the Rapidshare link appears to have expired. Could you please post it again, I would really appreciate that. Thanks a million.
of course: http://rapidshare.com/files/260143406/phonon4qtmingw.zip.html


Maybe you could add the file as forum attachment here?
I think attachments' size limit doesn't let me.
I will try to find a more permanent upload area.

FS Lover
26th July 2009, 09:33
apparently, free Rapidshare uploads have a limit of 10 times of downloads.
this is the download link of another temporary upload until I will find a better place:
http://www.4shared.com/file/120723456/67d686b4/phonon4qtmingw.html
and this is in a Collector's Account that I think does not have the 10 times limit:
http://rapidshare.com/files/260156018/phonon4qtmingw.zip

FS Lover
26th July 2009, 17:52
this is another download link (my friend uploaded it on his own site):
http://flashqard-project.org/uploads/folaani/phonon4qtmingw.zip

pucheto
28th July 2009, 19:47
I tried your package but the problem is still there..

C:\Qt\2009.03\mingw\bin\..\lib\gcc\mingw32\3.4.5\. .\..\..\..\mingw32\bin\ld.exe: cannot find -lphonond4

i'm under vista, with the last QT open source edition.

FS Lover
29th July 2009, 06:59
what steps did you take to accomplish it?

pucheto
29th July 2009, 14:47
I just have realized that it only builds under mingw32-make release...
sorry for bothering, my mistake...

FS Lover
30th July 2009, 06:10
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.

heminm
30th July 2009, 14:26
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?

FS Lover
31st July 2009, 07:32
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.

heminm
1st August 2009, 14:01
hey I got it installed by some other way..anyway, thanks for the help!

dragon
1st August 2009, 17:43
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.

FS Lover
2nd August 2009, 09:58
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?

dragon
4th August 2009, 18:44
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.

eekhoorn12
18th August 2009, 18:47
Hey i have tried this but i get the following error message


================================================== ==================
current directory: F:\Qt\2009.03\mingw\include
================================================== ==================

step 1: adding new files to and patching some mingw's header files...

patching file amvideo.h
patching file bdatypes.h
patching file control.h
patching file dshow.h
patching file strmif.h
patching file vmr9.h

================================================== ==================

step 2: setting Microsoft DirectX SDK 2008 paths...

Dx x64 target enviroment is now enabled.
The system cannot find the batch label specified - Host

F:\Qt\2009.03\mingw\include>

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:


:x86_Target
Set Lib=%DXSDK_DIR%Lib\x86;%Lib%
Set Include=%DXSDK_DIR%Include;%Include%
echo Dx x86 target enviroment is now enabled.

:Host
rem -----------------------
echo.
echo lib=%lib%
echo include=%include%

Running it now will let you now if it worked.

<Edit2>

That didn't work i get the following error when configuring qt:


In file included from thread\qsemaphore.cpp:42:
thread\qsemaphore.h:57: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.
mingw32-make[2]: *** [tmp/obj/debug_shared/qsemaphore.o] Error 1
mingw32-make[2]: Leaving directory `F:/Qt/2009.03/qt/src/corelib'
mingw32-make[1]: *** [debug-all] Error 2
mingw32-make[1]: Leaving directory `F:/Qt/2009.03/qt/src/corelib'
mingw32-make: *** [sub-corelib-make_default-ordered] Error 2

And for some information i am using QtCreator 1.2 with Qt 4.5.2 on a windows 7 64 bit pc.

eekhoorn12
19th August 2009, 08:01
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:


In file included from image\qiconengine.cpp:42:
image\qiconengine.h:55: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.
mingw32-make[2]: * [tmp/obj/debug_shared/qiconengine.o] Error 1
mingw32-make[2]: Leaving directory `C:/Qt/2009.03/qt/src/gui'
mingw32-make[1]: * [debug-all] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/2009.03/qt/src/gui'
mingw32-make: * [sub-gui-make_default-ordered] Error 2

<Edit>
I have added his entire log file

FS Lover
23rd August 2009, 06:26
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).

SunnySan
17th October 2009, 10:46
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



Setting up a MinGW/Qt only environment...
-- QTDIR set to C:\Qt\4.5.2
-- PATH set to C:\Qt\4.5.2\bin
-- Adding C:\MinGW\bin to PATH
-- Adding C:\WINDOWS\System32 to PATH
-- QMAKESPEC set to win32-g++

C:\Qt\4.5.2>phonon4qt

this will build qt (mingw version) with phonon support
overal operation typically takes hours (e.g. 5 hours on a 800MHz CPU)
do you want to automatically shutdown your system after completion of the build
proccess?
(y/n): y

Press any key to continue . . .

do you want all messages printed by the build tools
to be redirected to the log file instead of displaying on the console?
(y/n): y

phonon4qt's log file's address is: "C:\Qt\4.5.2\phonon4qt.log"

Press any key to continue . . .

getting user options is done
now the rest of operations for building qt are automatic (no user intervention)
configure and mingw32-make commands will be run consecutively
with command line options needed for building qt's phonon with mingw
note that this program doesn't try to manage or
even recognize any errors in the build process
but if you have the prerequisites there should be no problems
please report the result of your build to me if you can
email me at: hamidreza_mz -=at=- yahoo -=dot=- com
building takes a long time
you can leave your machine alone if you want, after pressing one more any key!

press any key to begin the rest of operations that are fully automatic...
The system cannot find the path specified.

================================================== ==================
current directory: C:\Qt\4.5.2
================================================== ==================

step 1: adding new files to and patching some mingw's header files...

can't find file to patch at input line 11
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|? include/ddraw.h
|? include/dmo.h
|? include/dmodshow.h
|? include/medparam.h
|? include/qnetwork.h
|Index: include/amvideo.h
|================================================= ==================
|RCS file: /cvs/src/src/winsup/w32api/include/amvideo.h,v
|retrieving revision 1.4
|diff -r1.4 amvideo.h
--------------------------
File to patch:

FS Lover
25th October 2009, 11:24
please see where is the mingw directory.
there should be a directory named `mingw' (or something similar) somewhere in your qt installation directory.

FS Lover
5th November 2009, 08:55
a new version of phonon4qtmingw is made available.
i corrected a bug (encountered in 64bit environment) and added the "debug-and-release" mode to it.
now it asks from you whether you want to build in release mode only or debug versions be built too.
note that building in release mode only, is considerably faster (in my test, about 50% faster), so i added the option, and it may be useful for some tests and problems too.
package is even smaller now (3 MB) because i removed the 64 bit dx sdk libs (apparently qt doesn't support 64 bit build for windows)

here is the download link:
http://www.4shared.com/file/146674858/b2a00a06/phonon4qtmingw--2.html

FS Lover
29th November 2009, 07:49
a new version of phonon4qtmingw is available now.
its speed is enhanced very much because now only those parts related to generating phonon backend and lib are built.
it is somewhat experimental since I used a non-standard and empirical method to further speed up the overall build process (I replaced the configure step), but I tested it with qt-sdk-win-opensource-2009.04 on two machines running windows xp sp2 and 3 and saw no problems.
download and test it and tell about your results.
it adds phonon to your open source Qt SDK in 15 minutes on a 800MHz CPU!!
configure step took 40 minutes on that system, so I thought to replace it with another method that does not need configuring of the entire Qt.

download link: http://www.4shared.com/file/161942847/2f1b88fc/phonon4qtmingw--3.html

bmn
13th December 2009, 12:05
Will it work with the newly released qt 4.6.0?

FS Lover
14th December 2009, 06:26
apparently Qt SDK 2009.05 (with Qt 4.6) is already phonon ready.
it seems that there is no need to the magical package any more.

Rajeshsan
28th January 2010, 08:42
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'

FS Lover
28th January 2010, 09:10
get the latest Qt. it has phonon support. you don't need to the magical package anymore.