PDA

View Full Version : Running a Qt application with Phonon on a non-development computer



linus
7th April 2010, 16:48
Hi,

I have an application that play video files using phonon::VideoWidget. When I run the application on my development pc it runs fine but when I install it on a non-development pc it starts but the phonon widget displays nothing. Ive included Qt dlls (including phonond4.dll) on the non-development pc.

Any Ideas whats missing? If I install Qt SDK on the non-development PC everything works well and the phonon widget displays video.

borisbn
7th April 2010, 18:00
try to include in your installer the next folders with all dll-files in them

%QTDIR%\plugins\codecs\
%QTDIR%\plugins\phonon_backend\

this folders must be near your application.
e.g.

C:\Program Files\MyAppFolder\codecs\
C:\Program Files\MyAppFolder\phonon_backend\

linus
8th April 2010, 08:34
It worked! Thanks!

stefanadelbert
17th November 2010, 23:41
This really should be in the Qt documentation.

Thanks for the help. Worked for me too. Any method other than trial and error to work out which DLL's are actually needed and which ones aren't?