Bug 320763 - build failed
Summary: build failed
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Detection (show other bugs)
Version: 3.3.0
Platform: Compiled Sources Linux
: NOR grave
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-05 11:34 UTC by Stas
Modified: 2013-06-12 10:26 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 3.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stas 2013-06-05 11:34:04 UTC
digikam-3.3.0-beta1 build failed (downloaded from http://download.kde.org/unstable/digikam/digikam-3.3.0-beta1.tar.bz2.mirrorlist).

Scanning dependencies of target kface
[  9%] Building CXX object extra/libkface/libkface/CMakeFiles/kface.dir/kface_automoc.cpp.o
[  9%] Building CXX object extra/libkface/libkface/CMakeFiles/kface.dir/recognition-opencv-lbph/lbphfacemodel.cpp.o
In file included from /media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:30:0:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.h:69:38: error: ‘FaceRecognizer’ is not a member of ‘cv’
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.h:69:38: error: ‘FaceRecognizer’ is not a member of ‘cv’
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.h:69:56: error: template argument 1 is invalid
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.h:75:5: error: ‘FaceRecognizer’ in namespace ‘cv’ does not name a type
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.h:76:11: error: ‘FaceRecognizer’ in namespace ‘cv’ does not name a type
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp: In constructor ‘KFaceIface::LBPHFaceModel::LBPHFaceModel()’:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:54:15: error: ‘FaceRecognizer’ is not a member of ‘cv’
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:54:15: error: ‘FaceRecognizer’ is not a member of ‘cv’
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:54:33: error: template argument 1 is invalid
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:54:34: error: expected ‘{’ before ‘(’ token
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp: At global scope:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:54:66: error: expected constructor, destructor, or type conversion before ‘,’ token
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:55:17: error: expected constructor, destructor, or type conversion before ‘(’ token
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp: In member function ‘int KFaceIface::LBPHFaceModel::radius() const’:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:61:16: error: ‘ptr’ was not declared in this scope
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:61:23: error: expected primary-expression before ‘int’
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:61:23: error: expected ‘;’ before ‘int’
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:61:26: error: expected unqualified-id before ‘>’ token
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp: In member function ‘void KFaceIface::LBPHFaceModel::setRadius(int)’:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:66:9: error: ‘ptr’ was not declared in this scope
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp: In member function ‘int KFaceIface::LBPHFaceModel::neighbors() const’:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:71:16: error: ‘ptr’ was not declared in this scope
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:71:23: error: expected primary-expression before ‘int’
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:71:23: error: expected ‘;’ before ‘int’
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:71:26: error: expected unqualified-id before ‘>’ token
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp: In member function ‘void KFaceIface::LBPHFaceModel::setNeighbors(int)’:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:76:9: error: ‘ptr’ was not declared in this scope
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp: In member function ‘int KFaceIface::LBPHFaceModel::gridX() const’:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:81:16: error: ‘ptr’ was not declared in this scope
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:81:23: error: expected primary-expression before ‘int’
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:81:23: error: expected ‘;’ before ‘int’
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:81:26: error: expected unqualified-id before ‘>’ token
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp: In member function ‘void KFaceIface::LBPHFaceModel::setGridX(int)’:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:86:9: error: ‘ptr’ was not declared in this scope
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp: In member function ‘int KFaceIface::LBPHFaceModel::gridY() const’:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:91:16: error: ‘ptr’ was not declared in this scope
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:91:23: error: expected primary-expression before ‘int’
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:91:23: error: expected ‘;’ before ‘int’
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:91:26: error: expected unqualified-id before ‘>’ token
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp: In member function ‘void KFaceIface::LBPHFaceModel::setGridY(int)’:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:96:9: error: ‘ptr’ was not declared in this scope
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp: In member function ‘KFaceIface::OpenCVMatData KFaceIface::LBPHFaceModel::histogramData(int) const’:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:101:30: error: ‘ptr’ was not declared in this scope
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:101:74: error: request for member ‘at’ in ‘("histograms")’, which is of non-class type ‘const char [11]’
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:101:25: error: expected primary-expression before ‘(’ token
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:101:58: error: expected primary-expression before ‘>’ token
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:101:74: error: request for member ‘at’ in ‘("histograms")’, which is of non-class type ‘const char [11]’
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp: In member function ‘void KFaceIface::LBPHFaceModel::setHistograms(const QList<KFaceIface::OpenCVMatData>&, const QList<KFaceIface::LBPHistogramMetadata>&)’:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:129:60: error: ‘MEMORY’ is not a member of ‘cv::FileStorage’
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:150:29: error: ‘class cv::FileStorage’ has no member named ‘releaseAndGetString’
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:152:56: error: ‘MEMORY’ is not a member of ‘cv::FileStorage’
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:153:9: error: ‘ptr’ was not declared in this scope
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp: In member function ‘void KFaceIface::LBPHFaceModel::update(const std::vector<cv::Mat>&, const std::vector<int>&, const QString&)’:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:158:9: error: ‘ptr’ was not declared in this scope
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:162:47: error: expected primary-expression before ‘>’ token
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp: In member function ‘KFaceIface::OpenCVMatData KFaceIface::LBPHFaceModel::histogramData(int) const’:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:102:1: error: control reaches end of non-void function [-Werror=return-type]
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp: In member function ‘int KFaceIface::LBPHFaceModel::gridY() const’:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:92:1: error: control reaches end of non-void function [-Werror=return-type]
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp: In member function ‘int KFaceIface::LBPHFaceModel::gridX() const’:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:82:1: error: control reaches end of non-void function [-Werror=return-type]
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp: In member function ‘int KFaceIface::LBPHFaceModel::neighbors() const’:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:72:1: error: control reaches end of non-void function [-Werror=return-type]
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp: In member function ‘int KFaceIface::LBPHFaceModel::radius() const’:
/media/DATA/DOWNLOADS/digikam-3.3.0-beta1/extra/libkface/libkface/recognition-opencv-lbph/lbphfacemodel.cpp:62:1: error: control reaches end of non-void function [-Werror=return-type]
cc1plus: some warnings being treated as errors
make[2]: *** [extra/libkface/libkface/CMakeFiles/kface.dir/recognition-opencv-lbph/lbphfacemodel.cpp.o] Error 1
make[1]: *** [extra/libkface/libkface/CMakeFiles/kface.dir/all] Error 2
make: *** [all] Error 2


Reproducible: Always
Comment 1 caulier.gilles 2013-06-05 11:42:49 UTC

*** This bug has been marked as a duplicate of bug 320714 ***
Comment 2 Stas 2013-06-05 12:31:06 UTC
But it is not exactly a duplicate. I have build it on Kubuntu 12.04 and the errors are not the same.
Comment 3 Mahesh 2013-06-05 14:30:59 UTC
By installing OpenCV 2.4.5 and removing older version, should solve your problem if not get new libkface version from master,and also Digikam from master
Comment 4 caulier.gilles 2013-06-12 10:24:55 UTC
Git commit a06627794268c218d64f7f5066c5b4bac47f7bf4 by Gilles Caulier.
Committed on 12/06/2013 at 12:21.
Pushed by cgilles into branch 'master'.

check if opencv version is >= 2.4.3

M  +28   -4    CMakeLists.txt
M  +1    -5    README

http://commits.kde.org/libkface/a06627794268c218d64f7f5066c5b4bac47f7bf4