From kde-devel Wed Feb 25 14:21:42 2009 From: Patrick Spendrin Date: Wed, 25 Feb 2009 14:21:42 +0000 To: kde-devel Subject: Re: linking problem while porting my app Message-Id: <49A553F6.2020208 () gmx ! de> X-MARC-Message: https://marc.info/?l=kde-devel&m=123557178411983 Anatoli Gorchetchnikov schrieb: > On Wednesday 25 February 2009 08:14:26 am Andreas Pakulat wrote: >> On 25.02.09 07:58:41, Anatoli Gorchetchnikov wrote: >>> Hi guys, >>> >>> I finally decided to port my app to KDE4. I followed >>> http://techbase.kde.org/Development/Tutorials/KDE4_Porting_Guide >>> and after some more hand cleaning my modules started to compile. Here I >>> ran in the following problem: >>> >>> I have a shared library as one of the components, and my KPart is >>> supposed to be linked against this library. The corresponding >>> CMakeLists.txt are below. During build libkinproject does not link >>> claiming that all symbols from libkinnessbase are undefined. >>> >>> What am I missing? >> The CMake code looks correct, but do you also properly export the needed >> symbols from your kinnessbase library? >> >> Andreas > > I browsed through libkdegames code and found KDEGAMES_EXPORT macro, so I guess > I need to do something similar in my code, right? Yes. Please check that the MAKE_LIBRARYNAME_LIB in the libraryname_export.h file needs to be adjusted too (where LIBRARYNAME is KINESSBASE for you). Please also make sure that you use one _EXPORT per library; e.g. lib1_EXPORT, lib2_EXPORT and so on. regards, Patrick > > > > ------------------------------------------------------------------------ > > >>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << -- web: http://windows.kde.org mailing list: kde-windows@kde.org irc: #kde-windows (irc.freenode.net) >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<