[cmake-developers] [CMake 0013254]: phonon_ds9 backend plugin not found on windows.
Mantis Bug Tracker
mantis at public.kitware.com
Tue May 29 15:59:12 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13254
======================================================================
Reported By: Kurtis Nusbaum
Assigned To:
======================================================================
Project: CMake
Issue ID: 13254
Category: Modules
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-05-29 15:59 EDT
Last Modified: 2012-05-29 15:59 EDT
======================================================================
Summary: phonon_ds9 backend plugin not found on windows.
Description:
I'm deploying a Qt application which uses phonon on windows. For some reason,
the DeployQt4.cmake module wasn't finding the phonon_ds9 backend plugin that is
standard with windows installations of Qt4. More specifically (and was I'm
almost positive this was what was tripping up DeployQt4), the
QT_PHONON_DS9_PLUGIN_RELEASE variable was not set. I went and looked at the
FindQt4.cmake file and found this line (it's line 1062 on cmake release 2.8.8):
set( QT_PHONON_BACKEND_PLUGINS phonon_qt7 )
phonon_qt7 is the phonon backend used exclusively on mac. Sure enough, changing
the line to
set( QT_PHONON_BACKEND_PLUGINS phonon_ds9 )
resulted in the variable QT_PHONON_DS9_PLUGIN_RELEASE and
QT_PHONON_DS9_PLUGIN_DEBUG being set to the correct libraries and DeployQt4
module finding the phonon_ds9 plugin and successfully bundling it with my
application. I think this is a bug in FindQt4.cmake
Steps to Reproduce:
1. Create an application that uses the phonon backend for Qt.
2. Use DeployQt and pass phonon_ds9 and the plugin argument when calling
install_qt4_executable function.
Additional Information:
Attached is a patch that does a mediocre job at addressing the issue. It
basically, if it detects you're building for an APPLE machine it sets the phonon
backend plugin variable to phonon_qt7 and if you're on windows it sets the
variable to phonon_ds9. This obviously doesn't take into account all the other
possible phonon backend situations. A more rigorous fix would address detecting
the presence of other phonon backends.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-05-29 15:59 Kurtis Nusbaum New Issue
2012-05-29 15:59 Kurtis Nusbaum File Added:
0001-Added-conditional-for-the-phonon-backend-plugin.-If-.patch
======================================================================
More information about the cmake-developers
mailing list