[Qt-interest] How to deploy phonon application
Harish Surana
surana4u at gmail.com
Sun Feb 7 14:17:06 CET 2010
Hi All,
I am facing problem in deploying a Phonon Application on WinCE 6. I think
problem is related to phonon backend. I may be doing wrong steps to load
plugin. I am loading plugin using following code:
QDir pluginsDir("../phonon_backend");
foreach (QString fileName, pluginsDir.entryList(QDir::Files)) {
QPluginLoader loader(pluginsDir.absoluteFilePath(fileName));
QObject *plugin = loader.instance();
if (plugin) {
qDebug() << "Phonon Backend Loaded Successfully";
}
}
//Setup Phonon and its Signal and Slots
audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this);
mediaObject = new Phonon::MediaObject(this);
metaInformationResolver = new Phonon::MediaObject(this);
phonon_backend directory have following files:
phonon_ds94.dll
phonon_ds94.exp
phonon_ds94.lib
phonon_ds9d4.dll
phonon_ds9d4.exp
phonon_ds9d4.lib
phonon_ds9d4.pdb
phonon_waveout4.dll
phonon_waveout4.exp
phonon_waveout4.lib
phonon_waveoutd4.dll
phonon_waveoutd4.exp
phonon_waveoutd4.lib
phonon_waveoutd4.pdb
Now when I run application I get following output:
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin
could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin
could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin
could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin
could not be loaded
WARNING: Phonon::createPath: Cannot connect Phonon::MediaObject ( no
objectName ) to Phonon::AudioOutput ( no objectName ).
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin
could not be loaded
But when I run same application on my desktop I don't get any warning and it
works correctly(but when I try to run on system other than build system it
gives same warning). Most Probably something wrong with my deployment or may
be something else. I have build same 4.6.0 source for WinCE and Win XP.
Regards
Harish Surana
Em Quinta-feira 14 Janeiro 2010, às 06:13:50, Harish Surana escreveu:
> > Hi All,
> >
> > I created a Qt phonon based application on windows. when I try to run same
> > application on other system it is running but it is not able to play any
> > format despite other system is having lots of codecs for multimedia
> > playback. So am I missing something? Do I need to deploy phonon backend
> > separately? If yes then how?
>
> Yes, you need to deploy the phonon backend. It's a Qt plugin, so you need to
> follow the instructions for deploying plugins. This list is also full of
> explanations on the subject, though more often on deploying the sqlite and
> MySQL database drivers or the JPEG image loader.
>
> But the procedure for deploying is the same for all of them.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Senior Product Manager - Nokia, Qt Development Frameworks
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100207/64285a6a/attachment.html
More information about the Qt-interest-old
mailing list