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

List:       kde-devel
Subject:    Linkage errors in kdebase with xrender
From:       Shai Berger <shai () platonix ! com>
Date:       2008-04-25 21:19:34
Message-ID: 200804260019.34747.shai () platonix ! com
[Download RAW message or body]

Hi guys,

This is my first message here. I'm an experienced C++ programmer, have been 
using Debian (sid) and KDE at home for several years now, and finally I'm 
starting to get into KDE development. My main interests are kdepim (as a 
devout user) and BiDi issues (as a Hebrew user).

Today I started building KDE from trunk (and scratch), after not touching it 
in a few weeks. kdelibs and kdepimlibs went relatively smoothly, but with 
kdebase I kept running into linkage problems, where XRender* functions kept 
not being found (even though I had the relevant development packages 
installed).

I finally realized that XRender was just not being referenced in the link  
command, and so I solved the problems with the attached (probably trivial to 
you) patch. 

If there's anything you'd like to know about my configuration, feel free to 
ask; as I said, I'm not experienced in KDE development, and I don't know 
exactly what are  the relevant pieces.

Thanks for  all your work, and have fun,

	Shai.

["cmakelists-fixes-for-xrender.patch" (text/x-diff)]

Index: apps/dolphin/src/CMakeLists.txt
===================================================================
--- apps/dolphin/src/CMakeLists.txt	(revision 801140)
+++ apps/dolphin/src/CMakeLists.txt	(working copy)
@@ -56,6 +56,9 @@
 if (Nepomuk_FOUND)
   target_link_libraries(dolphinprivate ${NEPOMUK_LIBRARIES} ${SOPRANO_LIBRARIES})
 endif (Nepomuk_FOUND)
+if(X11_Xrender_FOUND)
+    target_link_libraries(dolphinprivate ${X11_Xrender_LIB} )
+endif(X11_Xrender_FOUND)
 
 
 set_target_properties(dolphinprivate PROPERTIES VERSION ${GENERIC_LIB_VERSION} \
                SOVERSION ${GENERIC_LIB_SOVERSION} )
Index: apps/konsole/src/CMakeLists.txt
===================================================================
--- apps/konsole/src/CMakeLists.txt	(revision 801140)
+++ apps/konsole/src/CMakeLists.txt	(working copy)
@@ -156,6 +156,11 @@
 set_target_properties(konsolepart PROPERTIES DEFINE_SYMBOL KONSOLE_PART)
 
 target_link_libraries(konsolepart ${KDE4_KPARTS_LIBS} ${KDE4_KPTY_LIBRARY} \
${KDE4_KIO_LIBS} ${KDE4_KNOTIFYCONFIG_LIBS}) +
+if(X11_Xrender_FOUND)
+    target_link_libraries(konsolepart ${X11_Xrender_LIB} )
+endif(X11_Xrender_FOUND)
+
 if(X11_XTest_LIB)
   target_link_libraries(konsolepart  ${X11_XTest_LIB}  )
 endif(X11_XTest_LIB)
Index: workspace/plasma/plasma/CMakeLists.txt
===================================================================
--- workspace/plasma/plasma/CMakeLists.txt	(revision 801140)
+++ workspace/plasma/plasma/CMakeLists.txt	(working copy)
@@ -19,6 +19,9 @@
 kde4_add_kdeinit_executable(plasma-qgv ${plasma_SRCS})
 
 target_link_libraries(kdeinit_plasma-qgv plasma kworkspace  ${KDE4_KIO_LIBS})
+if(X11_Xrender_FOUND)
+    target_link_libraries(kdeinit_plasma-qgv ${X11_Xrender_LIB} )
+endif(X11_Xrender_FOUND)
 set_target_properties(kdeinit_plasma-qgv PROPERTIES OUTPUT_NAME kdeinit4_plasma)
 set_target_properties(plasma-qgv PROPERTIES OUTPUT_NAME plasma)
 



>> 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