[Kde-imaging] Including blob lib into kipi-plugin

Andi Clemens andi.clemens at gmx.net
Tue Nov 4 11:18:31 CET 2008


Hi Gilles,

I'm still not that familiar with C++ and its libs, in Python it would be easy 
to include new libs into a program: just copy them into the folder and that's 
it.
But I guess this is not how it works in C++ / CMake.
I created a folder libs/blob inside the plugin and copied all *.h and *.cpp 
files into it.
Now I need to create a CMakeLists.txt that defines this folder as a library, 
right?
Do you think I can just copy the sqlite3 files as an example or will this not 
work since sqlite3 is already compiled?
Do I have to actually compile the blob lib and only use the header files and 
the libblob.a file in there?
Dies this mean it will not work on windows? To make it work there I think I 
need to have the blob*.cpp files in there, too?

You see CMake and C++ in general still is a big confusion for me sometimes, 
like the 'delete' statement crashing my application etc... :-)
But I will learn...!

Andi

On Tuesday 04 November 2008 10:58:43 Gilles Caulier wrote:
> blob cv lib is very small. A possible way is to include code in your plugin
> as well...
>
> Gilles
>
> 2008/11/4 Andi Clemens <andi.clemens at gmx.net>
>
> > There is another needed lib for openCV that I manually copied into my
> > openCV
> > system folder: OpenCV Blob Detection library
> > (http://opencvlibrary.sourceforge.net/cvBlobsLib).
> >
> > I don't know if distributions prepare packages for it, Archlinux does not
> > s far as I know.
> >
> > This is a problem, how to solve this?
> >
> > Andi
> >
> > On Tuesday 04 November 2008 09:40:09 Gilles Caulier wrote:
> > > SVN commit 879865 by cgilles:
> > >
> > > update
> > >
> > >
> > >  M  +4 -1      README
> > >
> > >
> > > --- trunk/extragear/graphics/kipi-plugins/README #879864:879865
> > > @@ -32,8 +32,9 @@
> > >  RawConverter       : A tool to convert Raw Image to JPEG/PNG/TIFF.
> > >  DngConverter       : A tool to convert Raw Image to Digital NeGative
> >
> > (DNG
> >
> > > -
> > > http://en.wikipedia.org/wiki/Digital_Negative_(file_format)<http://en.w
> > >ikipedia.org/wiki/Digital_Negative_%28file_format%29>).
> >
> > WallPaper
> >
> > >        : A tool to set image to KDE Desktop.
> > >
> > > +RemoveRedEyes      : A tool to remove red eyes on image automatically.
> > >
> > > -Plugins not yet ported to Qt4/KDE4:
> > > +Plugins not yet ported to Qt4/KDE4 (or under progress):
> > >
> > >  IpodExport         : A tool to export pictures to an Ipod device.
> > >  MpegEncoder        : A tool to create an MPEG slideshow with a set of
> > > images. @@ -63,6 +64,7 @@
> > >  libexpat        >= 2.0.1
> > > http://expat.sourceforge.net libqtopengl     >= 4.3.x
> > >  http://www.trolltech.com Mesa3D          >= 7.0.4
> > > http://mesa3d.sourceforge.net +libopencv       >= 1.0
> > >    http://opencv.willowgarage.com
> > >
> > >  Plugin Specific Dependencies (for compiling and for running) :
> > >
> > > @@ -73,6 +75,7 @@
> > >  htmlexport         : libxslt and libxml2
> > >  jpeglossless       : imagemagick (runtime dependency)
> > >  wallpaper          : kdebase (runtime dependency)
> > > +RemoveRedEyes      : libopencv.
> > >
> > >  -- CONTACT
> > > ------------------------------------------------------------
> >
> > _______________________________________________
> > Kde-imaging mailing list
> > Kde-imaging at kde.org
> > https://mail.kde.org/mailman/listinfo/kde-imaging



More information about the Kde-imaging mailing list