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

cannot build KDEPLASMA-ADDONS, libkexiv2-devel not found

Tags: None
(comma "," separated)
greartes
Registered Member
Posts
8
Karma
0
Hello,

I am able to build KDE-SC (without QT) and the only module that fails is
KDEPLASMA-ADDONS does not build.

Scanning dependencies of target plasma_applet_kolourpicker
[ 24%] Building CXX object applets/kolourpicker/CMakeFiles/plasma_applet_kolourpicker.dir/kolourpicker.o
[ 24%] Building CXX object applets/frame/CMakeFiles/plasma_applet_frame.dir/slideshow.o
Linking CXX shared module ../../lib/plasma_applet_kolourpicker.so
[ 24%] Built target plasma_applet_kolourpicker
Scanning dependencies of target plasma_applet_life
[ 24%] Building CXX object applets/life/CMakeFiles/plasma_applet_life.dir/life.o
[ 24%] Building CXX object applets/frame/CMakeFiles/plasma_applet_frame.dir/picture.o
[ 25%] Building CXX object applets/frame/CMakeFiles/plasma_applet_frame.dir/imageloader.o
/home/user4/kdesrc/kde/kdeplasma-addons/applets/frame/imageloader.cpp:26:30: fatal error: libkexiv2/kexiv2.h: No such file or directory
compilation terminated.
gmake[2]: *** [applets/frame/CMakeFiles/plasma_applet_frame.dir/imageloader.o] Error 1
gmake[1]: *** [applets/frame/CMakeFiles/plasma_applet_frame.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
Linking CXX shared module ../../lib/plasma_applet_life.so
[ 26%] Built target plasma_applet_life
gmake: *** [all] Error 2

The interesting thing is that it seems to be installed.

Installed Packages
libkexiv2.x86_64 4.8.5-1.fc17
libkexiv2-devel.x86_64 4.8.5-1.fc17

# find /|grep kexiv2.h
/usr/include/kde4/libkexiv2/kexiv2.h
/home/user5/kdesrc/libkexiv2-4.9.0/libkexiv2/kexiv2.h
/home/user2/kdesrc/kde/kdegraphics/libs/libkexiv2/libkexiv2/kexiv2.h
/home/user2/kde/include/libkexiv2/kexiv2.h
/home/admin/kdesrc/kde/kdegraphics/libs/libkexiv2/libkexiv2/kexiv2.h
/home/user3/kdesrc/kde/kdegraphics/libs/libkexiv2/libkexiv2/kexiv2.h
/home/user3/kde/include/libkexiv2/kexiv2.h

it is interesting that the users needing it are user4 (KDE 4.9) and u49r (KDE 4.8.5).
These other users are old failed (full) builds.

<<< Build Done >>>

<<< PACKAGES SUCCESSFULLY BUILT >>>
automoc
cagibi
attica
soprano
polkit-qt-1
phonon
phonon-gstreamer
phonon-vlc
libstreams
libstreamanalyzer
strigiutils
strigidaemon
strigiclient
kdelibs
kactivities
kde-runtime
nepomuk-core
akonadi
kdepimlibs
kde-workspace
kde-baseapps
kate
konsole
kdepim
kdepim-runtime

Removing 1 out of 1 old log directories...

<<< PACKAGES FAILED TO BUILD >>>
kdeplasma-addons - ~/kdesrc/log/2012-08-16-01/kdeplasma-addons/build.log

The following modules have failed to build 3 or more times in a row:
kdeplasma-addons

There is probably a local error causing this kind of consistent failure, it
is recommended to verify no issues on the system.

Script finished processing at Thu Aug 16 19:14:51 2012
Your logs are saved in /home/user4/kdesrc/log/2012-08-16-01

I need KDEPLASMA-ADDONS because without that i cannot configure the panel in the same
way i have it now in fedora. Since i am doing this to reproduce Bug 294795, it might be important
to have that module built.

I use kdesrc-build-setup and choose all but QT (totoal 26 items).

Thanks in advance.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Have you set CMAKE_PREFIX_PATH to the directory where your local KDE installation is? (ie. the self-built install).


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
greartes
Registered Member
Posts
8
Karma
0
For some reason, something called "incapsula" does not want my comment here.
:-\
greartes
Registered Member
Posts
8
Karma
0
Thanks for answering.

I tried:

$ env|grep CMAKE

$ export CMAKE_PREFIX_PATH=/usr/include/kde4/:/usr/include/kde4/libkexiv2/:/home/user4/kde4/

$ env|grep CMAKE
CMAKE_PREFIX_PATH=/usr/include/kde4/:/usr/include/kde4/libkexiv2/:/home/user4/kde4/

$ ./kdesrc-build --reconfigure --no-src

nop, it still fails.

The 'missing' file is located there:
/usr/include/kde4/libkexiv2/kexiv2.h

For some reason, kdesrc-build does not put it in the kdesrc directory.
So really, the file is actually missing, comparing other builds.

For example, for user admin (a different full build, it is there)

/home/admin/kdesrc/kde/kdegraphics/libs/libkexiv2/libkexiv2/kexiv2.h

Cheers.
User avatar
šumski
Registered Member
Posts
106
Karma
1
OS
greartes wrote:<<< PACKAGES SUCCESSFULLY BUILT >>>
Code: Select all
automoc
cagibi
attica
soprano
polkit-qt-1
phonon
phonon-gstreamer
phonon-vlc
libstreams
libstreamanalyzer
strigiutils
strigidaemon
strigiclient
kdelibs
kactivities
kde-runtime
nepomuk-core
akonadi
kdepimlibs
kde-workspace
kde-baseapps
kate
konsole
kdepim
kdepim-runtime

Thanks in advance.

But you haven't built libkexiv2 in your enviroment, if i understood correctly. Try building that before you build kdeplasma-addons.
greartes
Registered Member
Posts
8
Karma
0
I was wondering why it mas not there...

I copied libkexiv2 form user admin kdesrc tree and put it here:

$ cd /home/user4/kdesrc/build/kde/kdegraphics/libs/libkexiv2
But you haven't built libkexiv2 in your enviroment, if i understood correctly. Try building that before you build kdeplasma-addons.


Then:

Code: Select all
$ cmake -DCMAKE_INSTALL_PREFIX=/home/user4/kde4 -DCMAKE_BUILD_TYPE=debugfull
$ make
$ make install


Then:

Code: Select all
$ cd ~/kdesrc
$ ./kdesrc-build --reconfigure --no-src


It worked!

<<< Build Done >>>

<<< PACKAGES SUCCESSFULLY BUILT >>>
automoc
cagibi
attica
soprano
polkit-qt-1
phonon
phonon-gstreamer
phonon-vlc
libstreams
libstreamanalyzer
strigiutils
strigidaemon
strigiclient
kdelibs
kactivities
kde-runtime
nepomuk-core
akonadi
kdepimlibs
kde-workspace
kde-baseapps
kdeplasma-addons
kate
konsole
kdepim
kdepim-runtime


After manually building libkexiv2 (and installing it to the ToBeCompiled KDE prefix) all 26 modules build without errors. :D

Before marking this thread as SOLVED, it have some questions:

in kdesrc-build-setup one chan choose QT, baselibs, workspace, base and pim. (5 items).

when i choose all 5 items, all packages were build correctly.

but when i choose baselibs, workspace, base and pim i have to build libkexiv2 by hand for kdeplasma-addons module to be built. I did not need to do that when qt was also being built.

is that a bug in the kdesrc-build scrip?

or maybe kdeplasma-addons should not be built in the first place.

Thanks & Cheers.
User avatar
šumski
Registered Member
Posts
106
Karma
1
OS
I don't know how it chooses modules to get built, i haven't used kdesrc-build for some time, and only used directly with ~/.kdesrc-buildrc. Could be a bug in there. What i find odd, is that independently of that libkexiv2 is found or not, it should not fail:
a) If it's found, then correct path should be passed to your problematic addon
b) If it's not found, then that addon shouldn't get flagged as make target at all
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The issue here is the build order of modules - kdeplasma-addons depends on the libraries from kdegraphics having being built.


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


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient