Fedora cmake error

Hi, obs reports an error trying to compile my package:

  192s] CMake Error at /lib64/cmake/phonon/PhononConfig.cmake:30 (include):  192s]   include could not find load file:
  192s] 
  192s]     //share/phonon/buildsystem//FindPhononInternal.cmake
  192s] Call Stack (most recent call first):
  192s]   CMakeLists.txt:16 (find_package)

This is the build requires section of my spec file:

BuildRequires:  cmake automoc4


%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires:  qt4 qt4-devel >= 4.6
BuildRequires:  qjson-devel
BuildRequires:  phonon phonon-devel
%else
BuildRequires:  libqt4-devel >= 4.6
BuildRequires:  libqjson-devel
BuildRequires:  phonon-devel
BuildRequires:  update-desktop-files
%endif
Requires(post): desktop-file-utils

As you can see I included both phonon and phonon-devel for fedora

Here is the build log:

SUSE Paste

Actually obs compiled successfully the package for opensuse (and xubuntu); I dunno if the error is related to the service or simply the spec file needs any fedora trick.

On Fri 22 Mar 2013 03:46:02 PM CDT, gcala wrote:

Hi, obs reports an error trying to compile my package:

Code:

192s] CMake Error at /lib64/cmake/phonon/PhononConfig.cmake:30
(include): 192s] include could not find load file: 192s]
192s] //share/phonon/buildsystem//FindPhononInternal.cmake
192s] Call Stack (most recent call first):
192s] CMakeLists.txt:16 (find_package)

This is the build requires section of my spec file:

Code:

BuildRequires: cmake automoc4

%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: qt4 qt4-devel >= 4.6
BuildRequires: qjson-devel
BuildRequires: phonon phonon-devel
%else
BuildRequires: libqt4-devel >= 4.6
BuildRequires: libqjson-devel
BuildRequires: phonon-devel
BuildRequires: update-desktop-files
%endif
Requires(post): desktop-file-utils

As you can see I included both phonon and phonon-devel for fedora

Here is the build log:

‘SUSE Paste’ (http://paste.opensuse.org/31686876)

Actually obs compiled successfully the package for opensuse (and
xubuntu); I dunno if the error is related to the service or simply the
spec file needs any fedora trick.

Hi
So the error is here;


CMake Error at /lib64/cmake/phonon/PhononConfig.cmake:30 (include):

On Fedora it’s /usr/lib64/cmake/phonon/PhononConfig.cmake so you
probably need to add the prefix for the cmake include to add /usr to
your Fedora builds.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.3 (x86_64) Kernel 3.7.10-1.1-desktop
up 2:06, 3 users, load average: 0.12, 0.06, 0.05
CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Ironlake Mobile

Solved adding this option to cmake:

-DCMAKE_PREFIX_PATH=/usr

On Sat 23 Mar 2013 03:46:02 PM CDT, gcala wrote:

Solved adding this option to cmake:

Code:

-DCMAKE_PREFIX_PATH=/usr

Hi
The same option should work for openSUSE without error? Also you should
look at running the openSUSE macros for the icon install and review the
postbuild warnings and fix those… (add the default icon theme as a
BuildRequires).


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.3 (x86_64) Kernel 3.7.10-1.1-desktop
up 2:43, 3 users, load average: 0.09, 0.09, 0.06
CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Ironlake Mobile