[prev in list] [next in list] [prev in thread] [next in thread]
List: kopete-devel
Subject: Re: [kopete-devel] Creating kopete plugin with cmake
From: Matt Rogers <mattr () kde ! org>
Date: 2007-03-30 3:56:41
Message-ID: 4E3E55F3-D1DE-4A12-9169-9ABDE9278911 () kde ! org
[Download RAW message or body]
On Mar 29, 2007, at 3:12 AM, Vladimir Pouzanov wrote:
> Hello,
>
> Is it possible to create kopete plugin using cmake?
> My build script is:
> ===========
> PROJECT( kopete_recode )
>
> FIND_PACKAGE( KDE3 REQUIRED )
> INCLUDE_DIRECTORIES( ${KDE3_INCLUDE_DIRS} ${KDE3_INCLUDE_DIR}/kopete
> ${KDE3_INCLUDE_DIR}/kopete/ui build )
> LINK_DIRECTORIES( ${KDE3_LIB_DIR} )
>
>
> SET( KOPETERECODE_SRCS kopete-recode.cpp)
> KDE3_AUTOMOC( ${KOPETERECODE_SRCS} )
>
> ADD_LIBRARY( kopete_recode SHARED ${KOPETERECODE_SRCS} )
>
> TARGET_LINK_LIBRARIES( kopete_recode ${QT_AND_KDECORE_LIBS} kutils
> kdeui kopete -module -Wl,-no-undefined )
> ===========
>
> It compiles correctly, and I receive kopete_recode.so in result. I've
> copied it to /usr/kde/3.5/lib/kde3 (is it ok to use ~/.kde/lib
> instead?) and kopete_recode.desktop to ~/.kde/share/services. My
> plugin appears in kopete plugins list, however it seems that kopete
> doesn't load it at all (I've written bad pointer code to constructor,
> but kopete doesn't crash).
Those locations won't work. It's easiest to install new plugins into
the same place KDE is installed at (you can find it by running "kde-
config --prefix")
Reinstall your plugin in the same place as KDE is installed and see
if that doesn't fix your problem.
>
> Can you please give several hints? Is kopete_recode.la a required file
> (I've grabbed one from kopete_history.la with s/history/recode/g)? Is
> there any autotools template (I'm completely noob in autotools) for
> kopete plugin?
>
It might not work if the .la file is messed up, but I'm not
completely sure how the guts of the plugin loading code work, so you
might not need a .la file.
--
Matt
_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic