Alan Feuerbacher wrote:
On 5/31/2017 5:30 PM, Bruce Dubbs wrote:
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 ..
...
######
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.
I'm using what comes from the "Read Online" links:
# BLFS book:
http://linuxfromscratch.org/blfs/view/stable/
http://linuxfromscratch.org/blfs/view/stable/kde/phonon.html
I double checked the instructions for Phonon and Qt: both appear to be
from an older version.
Both are 8.0. I sometimes forget the differences between stable and the
latest updates.
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
# What I have is from here:
# http://linuxfromscratch.org/blfs/view/stable/x/qt5.html
cat > /etc/profile.d/qt5.sh << "EOF"
# Begin /etc/profile.d/qt5.sh
QT5DIR=/opt/qt5
pathappend $QT5DIR/bin PATH
pathappend $QT5DIR/lib/pkgconfig PKG_CONFIG_PATH
export QT5DIR
# End /etc/profile.d/qt5.sh
EOF
The two lines at the end of my version are from KF5.
Make sure the instance you are building in has run that script.
I fixed things up according to your suggestions, and now Phonon compiles ok.
Glad it's working for you.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page