Hi all,

I have made an app that includes an audio player. It is almost identical to the qt music player example. I am using qt 4.4.3 (built with Phonon) and Fedora 12. The application builds and runs on the compiler machine, but I have some problems when deplying on target. I deploy my binary together with the needed qt libraries including libphonon.so. When starting the application, I get the following warnings, and the player won't start:

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 ).

I have tried to install the gstreamer backend using yum, link it to /lib/qt4..., uninstalled it and copied libphonon_gstreamer.so from my compiler machine, but I get the same error no matter what I do. Here is part of the constructor of my audio player class:
Qt Code:
  1. QList<AudioOutputDevice> ss = Phonon::BackendCapabilities::availableAudioOutputDevices();
  2. error << ERRdebug << "Got " << ss.size() << " devices" << endl;
  3. for (int i=0; i<ss.size(); i++)
  4. {
  5. error << ERRdebug << i << ": " << ss.at(i).name().toStdString() << endl;
  6. }
  7.  
  8. m_audioOutput = new AudioOutput(Phonon::MusicCategory, this);
  9.  
  10. m_mediaObject = new MediaObject(this);
  11. m_mediaObject->setTickInterval(1000);
  12. connect(m_mediaObject, SIGNAL(tick(qint64)), this, SLOT(tick(qint64)));
  13. connect(m_mediaObject, SIGNAL(stateChanged(Phonon::State, Phonon::State)),
  14. this, SLOT(stateChanged(Phonon::State, Phonon::State)));
  15. connect(m_mediaObject, SIGNAL(currentSourceChanged(const Phonon::MediaSource &)),
  16. this, SLOT(sourceChanged(const Phonon::MediaSource &)));
  17. Phonon::createPath(m_mediaObject, m_audioOutput);
To copy to clipboard, switch view to plain text mode 
On my compiler machine, the log prints got 1 device (0: default), but on target I get 0 devices. Note that the audio card works fine when using other applications. Help appreciated.