[Digikam-devel] error while compiling libkmap + compilation errors
kunal ghosh
kunal.t2 at gmail.com
Wed Sep 22 18:55:30 BST 2010
On 09/22/2010 11:58 AM, Gilles Caulier wrote:
> checkout and try again
checked out , now the libkmap error disappeared and the following error
appears,
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:81:11:
error: 'DatabaseFace' was not declared in this scope
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:81:23:
error: template argument 1 is invalid
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:95:47:
error: 'DatabaseFace' does not name a type
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:95:61:
error: ISO C++ forbids declaration of 'face' with no type
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:96:59:
error: 'DatabaseFace' does not name a type
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:96:73:
error: ISO C++ forbids declaration of 'face' with no type
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:239:61:
error: 'DatabaseFace' does not name a type
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:239:75:
error: ISO C++ forbids declaration of 'face' with no type
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:
In member function 'Digikam::RegionFrameItem*
Digikam::FaceGroup::FaceGroupPriv::createItem(const int&)':
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:242:32:
error: request for member 'region' in 'face', which is of non-class type
'const int'
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:
At global scope:
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:263:74:
error: 'DatabaseFace' does not name a type
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:263:88:
error: ISO C++ forbids declaration of 'face' with no type
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:
In member function 'Digikam::AssignNameWidget*
Digikam::FaceGroup::FaceGroupPriv::createAssignNameWidget(const int&,
const QVariant&)':
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:266:18:
error: request for member 'type' in 'face', which is of non-class type
'const int'
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:268:14:
error: 'DatabaseFace' has not been declared
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:271:14:
error: 'DatabaseFace' has not been declared
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:274:14:
error: 'DatabaseFace' has not been declared
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:
In member function 'void Digikam::FaceGroup::load()':
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:308:29:
error: 'class Digikam::FaceIface' has no member named 'databaseFaces'
In file included from /usr/include/QtCore/qnamespace.h:45:0,
from /usr/include/QtCore/qobjectdefs.h:45,
from /usr/include/QtCore/qobject.h:47,
from /usr/include/QtCore/QObject:1,
from
/media/backup/kunal/TEMP/digikam/build/digikam/../../utilities/facedetection/facegroup.h:29,
from
/media/backup/kunal/TEMP/digikam/build/digikam/facegroup.moc:10,
from
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:25:
/usr/include/QtCore/qglobal.h: At global scope:
/usr/include/QtCore/qglobal.h: In instantiation of 'QForeachContainer<int>':
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:310:5:
instantiated from here
/usr/include/QtCore/qglobal.h:2228:32: error: 'int' is not a class,
struct, or union type
/usr/include/QtCore/qglobal.h:2228:35: error: 'int' is not a class,
struct, or union type
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:
In member function 'void Digikam::FaceGroup::load()':
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:310:5:
error: 'class QForeachContainer<int>' has no member named 'i'
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:310:5:
error: 'class QForeachContainer<int>' has no member named 'e'
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:310:5:
error: 'class QForeachContainer<int>' has no member named 'i'
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:310:5:
error: 'DatabaseFace' does not name a type
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:312:47:
error: 'face' was not declared in this scope
In file included from /usr/include/QtCore/qnamespace.h:45:0,
from /usr/include/QtCore/qobjectdefs.h:45,
from /usr/include/QtCore/qobject.h:47,
from /usr/include/QtCore/QObject:1,
from
/media/backup/kunal/TEMP/digikam/build/digikam/../../utilities/facedetection/facegroup.h:29,
from
/media/backup/kunal/TEMP/digikam/build/digikam/facegroup.moc:10,
from
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:25:
/usr/include/QtCore/qglobal.h: In constructor
'QForeachContainer<T>::QForeachContainer(const T&) [with T = int]':
/media/backup/kunal/TEMP/digikam/utilities/facedetection/facegroup.cpp:310:5:
instantiated from here
/usr/include/QtCore/qglobal.h:2225:81: error: using invalid field
'QForeachContainer<T>::i'
/usr/include/QtCore/qglobal.h:2225:81: error: request for member 'begin'
in '((QForeachContainer<int>*)this)->QForeachContainer<int>::c', which
is of non-class type 'const int'
/usr/include/QtCore/qglobal.h:2225:81: error: using invalid field
'QForeachContainer<T>::e'
/usr/include/QtCore/qglobal.h:2225:81: error: request for member 'end'
in '((QForeachContainer<int>*)this)->QForeachContainer<int>::c', which
is of non-class type 'const int'
make[2]: ***
[digikam/CMakeFiles/digikam.dir/__/utilities/facedetection/facegroup.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [digikam/CMakeFiles/digikam.dir/all] Error 2
make: *** [all] Error 2
> Gilles
>
> 2010/9/22 kunal ghosh<kunal.t2 at gmail.com>:
>> I get the following error while compiling libkmap, i have updated and
>> compiled
>> libkipi
>> libkexiv2
>> libkdcraw
>> libkface
>>
>> i have also updated marble-devel to the latest available in the repository.
>>
>> any suggestions ?
>>
>>
>> [kunal at linux-heiz:libkmap/build]$ make -j
>> 4
>> (09-20 21:38)
>> [ 0%] Built target libkmap_demo_automoc
>> [ 0%] Built target kmap_automoc
>> [ 5%] [ 10%] [ 15%] Building CXX object
>> libkmap/CMakeFiles/kmap.dir/backend-marble.o
>> Building CXX object
>> libkmap/CMakeFiles/kmap.dir/backend-googlemaps.o
>>
>> Building CXX object
>> libkmap/CMakeFiles/kmap.dir/backend-marble-layer.o
>>
>> /media/backup/kunal/graphics/libkmap/libkmap/backend-marble-layer.cpp:50:6:
>> warning: unused parameter
>> ?viewport?
>> /media/backup/kunal/graphics/libkmap/libkmap/backend-marble-layer.cpp:50:6:
>> warning: unused parameter ?layer?
>> Linking CXX shared library ../lib/libkmap.so
>> [ 70%] Built target
>> kmap
>>
>> Scanning dependencies of target libkmap_demo
>> [ 75%] Building CXX object
>> demo/CMakeFiles/libkmap_demo.dir/libkmap_demo_automoc.o
>>
>> [ 80%] [ 85%] Building CXX object
>> demo/CMakeFiles/libkmap_demo.dir/demo-main.o
>>
>> Building CXX object
>> demo/CMakeFiles/libkmap_demo.dir/mainwindow.o
>>
>> [ 90%] Building CXX object
>> demo/CMakeFiles/libkmap_demo.dir/myimageitem.o
>>
>> [ 95%] Building CXX object
>> demo/CMakeFiles/libkmap_demo.dir/mytreewidget.o
>>
>> /media/backup/kunal/graphics/libkmap/demo/demo-main.cpp:37:21: fatal
>> error: version.h: No such file or
>> directory
>> compilation terminated.
>> make[2]: *** [demo/CMakeFiles/libkmap_demo.dir/demo-main.o] Error 1
>> make[2]: *** Waiting for unfinished jobs....
>> make[1]: *** [demo/CMakeFiles/libkmap_demo.dir/all] Error 2
>> make: *** [all] Error 2
>> _______________________________________________
>> Digikam-devel mailing list
>> Digikam-devel at kde.org
>> https://mail.kde.org/mailman/listinfo/digikam-devel
>>
> _______________________________________________
> 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/20100922/209c1d8f/attachment.html>
More information about the Digikam-devel
mailing list