kcolorscheme needs ksharedconfig.h
Treeve Jelbert
treeve at scarlet.be
Thu Feb 14 14:58:17 UTC 2013
On Thu, 14 Feb 2013 13:50:57 +0100, David Faure wrote:
> On Thursday 14 February 2013 12:57:49 Treeve Jelbert wrote:
>> /var/git/kf5/libkdeqt5staging/src/qurlpathinfo.cpp:42:0:
>> /var/git/kf5/libkdeqt5staging/src/qurlpathinfo.h:45:34: fatal error:
>> kdeqt5staging_export.h: No such file or directory
>
> Well, let's start with debugging that one, then.
>
> cmake version?
cmake 2.8.10.2
gcc 4.7.2
> ECM version, as found by kdelibs? (`grep ECM_DIR CMakeCache.txt`)
>
ECM_DIR:PATH=/usr/share/ECM-0.0.7/cmake
> Your build dir seems to be /usr/src/kf5libs-4.90.x/build
> Do you have this file, then?
>
> /usr/src/kf5libs-4.90.x/build/libkdeqt5staging/src/kdeqt5staging_export.h
yes
I managed to get further by making the following changes
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0011ac3..32dfc91 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 2.8.10.1)
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
project(kdelibs)
@@ -59,6 +59,9 @@ if (Qt5_POSITION_INDEPENDENT_CODE)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif()
+# automoc is needed to build some of the tests
+set(CMAKE_AUTOMOC ON)
+
add_subdirectory( libkdeqt5staging )
set(kdeqt5staging_LIBRARIES kdeqt5staging)
@@ -88,8 +91,6 @@ add_subdirectory( tier2 )
set(kinterprocesswindowing_LIBRARY kinterprocesswindowing)
-set(CMAKE_AUTOMOC ON)
-
# By default don't add any linked libraries to the "exported"
# link interfaces of shared libraries, so that executables linking
Doing another clean build brings me back to the original problem
FAILED: /var/lib/sorcery/build/c++ -DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=8
-DKDE_DEPRECATE
D_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_NO_STL
-DQT_NO_URL_CAST_FROM_STRING -D
QT_STRICT_ITERATORS -DQT_USE_FAST_CONCATENATION
-DQT_USE_FAST_OPERATOR_PLUS -D_BSD_SOUR
CE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
-D_REENTRANT -D_XOPEN_SOU
RCE=500 -march=native -mtune=native -m64 -pipe -funroll-loops -O3
-Wnon-virtual-dtor
-Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W
-Wpointer-arith -Wformat
-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common
-Woverloaded-vi
rtual -fvisibility=hidden -Werror=return-type
-fvisibility-inlines-hidden -Wnon-virtual
-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W
-Wpointer-arith -W
format-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new
-fno-common -Woverloa
ded-virtual -Werror=return-type -fvisibility=hidden
-fvisibility-inlines-hidden -fvisib
ility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DQT_NO_DEBUG
-fPIC -Istaging/kgu
iaddons/src -I/var/git/kf5/staging/kguiaddons/src -I/var/git/kf5 -I.
-I/var/git/kf5/int
erfaces -I/var/git/kf5/tier1/kcoreaddons/src/kernel
-I/var/git/kf5/staging/kguiaddons/s
rc/colors -I/var/git/kf5/staging/kguiaddons/src/text -I/opt/qt5/include
-I/opt/qt5/incl
ude/QtGui -I/opt/qt5/include/QtCore -I/opt/qt5/mkspecs/linux-g++-64
-I/opt/qt5/include/
QtWidgets -I/opt/qt5/include/QtPrintSupport -I/opt/qt5/include/QtSvg
-I/opt/qt5/include
/QtDeclarative -I/opt/qt5/include/QtScript
-I/opt/qt5/include/QtScriptTools -I/opt/qt5/
include/QtDBus -I/opt/qt5/include/QtNetwork -I/opt/qt5/include/QtTest
-I/opt/qt5/includ
e/QtDesigner -I/opt/qt5/include/QtXml -I/opt/qt5/include/QtConcurrent
-I/opt/qt5/includ
e/QtUiTools -I/opt/qt5/include/QtQml -I/opt/qt5/include/QtWebKit
-I/opt/qt5/include/QtW
ebKitWidgets -I/opt/qt5/include/QtQuick -I/opt/qt5/include/QtOpenGL
-I/opt/qt5/include/
QtSensors -I/opt/qt5/include/QtSql -I/src/core -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -
MMD -MT
staging/kguiaddons/src/CMakeFiles/kguiaddons.dir/colors/kcolorscheme.cpp.o
-MF
"staging/kguiaddons/src/CMakeFiles/kguiaddons.dir/colors/kcolorscheme.cpp.o.d"
-o stagi
ng/kguiaddons/src/CMakeFiles/kguiaddons.dir/colors/kcolorscheme.cpp.o
-c /var/git/kf5/s
taging/kguiaddons/src/colors/kcolorscheme.cpp
In file included from
/var/git/kf5/staging/kguiaddons/src/colors/kcolorscheme.cpp:19:0:
/var/git/kf5/staging/kguiaddons/src/colors/kcolorscheme.h:24:27: fatal
error: ksharedco
nfig.h: No such file or directory
compilation terminated.
A full compile log is attached
>
> If not -> we need to dig into generate_export_header().
>
> If yes -> go to build/libkdeqt5staging and type make VERBOSE=1,
> does the compilation line include
> -I/usr/src/kf5libs-4.90.x/build/libkdeqt5staging/src ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kf5libs-4.90.x.bz2
Type: application/octet-stream
Size: 25201 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20130214/77b29eda/attachment-0001.obj>
More information about the Kde-frameworks-devel
mailing list