linking to kde4support (Re: KF5 Update Meeting Minutes 2013-w27)

David Faure faure at kde.org
Thu Jul 4 21:44:18 UTC 2013


Le mercredi 3 juillet 2013 21:55:29 Alexander Neundorf a écrit :
> On Tuesday 02 July 2013, Alexander Neundorf wrote:
> > On Tuesday 02 July 2013, Kevin Ottens wrote:
> > >  * [steveire] investigate why kde4support isn't usable from outside
> > >  kdelibs (issue with the cmake file)
> > 
> > what's the issue here ?
> > Without looking in detail, this will be a mess while we have the mixture
> > of already-split and still-monolithic libraries.
> 
> So, what you try to do actually ?
> Use kde4support separately from KDELibs4 ?

I tried to link one of the plasma-framework apps to kde4support, and it gave 
an error about not finding it.
(I ported the code away from kde4support instead, which is why we're not 
hitting this issue yet).

More details:

Even though 
find_package(kde4support REQUIRED NO_MODULE)
is in the toplevel CMakeLists.txt and finds it, this patch:

diff --git a/src/plasmapkg/CMakeLists.txt b/src/plasmapkg/CMakeLists.txt
index d2f2427..919dd64 100644
--- a/src/plasmapkg/CMakeLists.txt
+++ b/src/plasmapkg/CMakeLists.txt
@@ -5,7 +5,7 @@ add_executable(plasmapkg
     plasmapkg.cpp
 )
 
-target_link_libraries(plasmapkg kdeqt5staging plasma)
+target_link_libraries(plasmapkg kdeqt5staging plasma kde4support)
 
 message("INSTALL_TARGETS_DEFAULT_ARGS ${INSTALL_TARGETS_DEFAULT_ARGS}")

... gives the error ....

ld: cannot find -lkde4support

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list