Re: kdesrc-build setup for building qt5 before plasma
- Date: Wed, 31 Jan 2018 14:20:24 +0100
- From: Stéphane Ancelot <sancelot@xxxxxxxxxxxxxxx>
- Subject: Re: kdesrc-build setup for building qt5 before plasma
Le 31/01/2018 à 02:58, Michael Pyne a écrit :
On Tue, Jan 30, 2018 at 06:11:26PM +0100, Stéphane Ancelot wrote:
Le 01/12/2017 à 05:01, Michael Pyne a écrit :
On Thu, Nov 30, 2017 at 11:35:14AM +0100, Stéphane Ancelot wrote:
using kdesrc-build , I dont manage to compile qt before kde5
I setted up qtdir in global conf
and repository kde:qt in module qt5, but it does not help
You need a fairly recent version of kdesrc-build to have a shot of
building Qt 5 with it. It's not a supported configuration yet, I have
recommended in the past the use of Qt 5 development packages installed
from your system distribution.
But, I realize we are using more recent versions of Qt 5 and so I have
started on initial support for this in kdesrc-build.
Please try the attached file that contains a Qt5-specific configuration
that you can add to your kdesrc-buildrc (it should be added before any
KF5 or Plasma module-sets to ensure Qt is built first).
NB: There are two configuration changes that need to be made in the
"global" section of the kdesrc-buildrc for it to work, details are
described at the top of the attached file.
- Michael Pyne
I tried the script, it compiles qt5, however next, the framework does
not compile, because it uses the system Qt5 setup.
here is a log:
CMake Error at CMakeLists.txt:38 (find_package):
Could not find a configuration file for package "Qt5" that is compatible
with requested version "5.7.0".
The following configuration files were considered but not accepted:
/usr/lib64/cmake/Qt5/Qt5Config.cmake, version: 5.6.2
One other thing to check is that your new Qt5 bin directory is present
in your PATH before any system libraries. KDE in particular prefers to
use the qmake command to output the right path to find Qt.
If that doesn't work, could you please try exporting the environment
variable CMAKE_PREFIX_PATH to the installation prefix where you set
kdesrc-build to install Qt5 (should match the qtdir setting)? I don't
actually have CMAKE_PREFIX_PATH set myself for Qt (using PATH alone
works for me), but it's a potential workaround also.
After these steps you have done this please run the installation for the affected
framework again (if using kdesrc-build, pass the --refresh-build option
to make sure CMake is run anew and doesn't try to use the old setting).
this works settings the qt5 bin in the PATH. But stops in qtwebengine
Project ERROR: Submodule qtwebengine-chromium does not exist. Run 'git
submodule update --init'.
Not really sure, if it is an external needed dependance ?
- Michael Pyne