|
HI,
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? -- Dhruv _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
|
On 2011-06-25, Dhruv Patel <[hidden email]> 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 [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
|
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 <[hidden email]>
_______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
| Free forum by Nabble | Edit this page |
