[Digikam-devel] Re: Adding new class in Digikam namespace

Gilles Caulier caulier.gilles at gmail.com
Mon Jun 27 06:21:37 BST 2011


Do you use export symbol properlly ?

Do you link with right digiKam component ?

Can we see you patch for details ?

What's the QmlShow class do exactly ?

Gilles caulier

Gilles Caulier

2011/6/26 Dirk Tilger <dirk.kde at miriup.de>

> On 2011-06-25, Dhruv Patel <dhruvkumarr.patel51 at gmail.com> wrote:
> > i was trying to add a new class named QmlShow in core/utilities/qmlShow.
> I
> > have added it in core/CMakelists.txt and core/digikam/Cmakelists.txt. But
> > when I try to instantiate it in core/digikam/views/digikamview.cpp, I get
> > following error in make output:
> >
> > Linking CXX executable digikam
> > CMakeFiles/digikam.dir/views/digikamview.cpp.o: In function
> > `Digikam::DigikamView::qml(QList<Digikam::ImageInfo>)':
> > /home/dhruv/digikam-sc/core/digikam/views/digikamview.cpp:1859: undefined
> > reference to `Digikam::QmlShow::QmlShow(QList<Digikam::ImageInfo>)'
> > collect2: ld returned 1 exit status
> > make[2]: *** [core/digikam/digikam] Error 1
> > make[1]: *** [core/digikam/CMakeFiles/digikam.dir/all] Error 2
> > make: *** [all] Error 2
> >
> > Is there more to be done when we add new class?
>
> Is the CPP file that contains
> Digikam::QmlShow::QmlShow(QList<Digikam::ImageInfo>) compiled during the
> build process? If not, you've made a mistake in the cmake configuration.
>
> If it is linked, is the declaration of
> Digikam::QmlShow::QmlShow(QList<Digikam::ImageInfo>) identical with the
> definition (i.e. are header file and cpp file in-sync)?
>
> Dirk.
>
> _______________________________________________
> Digikam-devel mailing list
> Digikam-devel at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20110627/c27916b8/attachment.html>


More information about the Digikam-devel mailing list