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

Dirk Tilger dirk.kde at miriup.de
Sun Jun 26 22:58:38 BST 2011


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.




More information about the Digikam-devel mailing list