ubuntu pthread problem

Andrew Lowe <[email protected]> Thu, 19 Jun 2008 20:20:35 +1000
Newsgroups gmane.comp.kde.devel.quanta
Message-ID <[email protected]>
I am running kubuntu 8.04 with the 4.1 beta packages from ppa and have had 
some problems compiling both kdevplatform and kdewebdev.

I have discussed on the kdevelop list the problems and they seem to be 
releated to pthread not being linked directly.  Andreas Pukulat suggested 
adding pthread to the target_link_libraries and this fixed my problems with 
kdevplatforms teamwork plugin.  Adding it to kxsldbgpart and quantas kxsldbg 
plugin has fixed those issues with kdewebdev too....

attaching patch so you can see the difference.

further information is on the kdevelop list... but I can forward here if you 
need.

Thanks... hope to find time to get back to css plugin that I have not found 
time to work on for some time, and did not get far with last time...

Andrew Lowe
[email protected]

_______________________________________________
quanta-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/quanta-devel
kdewebdev-ubuntu-fix-pthread.diff (text/x-patch, 1 KB)
Index: quanta/plugins/kxsldbg/CMakeLists.txt
===================================================================
--- quanta/plugins/kxsldbg/CMakeLists.txt	(revision 821734)
+++ quanta/plugins/kxsldbg/CMakeLists.txt	(working copy)
@@ -135,6 +135,7 @@
    ${LIBXML2_LIBRARIES}
    ${LIBXSLT_LIBRARIES}
    ${KDE4_KUTILS_LIBS}
+   pthread
 )
 
 ########### install files ###############
Index: kxsldbg/kxsldbgpart/CMakeLists.txt
===================================================================
--- kxsldbg/kxsldbgpart/CMakeLists.txt	(revision 821734)
+++ kxsldbg/kxsldbgpart/CMakeLists.txt	(working copy)
@@ -29,7 +29,7 @@
 kde4_add_plugin(kxsldbgpart WITH_PREFIX ${kxsldbgpart_PART_SRCS})
 
 
-target_link_libraries(kxsldbgpart ${KDE4_KTEXTEDITOR_LIBS} exslt ${LIBXML2_LIBRARIES} ${LIBXSLT_LIBRARIES} ${QT_QT3SUPPORT_LIBRARY})
+target_link_libraries(kxsldbgpart ${KDE4_KTEXTEDITOR_LIBS} exslt ${LIBXML2_LIBRARIES} ${LIBXSLT_LIBRARIES} ${QT_QT3SUPPORT_LIBRARY} pthread )
 
 install(TARGETS kxsldbgpart  DESTINATION ${PLUGIN_INSTALL_DIR})