FindPhonon doesn't work on windows

Bug #1226862 reported by Philip
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Brewtarget
Fix Released
Medium
Maxime Lavigne

Bug Description

When running CMake on Windows, FindPhonon.cmake can't find Phonon:

Found Qt4: C:/Qt/4.7.4/bin/qmake.exe (found suitable version "4.7.4", required is "4.6.0")
CMAKE_SYSTEM_INCLUDE_PATH:
Phonon library NOT found!
CMake Error at cmake/modules/FindPhonon.cmake:63 (message):
  Phonon library or includes NOT found!
Call Stack (most recent call first):
  CMakeLists.txt:106 (FIND_PACKAGE)

In my case, it's at c:\Qt\4.7.4\lib\libphonon4.a. I just point cmake to that file and it continues.

Revision history for this message
Philip (rocketman768) wrote :

The fix is to change 2 lines in cmake/modules/FindPhonon.cmake. The change adds 'phonon4' to the list of names that the find_library() call looks for.

34: find_library(PHONON_LIBRARY NAMES phonon phonon4 PATHS ${KDE4_LIB_INSTALL_DIR} ${QT_LIBRARY_DIR} NO_SYSTEM_ENVIRONMENT_PATH NO_CMAKE_SYSTEM_PATH)

37: find_library(PHONON_LIBRARY NAMES phonon phonon4)

Philip (rocketman768)
Changed in brewtarget:
milestone: 2.0.3 → 2.1.0
Revision history for this message
Philip (rocketman768) wrote :

Fixed in b932b86.

Changed in brewtarget:
assignee: nobody → Maxime Lavigne (duguigne)
status: New → Fix Committed
Maxime Lavigne (malavv)
Changed in brewtarget:
status: Fix Committed → Fix Released
Philip (rocketman768)
Changed in brewtarget:
milestone: 2.1.0 → 2.0.3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.