Alan Feuerbacher wrote:
In BLFS version 8.0, I'm trying to install KDE.

A required package is Phonon-4.9.1.

The cmake command gives this error:

######
lfs [ /sources/phonon-4.9.1/build ]$ cmake -DCMAKE_INSTALL_PREFIX=/usr    \
 >       -DCMAKE_PREFIX_PATH=Qt5Core     \
 >       -DCMAKE_BUILD_TYPE=Release     \
 >       -DCMAKE_INSTALL_LIBDIR=lib     \
 >       -DPHONON_BUILD_PHONON4QT5=ON   \
 >       -Wno-dev ..
-- Enabling backend state machine validation.
CMake Warning at cmake/PhononQt5.cmake:28 (find_package):
   By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
   asked CMake to find a package configuration file provided by "Qt5Core",
but
   CMake did not find one.

   Could not find a package configuration file provided by "Qt5Core" with any
   of the following names:

     Qt5CoreConfig.cmake
     qt5core-config.cmake

   Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
   "Qt5Core_DIR" to a directory containing one of the above files. If
   "Qt5Core" provides a separate development package or SDK, be sure it has
   been installed.
Call Stack (most recent call first):
   cmake/FindPhononInternal.cmake:107 (include)
   CMakeLists.txt:47 (include)
######

I tried adding "-DCMAKE_PREFIX_PATH=Qt5Core" to the configure script:

######
cmake -DCMAKE_INSTALL_PREFIX=/usr    \
       -DCMAKE_PREFIX_PATH=Qt5Core     \
       -DCMAKE_BUILD_TYPE=Release     \
       -DCMAKE_INSTALL_LIBDIR=lib     \
       -DPHONON_BUILD_PHONON4QT5=ON   \
       -Wno-dev .. &&
######

But I still got the same error.

You should only need:

  cmake -DCMAKE_INSTALL_PREFIX=/usr    \
        -DCMAKE_BUILD_TYPE=Release     \
        -DPHONON_BUILD_PHONON4QT5=ON   \
        -Wno-dev .. &&

It looks like you are using an older version of the book. The line -DLIB_INSTALL_DIR=lib is not needed in BLFS 8.0 and later. But it probably does not hurt anything.

Also, assuming that qt is installed in /opt, your qt5.sh script should look like:

$ cat /etc/profile.d/qt5.sh
# Begin /etc/profile.d/qt.sh

export QT5DIR=/opt/qt5
export QT5BINDIR=/opt/qt5/bin

pathappend $QT5DIR/bin           PATH
pathappend $QT5DIR/lib/pkgconfig PKG_CONFIG_PATH

pathappend $QT5DIR/plugins       QT_PLUGIN_PATH
pathappend $QT5DIR/qml           QML2_IMPORT_PATH

# End /etc/profile.d/qt.sh

Make sure the instance you are building in has run that script.

  -- Bruce




--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to