Bug building kf5 libdbusmenu.
Stef Bon
stefbon at gmail.com
Wed Mar 19 15:40:36 UTC 2014
Hi,
I'm trying to build kf5, using the instructions on
http://community.kde.org/Frameworks/Building
but get several errors. I've build qt5 before, and installed in
/opt/qt5. I'm planning to install
kf5 in /opt/kde5.
The first error I get when building libdbusmenu:
Linking CXX shared library libdbusmenu-qt5.so
[ 86%] Built target dbusmenu-qt5
Scanning dependencies of target dbusmenubench-qtapp
[100%] [100%] Building CXX object
tools/testapp/CMakeFiles/dbusmenubench-qtapp.dir/main.cpp.o
Building CXX object
tools/testapp/CMakeFiles/dbusmenubench-qtapp.dir/dbusmenubench-qtapp_automoc.cpp.o
In file included from /opt/qt5/include/QtWidgets/QApplication:1:0,
from
/mnt/sdb/5/kde5/source/libdbusmenu-qt/tools/testapp/main.cpp:21:
/opt/qt5/include/QtWidgets/qapplication.h:111:24: error: missing
binary operator before token "("
#if QT_DEPRECATED_SINCE(5, 0)
Futher I see more errors:
In file included from /opt/qt5/include/QtGui/qguiapplication.h:47:0,
from /opt/qt5/include/QtWidgets/qapplication.h:56,
from /opt/qt5/include/QtWidgets/QApplication:1,
from
/mnt/sdb/5/kde5/source/libdbusmenu-qt/tools/testapp/main.cpp:21:
/opt/qt5/include/QtGui/qinputmethod.h:90:5: error: 'QLocale' does not
name a type
QLocale locale() const;
My environment looks like:
export KF5=/opt/kde5
export QTDIR=/opt/qt5
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:$QTDIR/plugins:$QT_PLUGIN_PATH
export QML2_IMPORT_PATH=$KF5/lib/qml:$QTDIR/qml
export QML_IMPORT_PATH=$QML2_IMPORT_PATH
export KDE_SESSION_VERSION=5
export KDE_FULL_SESSION=true
export CFLAGS="-I/usr/X11/include -I/opt/kde5/include -I/opt/qt5/include"
export CXXFLAGS=$CFLAGS
export LDFLAGS="-L/usr/X11/lib"
export CMAKE_PREFIX_PATH=$KF5:$QTDIR
export QT_MESSAGE_PATTERN='%{appname}(%{pid})/%{category} %{function}:
%{message}'
export PKG_CONFIG_PATH=$KF5/lib/pkgconfig:$QTDIR/lib/pkgconfig:$PKG_CONFIG_PATH
My system is linuxfromscratch, the very latest version.
What's wrong?
Stef Bon
More information about the Plasma-devel
mailing list