Bug 200099

Summary: kget doesn't find libbtcore when ktorrent is installed outside of the KDE directory.
Product: [Applications] kget Reporter: Darin McBride <Tanktalus>
Component: torrentAssignee: KGet authors <kget>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Darin McBride 2009-07-13 23:42:42 UTC
Version:            (using KDE 4.2.96)
OS:                Linux
Installed from:    Gentoo Packages

kget fails to compile because it can't find libbtcore.  With the following patch, it compiles.  However, kget pops up an error message saying "Plugin loader could not load the plugin: kget_bittorrentfactory" even though "ldd /usr/kde/4.3/lib64/kde4/kget_bittorrentfactory.so" seems to say everything can be found.

--- cmake/modules/FindBTCore.cmake    (revision 982472)
+++ cmake/modules/FindBTCore.cmake    (working copy)
@@ -22,8 +22,10 @@
     NAMES
     btcore_export.h
     PATHS 
-    ${KDE4_INCLUDE_DIR}/libbtcore
-    ${INCLUDE_INSTALL_DIR}/libbtcore
+    ${KDE4_INCLUDE_DIR}
+    ${INCLUDE_INSTALL_DIR}
+    PATH_SUFFIXES
+    libbtcore
     )

   FIND_LIBRARY(BTCORE_LIBRARIES
Comment 1 Lukas Appelhans 2010-01-02 22:07:24 UTC
Everything should be fine in latest trunk now...

Lukas