Bug 387077 - libkface vs opencv incompatibility: compile error
Summary: libkface vs opencv incompatibility: compile error
Status: RESOLVED DUPLICATE of bug 377425
Alias: None
Product: libkface
Classification: Frameworks and Libraries
Component: General (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR critical
Target Milestone: ---
Assignee: imaging-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-18 16:57 UTC by Frank
Modified: 2018-01-17 19:08 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank 2017-11-18 16:57:16 UTC
Relevant System: Gentoo, opencv-3.3.0-r4, libkface-17.08.3

The package fails to compile with the following error:
[ 54%] Building CXX object src/CMakeFiles/KF5KFace.dir/database/core/databasecorebackend.cpp.o
cd /var/tmp/portage/kde-apps/libkface-17.08.3/work/libkface-17.08.3_build/src && /usr/bin/x86_64-pc-linux-gnu-g++ -DKF5KFace_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_SQL_LIB -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_XML_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/var/tmp/portage/kde-apps/libkface-17.08.3/work/libkface-17.08.3_build/src -I/var/tmp/portage/kde-apps/libkface-17.08.3/work/libkface-17.08.3/src -I/var/tmp/portage/kde-apps/libkface-17.08.3/work/libkface-17.08.3_build/src/KF5KFace_autogen/include -I/var/tmp/portage/kde-apps/libkface-17.08.3/work/libkface-17.08.3_build/src/.. -I/var/tmp/portage/kde-apps/libkface-17.08.3/work/libkface-17.08.3/src/database -I/var/tmp/portage/kde-apps/libkface-17.08.3/work/libkface-17.08.3/src/database/core -I/var/tmp/portage/kde-apps/libkface-17.08.3/work/libkface-17.08.3/src/detection -I/var/tmp/portage/kde-apps/libkface-17.08.3/work/libkface-17.08.3/src/recognition-opencv-lbph -I/var/tmp/portage/kde-apps/libkface-17.08.3/work/libkface-17.08.3/src/alignment-congealing -isystem /usr/include/opencv -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtSql -isystem /usr/include/qt5/QtWidgets   -DQT_NO_DEBUG -DNDEBUG -O2 -march=native -fomit-frame-pointer -pipe -std=c++0x -fno-operator-names -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -pedantic -Wsuggest-override -fexceptions -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -fPIC -std=gnu++11 -o CMakeFiles/KF5KFace.dir/database/core/databasecorebackend.cpp.o -c /var/tmp/portage/kde-apps/libkface-17.08.3/work/libkface-17.08.3/src/database/core/databasecorebackend.cpp
In file included from /var/tmp/portage/kde-apps/libkface-17.08.3/work/libkface-17.08.3/src/recognition-opencv-lbph/facerec_borrowed.cpp:41:0:
/var/tmp/portage/kde-apps/libkface-17.08.3/work/libkface-17.08.3/src/recognition-opencv-lbph/facerec_borrowed.h:120:10: warning: ‘virtual void KFaceIface::LBPHFaceRecognizer::train(cv::InputArrayOfArrays, cv::InputArray)’ can be marked override [-Wsuggest-override]
     void train(cv::InputArrayOfArrays src, cv::InputArray labels);
          ^
/var/tmp/portage/kde-apps/libkface-17.08.3/work/libkface-17.08.3/src/recognition-opencv-lbph/facerec_borrowed.h:126:10: warning: ‘virtual void KFaceIface::LBPHFaceRecognizer::update(cv::InputArrayOfArrays, cv::InputArray)’ can be marked override [-Wsuggest-override]
     void update(cv::InputArrayOfArrays src, cv::InputArray labels);
          ^
/var/tmp/portage/kde-apps/libkface-17.08.3/work/libkface-17.08.3/src/recognition-opencv-lbph/facerec_borrowed.h:184:12: warning: ‘virtual double KFaceIface::LBPHFaceRecognizer::getThreshold() const’ can be marked override [-Wsuggest-override]
     double getThreshold() const                          { return m_threshold;            }
            ^
/var/tmp/portage/kde-apps/libkface-17.08.3/work/libkface-17.08.3/src/recognition-opencv-lbph/facerec_borrowed.h:185:10: warning: ‘virtual void KFaceIface::LBPHFaceRecognizer::setThreshold(double)’ can be marked override [-Wsuggest-override]
     void setThreshold(double _threshold)                 { m_threshold = _threshold;      }
          ^
/var/tmp/portage/kde-apps/libkface-17.08.3/work/libkface-17.08.3/src/recognition-opencv-lbph/facerec_borrowed.cpp: In static member function ‘static cv::Ptr<KFaceIface::LBPHFaceRecognizer> KFaceIface::LBPHFaceRecognizer::create(int, int, int, int, double, KFaceIface::LBPHFaceRecognizer::PredictionStatistics)’:
/var/tmp/portage/kde-apps/libkface-17.08.3/work/libkface-17.08.3/src/recognition-opencv-lbph/facerec_borrowed.cpp:553:115: error: invalid new-expression of abstract class type ‘KFaceIface::LBPHFaceRecognizer’
     LBPHFaceRecognizer* const fr = new LBPHFaceRecognizer(radius, neighbors, grid_x, grid_y, threshold, statistics);
                                                                                                                  
-----

Looks to me like it is related to an incompatibility with opencv.
Comment 1 Sérgio Basto 2018-01-07 22:42:23 UTC
dup of bug #377425
Comment 2 Christoph Feck 2018-01-17 19:08:21 UTC

*** This bug has been marked as a duplicate of bug 377425 ***