Fernando de Oliveira wrote:
Em 15-07-2015 22:06, Ken Moffat escreveu:
You all know that I do some things differently, so it is totally
possible that this is my problem, not the book's. But just in case:
I'm attempting to trial the 5.11 kde frameworks, on a system without
kde4. So for me, libdbusmenu-qt is a prerequisite. And when I came
to try to build it, after fixing up PKG_CONFIG_PATH (arguably, the
book covers that) it still failed to find Qt5Widgets and therefore
decided this was a qt4 build - so it then rejected qt-5.5.0 as
unsuitable.
Eventually I found the following at
http://doc.qt.io/qt-5/cmake-manual.html (reformatted for the mail) :
In order for find_package to be successful, Qt 5 must be found
below the CMAKE_PREFIX_PATH, or the Qt5<Module>_DIR must be set in
the CMake cache to the location of the Qt5WidgetsConfig.cmake file.
The easiest way to use CMake is to set the CMAKE_PREFIX_PATH
environment variable to the install prefix of Qt 5.
Now, for everything which is within the kf5 page we include the line
-DCMAKE_PREFIX_PATH=$QT5_PREFIX within the commands. But
libdusmenuqt is covered earlier and the qt5 instructions do not
include that line. So it appears to me that the instructions for
building it against qt5 will not work. But as I said, I do a lot of
things differently, perhaps I just missed something.
ĸen
That is a typo. we do not have QT5_PREFIX set in the environment. We do
have QT5DIR. QT5_PREFIX is only used for installing Qt5. See the
previous page, where only QT5DIR appears:
http://www.linuxfromscratch.org/blfs/view/svn/kde/kf5-intro.html
It should be fixed, If you wish, please do it.
Notice that at the Qt5 page. either one of the two /etc/profile.d/qt5.sh
has QT5DIR:
QT5DIR=/usr
or
QT5DIR=/opt/qt5
It was a change of notation and I think some other pages need a
corresponding fix. Perhaps similar fixes are needed with respect to Qt4.
I have:
$ echo $QT5DIR
/opt/qt5
Good catch Fernando. I had QT5_PREFIX defined directly in my script, so
I thought it was OK. I'll fix.
And done.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page