This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Help: Building plasma-framework and KDE5 error

Tags: None
(comma "," separated)
rishavt
Registered Member
Posts
1
Karma
0
Hi

I'm trying to build KDE5, but I get stuck while compiling plasma-framework, kdewebkit, and a few other packages. I'm following instructions given here:

http://community.kde.org/Frameworks/Building

I even tried manually building the individual packages, and that's when i found out that plasma-framework is not building. I'm getting errors related to cmake.

Here's the output (while building plasma-framework)


rishav@rishav-laptop:~/plasma-framework/build$ cmake -DCMAKE_INSTALL_PREFIX=$KF5 -DCMAKE_PREFIX_PATH=$KF5 ..

CMake Error at CMakeLists.txt:52 (find_package):

Could not find a package configuration file provided by "KActivities"

(requested version 5.0.0) with any of the following names:

KActivitiesConfig.cmake

kactivities-config.cmake

Add the installation prefix of "KActivities" to CMAKE_PREFIX_PATH or set

"KActivities_DIR" to a directory containing one of the above files. If

"KActivities" provides a separate development package or SDK, be sure it

has been installed.


-- Configuring incomplete, errors occurred!

See also "/home/rishav/plasma-framework/build/CMakeFiles/CMakeOutput.log".

rishav@rishav-laptop:~/plasma-framework/build$



In the case of kdewebkit, here's the output:


rishav@rishav-laptop:~/kdewebkit/build$ cmake -DCMAKE_INSTALL_PREFIX=$KF5 -DCMAKE_PREFIX_PATH=$KF5 ..

CMake Error at /home/rishav/qt5/qtbase/lib/cmake/Qt5/Qt5Config.cmake:26 (find_package):

Could not find a package configuration file provided by "Qt5WebKitWidgets"

with any of the following names:


Qt5WebKitWidgetsConfig.cmake

qt5webkitwidgets-config.cmake


Add the installation prefix of "Qt5WebKitWidgets" to CMAKE_PREFIX_PATH or

set "Qt5WebKitWidgets_DIR" to a directory containing one of the above

files. If "Qt5WebKitWidgets" provides a separate development package or

SDK, be sure it has been installed.

Call Stack (most recent call first):

CMakeLists.txt:10 (find_package)



-- Configuring incomplete, errors occurred!

See also "/home/rishav/kdewebkit/build/CMakeFiles/CMakeOutput.log".

rishav@rishav-laptop:~/kdewebkit/build$



Here are the environment variables I set before running anything:

export KF5=/home/rishav/KF5

export QTDIR=/home/rishav/qt5/qtbase

export XDG_DATA_DIRS=$KF5/share:$XDG_DATA_DIRS:/usr/share

export XDG_CONFIG_DIRS=$KF5/etc/xdg:$XDG_CONFIG_DIRS:/etc/xdg

export PATH=$KF5/bin:$QTDIR/bin:$PATH

export QT_PLUGIN_PATH=$KF5/lib/plugins:$KF5/lib64/plugins:$KF5/lib/x86_64-linux-gnu/plugins:$QTDIR/plugins:$QT_PLUGIN_PATH

export QML2_IMPORT_PATH=$KF5/lib/qml:$KF5/lib64/qml:$KF5/lib/x86_64-linux-gnu/qml:$QTDIR/qml

export KDE_SESSION_VERSION=5

export KDE_FULL_SESSION=true


export XDG_DATA_HOME=$HOME/.local5

export XDG_CONFIG_HOME=$HOME/.config5

export XDG_CACHE_HOME=$HOME/.cache5


export CMAKE_PREFIX_PATH=$KF5:$CMAKE_PREFIX_PATH


export QT_MESSAGE_PATTERN='%{appname}(%{pid})/%{category} %{function}: %{message}'


c=`echo -e "\033"`

export QT_MESSAGE_PATTERN="%{appname}(%{pid})/(%{category}) $c[31m%{if-debug}$c[34m%{endif}%{function}$c[0m: %{message}"

unset c



I don't know where to find the files cmake needs to run.

Any help would be appreciated, Thanks!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
For the kdewebkit error, please check your Qt 5 build logs, and verify that QtWebkit was actually compiled. In numerous cases, it isn't actually compiled as it depends on Ruby and other components in order to build - which isn't checked by the Qt configure process.

As for why Plasma Framework is failing to compile, it seems you haven't compiled/installed the 'frameworks' branch of kactivities.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar