[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Plasma and Dolphin split compilation
From:       Bernd Steinhauser <gentoo () bernd-steinhauser ! de>
Date:       2008-04-03 21:15:11
Message-ID: 47F548DF.4070704 () bernd-steinhauser ! de
[Download RAW message or body]

Hi,

I have been told by annma to send this to the kde-devel mailing list.
I had two issues, while compiling kdebase/workspace/plasma:

Linking CXX executable plasmapkg
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lplasma
collect2: ld returned 1 exit status
make[2]: *** [plasma/tools/plasmapkg/plasmapkg] Error 1
make[1]: *** [plasma/tools/plasmapkg/CMakeFiles/plasmapkg.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

and kdebase/apps/dolphin:

In file included from
/var/tmp/paludis/kde-base/dolphin-scm/work/dolphin/apps/dolphin/src/dolphinviewcontainer.cpp:52:
/var/tmp/paludis/kde-base/dolphin-scm/work/dolphin/apps/dolphin/src/dolphincontextmenu.h:27:29:
error: konq_copytomenu.h: No such file or directory
In file included from
/var/tmp/paludis/kde-base/dolphin-scm/work/dolphin/apps/dolphin/src/dolphinviewcontainer.cpp:52:
/var/tmp/paludis/kde-base/dolphin-scm/work/dolphin/apps/dolphin/src/dolphincontextmenu.h:138: error:
'KonqCopyToMenu' does not name a type
[ 48%] Building CXX object apps/dolphin/src/CMakeFiles/dolphin.dir/dolphinstatusbar.o
make[2]: *** [apps/dolphin/src/CMakeFiles/dolphin.dir/dolphinviewcontainer.o] Error 1

I tried to compile those parts and only those parts, while making sure, that their dependencies are 
installed. I have been able to fix it with the attached patches. The first patch is for 
kdebase/apps/lib/konq and installs the needed header file for dolphin and the second one changes the 
link target for plasmapkg. Although the solution for plasmapkg does work, since I'm not really 
familiar with that stuff, maybe that solution isn't correct.

Additional Information:
Compiler: gcc-4.2.3
Binutils: 2.18
Arch: amd64
KDE SVN revision: 793182 (Tried with a few later, too.)

Regards,
Bernd

["0001-Install-konq_copytomenu.h-dolphin-needs-it.patch" (text/plain)]

From dc74a06410fed7c9e73235ba7663476b5cad9f81 Mon Sep 17 00:00:00 2001
From: Bernd Steinhauser <gentoo@bernd-steinhauser.de>
Date: Thu, 3 Apr 2008 22:48:40 +0200
Subject: [PATCH] Install konq_copytomenu.h, dolphin needs it.

---
 apps/lib/konq/CMakeLists.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/apps/lib/konq/CMakeLists.txt b/apps/lib/konq/CMakeLists.txt
index a40e0c3..eaffaa1 100644
--- a/apps/lib/konq/CMakeLists.txt
+++ b/apps/lib/konq/CMakeLists.txt
@@ -42,7 +42,7 @@ install( FILES
  konq_popupmenu.h
  knewmenu.h
  konq_menuactions.h
- # konq_copytomenu.h - anyone needs it?
+ konq_copytomenu.h
  konq_defaults.h
  konq_operations.h
  libkonq_export.h
-- 
1.5.4.5


["0002-Fix-plasmapkg-split-compilation.patch" (text/plain)]

From b9456a5404b68a1b2102491df321d155690f2dee Mon Sep 17 00:00:00 2001
From: Bernd Steinhauser <gentoo@bernd-steinhauser.de>
Date: Thu, 3 Apr 2008 22:50:08 +0200
Subject: [PATCH] Fix plasmapkg split compilation.

---
 workspace/plasma/tools/plasmapkg/CMakeLists.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/workspace/plasma/tools/plasmapkg/CMakeLists.txt \
b/workspace/plasma/tools/plasmapkg/CMakeLists.txt index 154e469..1d69bbd 100644
--- a/workspace/plasma/tools/plasmapkg/CMakeLists.txt
+++ b/workspace/plasma/tools/plasmapkg/CMakeLists.txt
@@ -4,7 +4,7 @@ set(plasmapkg_SRCS
 
 kde4_add_executable(plasmapkg ${plasmapkg_SRCS})
 
-target_link_libraries(plasmapkg plasma)
+target_link_libraries(plasmapkg ${KDE4_KIO_LIBS} plasma)
 
 install(TARGETS plasmapkg DESTINATION ${BIN_INSTALL_DIR})
 
-- 
1.5.4.5



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic