Web lists-archives.com

Re: kdesrc-build setup for building qt5 before plasma






Le 01/12/2017 à 05:01, Michael Pyne a écrit :
On Thu, Nov 30, 2017 at 11:35:14AM +0100, Stéphane Ancelot wrote:
Hi,

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
Hi Stéphane,

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.

Regards,
  - Michael Pyne
Hi,
Thanks.

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



and here is my rc file :

# Autogenerated by kdesrc-build-setup. You may modify this file if desired.
global

    # This option is used to switch development tracks for many modules at
    # once. 'kf5-qt5' is the latest KF5 and Qt5-based software.
    branch-group kf5-qt5

    git-repository-base qt-git git://code.qt.io/qt/

    # The path to your Qt installation (default is empty, assumes Qt provided
    # by system)
    qtdir ~/qt5

    # Install directory for KDE software
    kdedir ~/kde-latest

    # Directory for downloaded source code
    source-dir ~/kdesrc

    # Directory to build KDE into before installing
    # relative to source-dir by default
    build-dir build     # ~/kdesrc/build

    # Use multiple cores for building. Other options to GNU make may also be
    # set.
    make-options -j4

    # kdesrc-build can install a sample .xsession file for "Custom"
    # (or "XSession") logins,
    install-session-driver false

    # or add a environment variable-setting script to
    # ~/.config/kde-env-master.sh
    install-environment-driver true
end global

# compile our custom qt5
include /nfs/solaris/AFFAIRES_ECLIPSE/DEVELOPPEMENT/BUREAU_KDE/kde/src/kdesrc-build/qt5-build-include

# Refers to the kf5-frameworks file included as part of kdesrc-build. The file
# is simply read-in at this point as if you'd typed it in yourself.
include /nfs/solaris/AFFAIRES_ECLIPSE/DEVELOPPEMENT/BUREAU_KDE/kde/src/kdesrc-build/kf5-frameworks-build-include


# Refers to the kf5-workspace file included as part of kdesrc-build. The file
# is simply read-in at this point as if you'd typed it in yourself.
include /nfs/solaris/AFFAIRES_ECLIPSE/DEVELOPPEMENT/BUREAU_KDE/kde/src/kdesrc-build/kf5-workspace-build-include


# Refers to the kf5-applications file included as part of kdesrc-build. The file
# is simply read-in at this point as if you'd typed it in yourself.
include /nfs/solaris/AFFAIRES_ECLIPSE/DEVELOPPEMENT/BUREAU_KDE/kde/src/kdesrc-build/kf5-applications-build-include

Regards,
Steph