<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>387077</bug_id>
          
          <creation_ts>2017-11-18 16:57:16 +0000</creation_ts>
          <short_desc>libkface vs opencv incompatibility: compile error</short_desc>
          <delta_ts>2018-01-17 19:08:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>libkface</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>Gentoo Packages</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>377425</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Frank">fhenry</reporter>
          <assigned_to>imaging-bugs-null</assigned_to>
          <cc>sergio</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1712109</commentid>
    <comment_count>0</comment_count>
    <who name="Frank">fhenry</who>
    <bug_when>2017-11-18 16:57:16 +0000</bug_when>
    <thetext>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 &amp;&amp; /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&lt;KFaceIface::LBPHFaceRecognizer&gt; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1720734</commentid>
    <comment_count>1</comment_count>
    <who name="Sérgio Basto">sergio</who>
    <bug_when>2018-01-07 22:42:23 +0000</bug_when>
    <thetext>dup of bug #377425</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1723089</commentid>
    <comment_count>2</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2018-01-17 19:08:21 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 377425 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>