PDA

View Full Version : Phonon doesn`t play sound on other computers :(



pioter
20th December 2009, 18:25
hello
at the beginning I want to sorry for my English I'm from Polish and use google translate :p
When I use a phonon it works on my computer (playing music), but on other computers just run the application without playing music.
I tried also to open Phonon expample, but only works on my computer, on the other could not even load the songs to a playlist :(
What should I do to phonon play sound on other computers ?
I'm using Qt 4.6
I`m tested my application for Windows XP and Windows 7
I throw phonon.dll to the folder with the *.exe
Please help me :(

Lykurg
21st December 2009, 09:05
I throw phonon.dll to the folder with the *.exe
It has to be in a subdirectory. See "Deploying a application on Windows" in the docs. You also can use qt.conf.

pioter
21st December 2009, 11:03
I searched doc and found this:
http://doc.trolltech.com/4.6/phonon-overview.html#windows and http://pepper.troll.no/s60prereleases/doc/deployment-windows.html

If I have understood that I must download it (http://www.microsoft.com/downloads/details.aspx?FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc&DisplayLang=en) and launch the script [C: \ Program Files \ Microsoft SDKs \ Windows \ v6.1 \ Bin \ setenv.cmd] before I build project and then my program will it work ?

If I haven`t understood please write me step by step what I must do :crying:

Lykurg
21st December 2009, 16:24
I guess you are using the sdk, so you don't need to build anything. Just deliver the *.dll with your application. See your last link under "Qt Plugins".

pioter
21st December 2009, 20:40
I am using QtCreator 1.3.
I delive:

libgcc_s_dw2-1.dll
mingwm10.dll
phonon4.dll
QtCore4.dll
QtGui4.dll
phonon_ds94.dll
phononwidgetsd.dll
on my computer (windows xp) my application run and play music

on other computer (windows xp and 7, without install Qt liblaries) my application run, but dones not play music :(

What am I doing wrong ?

Lykurg
21st December 2009, 22:33
the phonon libraries must be in a subdirectory called "plugins" and then in another which I don't now right now because I sit in front of my linux machine. Or use qt.conf to set the path where your program can find it.

pioter
23rd December 2009, 10:45
Success !
I add to the qt.conf this

[Paths]
Prefix = path to the application folder/

and add files and folders:

plugins/designer/phononwidgets.dll
plugins/phonon_backend/phonon_ds94.dll

and now my application play the music :)

thank you very much for helping :)

topic can be closed