Bug 327095 - kdevelop 4.5.2 doesn't compile
Summary: kdevelop 4.5.2 doesn't compile
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: All build tools (show other bugs)
Version: 4.5.2
Platform: unspecified Other
: NOR grave
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-03 16:10 UTC by Jim Jones
Modified: 2013-11-04 23:56 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
build log (1.94 MB, text/plain)
2013-11-03 16:11 UTC, Jim Jones
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Jones 2013-11-03 16:10:19 UTC
i get this error while compiling:

/tmp/tmerge/portage/dev-util/kdevelop-4.5.2/work/kdevelop-4.5.2/languages/cpp/tests/test_cppfiles.cpp:24:45: fatal error: tests/json/declarationvalidator.h: No such file or directory
compilation terminated.

Reproducible: Always
Comment 1 Jim Jones 2013-11-03 16:11:59 UTC
Created attachment 83320 [details]
build log
Comment 2 Kevin Funk 2013-11-03 18:00:49 UTC
This looks like a package-manager (here: portage) related problem.

KDevelop is split into two projects: kdevplatform and kdevelop. It looks like you didn't enable tests when building kdevplatform, but built kdevelop with tests enabled(?)

Please check, this is likely a user problem.
Comment 3 Jim Jones 2013-11-03 18:30:52 UTC
tests is not enabled:

i also remerged kdevplatform which didn't work...

Calculating dependencies... done!
[ebuild   R   ~] dev-util/kdevplatform-1.5.2:4  USE="cvs subversion (-aqua) -debug -reviewboard {-test}" LINGUAS="de -bs -ca -ca@valencia -da -el -en_GB -es -et -fi -fr -gl -it -kk -nb -nds -nl -pl -pt -pt_BR -ru -sk -sl -sv -th -uk -zh_CN -zh_TW" 0 kB
[ebuild     U ~] dev-util/kdevelop-4.5.2:4 [4.5.1:4] USE="cmake cxx okteta (-aqua) -debug -qthelp {-test}" LINGUAS="de -bs -ca -ca@valencia -da -el -en_GB -es -et -fi -fr -gl -hu% -it -kk% -nb -nds -nl -pl -pt -pt_BR -ru -sk% -sl -sv -th -tr% -uk -zh_CN -zh_TW" 0 kB
[blocks b      ] <dev-util/kdevelop-4.5.2:4 ("<dev-util/kdevelop-4.5.2:4" is blocking dev-util/kdevplatform-1.5.2)
Comment 4 Jim Jones 2013-11-03 18:32:41 UTC
 which didn't work... , means - kdevelop still doesn't compile
Comment 5 Jim Jones 2013-11-03 21:08:09 UTC
emerge --info:

Portage 2.2.7 (hardened/linux/amd64, gcc-4.7.3, glibc-2.15-r3, 3.11.6-hardened-r2 x86_64)
=================================================================
System uname: Linux-3.11.6-hardened-r2-x86_64-Intel-R-_Core-TM-_i5-3230M_CPU_@_2.60GHz-with-gentoo-2.2
KiB Mem:    16305464 total,  10244172 free
KiB Swap:   20971516 total,  20925868 free
Timestamp of tree: Sun, 03 Nov 2013 19:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.2.5-r3
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo kde local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -mtune=corei7-avx -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7-avx -mtune=corei7-avx -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nodoc parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common"
MAKEOPTS="-j5 -l4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde /usr/local/portage/overlay"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit X a52 aac aalib accessibility acl acpi additions aften aio alsa amd64 amr amrnb amrwb ap apm apng archive asf asm aspell asyncns audio avcodec avformat avi avresample avx blksha1 bluetooth browserplugin bzip2 cairo caps cdda cddb cdio cdparanoia chm city classic cli client clucene cmake commercial consolekit cracklib crypt cryptsetup css cups curl custom-cflags custom-optimization cvs cxx daemon dbus deprecated development device-mapper devil dga dhcpcd dirac divx divx4linux djvu dmx dri dts dvd dvdnav dvdr dvdread ebook egl embedded encode enda equalizer eselect exceptions exif extensions extras faac faad fam fbcon ffmpeg filecaps firefox flac fluidsynth fontconfig ftp fts3 fuse g3dvl Portage 2.2.7 (hardened/linux/amd64, gcc-4.7.3, glibc-2.15-r3, 3.11.6-hardened-r2 x86_64)
=================================================================
System uname: Linux-3.11.6-hardened-r2-x86_64-Intel-R-_Core-TM-_i5-3230M_CPU_@_2.60GHz-with-gentoo-2.2
KiB Mem:    16305464 total,  10244172 free
KiB Swap:   20971516 total,  20925868 free
Timestamp of tree: Sun, 03 Nov 2013 19:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.2.5-r3
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo kde local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -mtune=corei7-avx -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7-avx -mtune=corei7-avx -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nodoc parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common"
MAKEOPTS="-j5 -l4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde /usr/local/portage/overlay"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit X a52 aac aalib accessibility acl acpi additions aften aio alsa amd64 amr amrnb amrwb ap apm apng archive asf asm aspell asyncns audio avcodec avformat avi avresample avx blksha1 bluetooth browserplugin bzip2 cairo caps cdda cddb cdio cdparanoia chm city classic cli client clucene cmake commercial consolekit cracklib crypt cryptsetup css cups curl custom-cflags custom-optimization cvs cxx daemon dbus deprecated development device-mapper devil dga dhcpcd dirac divx divx4linux djvu dmx dri dts dvd dvdnav dvdr dvdread ebook egl embedded encode enda equalizer eselect exceptions exif extensions extras faac faad fam fbcon ffmpeg filecaps firefox flac fluidsynth fontconfig ftp fts3 fuse g3dvl gallium gbm gcrypt gd gecko geoip geoloc gif gimp gimpprint git gles gles1 gles2 glib glibc-omitfp glitz gnutls gpl gpm gptfdisk gs gstreamer gtk gtk2 gtk3 gudev hardened httpd hwdb icecast iconv icu id3 id3tag idn imagemagick imap imlib inotify introspection ipc ipv6 jabber jav jingle jpeg jpeg2k justify kde kdrive keymap kipi lame lcms less libkms libnotify libsamplerate libvisual live lm_sensors loop-aes lua lvm lzma lzo mad magic maildir matroska meanwhile midi minizip mmx mmxext mng modemmanager modules mousewarp moznocompose moznoirc moznomail mp2 mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musepack nas ncat ncurses ndiff nemesi net network nfs nfsv3 nls nmap normalize notification nping nptl nptlonly nss ntfsprogs nut nxclient offlinehelp ogg okteta openal opencore-amr openexr opengl openmp openrc openssl openvg optimized-qmake osdmenu osmesa otr p2p pam pax_kernel pcap pcre pdf perl pgo pgp plasma player png polarssl policykit poppler-data postproc postscript ppds ppp privacy ps pulseaudio qmake qt-faststart qt3support qt4 quicktime raptor rar readline real realmedia redland replaygain rpc rtc rtmp rtsp sasl schroedinger scrobbler sdl secure-delete server sesame2 session sftp sha512 shared-dricore shared-glapi shm shout silc slit smi smime smp sna sndfile socks5 speex spell sqlite srt sse sse2 sse3 sse4_1 ssh ssl ssse3 startup-notification stats stream subversion svg swscale system-sqlite tcpd texteffect theora threads threadsafe tiff timidity tk tls toolbar tools tordns transcode transparent-proxy trayicon tremor truetype twolame udev udisks unicode unlock-notify upower usb userlocales utempter utils uxa v4l vaapi vcd vcdimager video virtuoso vorbis wallpapers wav wavpack weather webdav-neon webgl webkit webm wifi wma wmf wmp x264 xa xanim xcb xcomposite xinerama xml xmp xorg xpdf-headers xpm xprint xtf xv xvfb xvid xvmc zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby18 ruby20" SANE_BACKENDS="hp5400 canon canon630u canon_dr" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev i915 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.2"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
gallium gbm gcrypt gd gecko geoip geoloc gif gimp gimpprint git gles gles1 gles2 glib glibc-omitfp glitz gnutls gpl gpm gptfdisk gs gstreamer gtk gtk2 gtk3 gudev hardened httpd hwdb icecast iconv icu id3 id3tag idn imagemagick imap imlib inotify introspection ipc ipv6 jabber jav jingle jpeg jpeg2k justify kde kdrive keymap kipi lame lcms less libkms libnotify libsamplerate libvisual live lm_sensors loop-aes lua lvm lzma lzo mad magic maildir matroska meanwhile midi minizip mmx mmxext mng modemmanager modules mousewarp moznocompose moznoirc moznomail mp2 mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musepack nas ncat ncurses ndiff nemesi net network nfs nfsv3 nls nmap normalize notification nping nptl nptlonly nss ntfsprogs nut nxclient offlinehelp ogg okteta openal opencore-amr openexr opengl openmp openrc openssl openvg optimized-qmake osdmenu osmesa otr p2p pam pax_kernel pcap pcre pdf perl pgo pgp plasma player png polarssl policykit poppler-data postproc postscript ppds ppp privacy ps pulseaudio qmake qt-faststart qt3support qt4 quicktime raptor rar readline real realmedia redland replaygain rpc rtc rtmp rtsp sasl schroedinger scrobbler sdl secure-delete server sesame2 session sftp sha512 shared-dricore shared-glapi shm shout silc slit smi smime smp sna sndfile socks5 speex spell sqlite srt sse sse2 sse3 sse4_1 ssh ssl ssse3 startup-notification stats stream subversion svg swscale system-sqlite tcpd texteffect theora threads threadsafe tiff timidity tk tls toolbar tools tordns transcode transparent-proxy trayicon tremor truetype twolame udev udisks unicode unlock-notify upower usb userlocales utempter utils uxa v4l vaapi vcd vcdimager video virtuoso vorbis wallpapers wav wavpack weather webdav-neon webgl webkit webm wifi wma wmf wmp x264 xa xanim xcb xcomposite xinerama xml xmp xorg xpdf-headers xpm xprint xtf xv xvfb xvid xvmc zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby18 ruby20" SANE_BACKENDS="hp5400 canon canon630u canon_dr" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev i915 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.2"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 6 Kevin Funk 2013-11-03 21:10:58 UTC
Git commit fb4234cd72ceebb200bef13234ea9c36c9a62046 by Kevin Funk.
Committed on 03/11/2013 at 21:09.
Pushed by kfunk into branch '4.6'.

Check if kdevplatform has JSON support

M  +4    -2    languages/cpp/tests/CMakeLists.txt

http://commits.kde.org/kdevelop/fb4234cd72ceebb200bef13234ea9c36c9a62046
Comment 7 Jim Jones 2013-11-03 21:42:31 UTC
no fixed - now i get 

pport -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt -I/usr/share/qt4/mkspecs/default -I/usr/include/qt4    -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DKDESRCDIR="\"/tmp/tmerge/portage/dev-util/kdevelop-4.5.2/work/kdevelop-4.5.2/languages/cpp/tests/\"" -o CMakeFiles/cppcodecompletiontest.dir/__/codegen/unresolvedincludeassistant.o -c /tmp/tmerge/portage/dev-util/kdevelop-4.5.2/work/kdevelop-4.5.2/languages/cpp/codegen/unresolvedincludeassistant.cpp
/tmp/tmerge/portage/dev-util/kdevelop-4.5.2/work/kdevelop-4.5.2/languages/cpp/codegen/unresolvedincludeassistant.cpp:23:37: fatal error: ui_custom_include_paths.h: No such file or directory
compilation terminated.
Comment 8 Milian Wolff 2013-11-04 09:32:40 UTC
Odd, can you try adding ${CMAKE_CURRENT_BINARY_DIR} to include_directories() in languages/cpp/CMakeLists.txt?

Again very suspicious that only you hit this issue and none of us...
Comment 9 Jim Jones 2013-11-04 13:16:40 UTC
now i get this:

[ 79%] ^[[32mBuilding CXX object languages/cpp/tests/CMakeFiles/cppfilestest.dir/test_cppfile$
^[[0mcd /tmp/tmerge/portage/dev-util/kdevelop-4.5.2/work/kdevelop-4.5.2_build/languages/cpp/t$
$t_cppfiles.cpp:24:45: fatal error: tests/json/declarationvalidator.h: No such file or direct$
compilation terminated.

i used this two patches:

From: Kevin Funk <kevin@kfunk.org>
Date: Sun, 03 Nov 2013 21:09:56 +0000
Subject: Check if kdevplatform has JSON support
X-Git-Url: http://quickgit.kde.org/?p=kdevelop.git&a=commitdiff&h=fb4234cd72ceebb200bef13234ea9c36c9a62046
---
Check if kdevplatform has JSON support

BUG: 327095
---


--- a/languages/cpp/tests/CMakeLists.txt
+++ b/languages/cpp/tests/CMakeLists.txt
@@ -55,7 +55,9 @@
 ########### next target ###############
 
 find_package(QJSON)
-if(QJSON_FOUND)
+# Also check that kdevplatform is built with JSON support
+# see: https://bugs.kde.org/show_bug.cgi?id=327095
+if(QJSON_FOUND AND KDEVPLATFORM_JSONTESTS_LIBRARIES)
   set(cppfilestest_SRCS test_cppfiles.cpp)
   kde4_add_unit_test(cppfilestest ${cppfilestest_SRCS})
   configure_file("testfilepaths.h.cmake" "testfilepaths.h" ESCAPE_QUOTES)
@@ -67,7 +69,7 @@
       ${KDEVPLATFORM_JSONTESTS_LIBRARIES}
       kdev4cppduchain
   )
-endif(QJSON_FOUND)
+endif()
 
 ########### next target ###############
 

diff --git a/languages/cpp/CMakeLists.txt b/languages/cpp/CMakeLists.txt
index 26b431a..66b922f 100644
--- a/languages/cpp/CMakeLists.txt
+++ b/languages/cpp/CMakeLists.txt
@@ -5,6 +5,7 @@ include(CppBuildConfig.cmake)
 include_directories(
     ${KDevelop_SOURCE_DIR}/languages/cpp/parser
     ${KDevelop_SOURCE_DIR}/languages/cpp/cppduchain
+    ${CMAKE_CURRENT_BINARY_DIR}
 )
 
 add_definitions( -DKDE_DEFAULT_DEBUG_AREA=9007 )
Comment 10 Jim Jones 2013-11-04 13:41:16 UTC
okay i found this bug on gentoo 
https://bugs.gentoo.org/show_bug.cgi?id=490002

rebuilding dev-util/kdevplatform with reviewboard enabled fixed the build without any patch

thanks for your help
Comment 11 Jim Jones 2013-11-04 21:42:41 UTC
for clarification - the commit in http://commits.kde.org/kdevelop/fb4234cd72ceebb200bef13234ea9c36c9a62046 isn't needed as kdevelelop still doesn't compile with [reviewboard] disabled even with the patch applied. So i think the commit can be dropped or another fix is needed to allow compilation without [reviewboard]
Comment 12 Milian Wolff 2013-11-04 22:22:08 UTC
What does "[reviewboard]" mean?
Comment 13 Jim Jones 2013-11-04 22:34:08 UTC
it's a use flag in gentoo for kdevplatform and it disables QJSON support at configure time. it means it's not possible to compile the package without QJSON even with the patch applied
Comment 14 Jim Jones 2013-11-04 22:35:54 UTC
if kdevplatform isn't compiled with json support - kdevelop doesn't compile
Comment 15 Milian Wolff 2013-11-04 22:56:17 UTC
Git commit 02522dae26a5a8df25c8c323a765d68c27bde17f by Milian Wolff.
Committed on 04/11/2013 at 22:53.
Pushed by mwolff into branch '1.6'.

backport: Don't set KDEVPLATFORM_JSONTESTS_LIBRARIES when QJson was not found.

M  +2    -0    KDevPlatformConfig.cmake.in

http://commits.kde.org/kdevplatform/02522dae26a5a8df25c8c323a765d68c27bde17f
Comment 16 Jim Jones 2013-11-04 23:56:04 UTC
thanks, that fixed the bug