Ken Moffat wrote:
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.

I struggled with this quite a bit. Armin had CMAKE_PREFIX_PATH set in the /etc/profile.d/kf5.sh script, but that messed up qt4 for me. That's why I fell back to specifying it for each package.

Checking my build script, I do not have that set.  My log only has:

-- Autodetecting Qt version to use

But it did find the right version.

I find cmake a non-intuitive program, so we may indeed need -DCMAKE_PREFIX_PATH=$QT5_PREFIX for this package.

I think Douglas was going to build this.  Doug, did this work for you?

  -- Bruce



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

Reply via email to