[Digikam-devel] [digikam] [Bug 344484] digiKam 4.8.0 compilation error : undefined reference to `cv::Exception::Exception

nucleo nucleo at fedoraproject.org
Mon Feb 23 13:38:05 GMT 2015


https://bugs.kde.org/show_bug.cgi?id=344484

--- Comment #1 from nucleo <nucleo at fedoraproject.org> ---
Looks like this problem related with new gcc 5.0.0 used in Fedora Rawhide (23).
digiKam 4.7.0 compilation also failed with gcc 5.0.0 but both digKam 4.7.0 and
4.8.0 compiled fine with gcc 4.9.2.

[ 47%] Building CXX object
extra/kipi-plugins/common/libkipiplugins/CMakeFiles/kipiplugins.dir/dialogs/kpwizardpage.cpp.o
cd extra/kipi-plugins/common/libkipiplugins && /usr/bin/c++  
-DAREA_CODE_GENERAL=51000 -DAREA_CODE_LOADING=51001
-DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=21 -DKDE_DEFAULT_DEBUG_AREA=51000
-DKDE_DEPRECATED_WARNINGS -DMAKE_KIPIPLUGINS_LIB -DQT_NO_CAST_TO_ASCII
-DQT_NO_STL -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS
-D_BSD_SOURCE -D_DEFAULT_SOURCE -D_REENTRANT -D_XOPEN_SOURCE=500 -O2 -g -pipe
-Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic 
-Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall
-W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS
-fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics
-fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -O2
-DNDEBUG -DQT_NO_DEBUG -fPIC -I.
-I../../../../../extra/kipi-plugins/common/libkipiplugins
-I../../../../../extra/kipi-
plugins/common/libkipiplugins/dialogs
-I../../../../../extra/kipi-plugins/common/libkipiplugins/widgets
-I../../../../../extra/kipi-plugins/common/libkipiplugins/tools
-I../../../../../extra/kipi-plugins/common/libkipiplugins/tools/imageio
-I/usr/include/opencv -I/usr/include/kde4 -I/usr/include/kde4/KDE
-I/usr/include/KDE -I/usr/include/phonon -I/usr/include/QtXmlPatterns
-I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include/QtUiTools
-I/usr/include/QtTest -I/usr/include/QtSvg -I/usr/include/QtSql
-I/usr/include/QtScriptTools -I/usr/include/QtScript -I/usr/include/QtOpenGL
-I/usr/include/QtNetwork -I/usr/include/QtMultimedia -I/usr/include/QtHelp
-I/usr/include/QtDesigner -I/usr/include/QtDeclarative -I/usr/include/QtDBus
-I/usr/include/Qt3Support -I/usr/include/QtGui -I/usr/include/QtCore
-I/usr/include/Qt -I/usr/lib64/qt4/mkspecs/default    -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -o CMakeFiles/kipiplugins.dir/dialogs/kpwizardpage.cpp.o
-c ../../../../../extra/kipi-plugins/common/libkipiplugins/dialogs/
kpwizardpage.cpp
CMakeFiles/kface.dir/detection/opencvfacedetector.cpp.o: In function
`KFaceIface::Cascade::Cascade(QStringList const&, QString const&)':
/builddir/build/BUILD/digikam-4.7.0/x86_64-redhat-linux-gnu/extra/libkface/libkface/../../../../extra/libkface/libkface/detection/opencvfacedetector.cpp:130:
undefined reference to
`cv::CascadeClassifier::load(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
CMakeFiles/kface.dir/recognition-opencv-lbph/lbphfacemodel.cpp.o: In function
`void cv::Mat::push_back<int>(int const&)':
/usr/include/opencv2/core/mat.hpp:689: undefined reference to
`cv::Exception::Exception(int, std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, int)'
CMakeFiles/kface.dir/recognition-opencv-lbph/facerec_borrowed.cpp.o: In
function `LBPHFaceRecognizer_info':
/builddir/build/BUILD/digikam-4.7.0/x86_64-redhat-linux-gnu/extra/libkface/libkface/../../../../extra/libkface/libkface/recognition-opencv-lbph/facerec_borrowed.cpp:534:
undefined reference to
`cv::AlgorithmInfo::AlgorithmInfo(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, cv::Algorithm* (*)())'
CMakeFiles/kface.dir/recognition-opencv-lbph/facerec_borrowed.cpp.o: In
function `KFaceIface::LBPHFaceRecognizer::info() const':
/builddir/build/BUILD/digikam-4.7.0/x86_64-redhat-linux-gnu/extra/libkface/libkface/../../../../extra/libkface/libkface/recognition-opencv-lbph/facerec_borrowed.cpp:534:
undefined reference to `cv::AlgorithmInfo::addParam(cv::Algorithm&, char
const*, int&, bool, int (cv::Algorithm::*)(), void (cv::Algorithm::*)(int),
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)'
/builddir/build/BUILD/digikam-4.7.0/x86_64-redhat-linux-gnu/extra/libkface/libkface/../../../../extra/libkface/libkface/recognition-opencv-lbph/facerec_borrowed.cpp:534:
undefined reference to `cv::AlgorithmInfo::addParam(cv::Algorithm&, char
const*, int&, bool, int (cv::Algorithm::*)(), void (cv::Algorithm::*)(int),
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)'
/builddir/build/BUILD/digikam-4.7.0/x86_64-redhat-linux-gnu/extra/libkface/libkface/../../../../extra/libkface/libkface/recognition-opencv-lbph/facerec_borrowed.cpp:534:
undefined reference to `cv::AlgorithmInfo::addParam(cv::Algorithm&, char
const*, int&, bool, int (cv::Algorithm::*)(), void (cv::Algorithm::*)(int),
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)'
/builddir/build/BUILD/digikam-4.7.0/x86_64-redhat-linux-gnu/extra/libkface/libkface/../../../../extra/libkface/libkface/recognition-opencv-lbph/facerec_borrowed.cpp:534:
undefined reference to `cv::AlgorithmInfo::addParam(cv::Algorithm&, char
const*, int&, bool, int (cv::Algorithm::*)(), void (cv::Algorithm::*)(int),
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)'
/builddir/build/BUILD/digikam-4.7.0/x86_64-redhat-linux-gnu/extra/libkface/libkface/../../../../extra/libkface/libkface/recognition-opencv-lbph/facerec_borrowed.cpp:534:
undefined reference to `cv::AlgorithmInfo::addParam(cv::Algorithm&, char
const*, double&, bool, double (cv::Algorithm::*)(), void
(cv::Algorithm::*)(double), std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
/builddir/build/BUILD/digikam-4.7.0/x86_64-redhat-linux-gnu/extra/libkface/libkface/../../../../extra/libkface/libkface/recognition-opencv-lbph/facerec_borrowed.cpp:534:
undefined reference to `cv::AlgorithmInfo::addParam(cv::Algorithm&, char
const*, std::vector<cv::Mat, std::allocator<cv::Mat> >&, bool,
std::vector<cv::Mat, std::allocator<cv::Mat> > (cv::Algorithm::*)(), void
(cv::Algorithm::*)(std::vector<cv::Mat, std::allocator<cv::Mat> > const&),
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)'
/builddir/build/BUILD/digikam-4.7.0/x86_64-redhat-linux-gnu/extra/libkface/libkface/../../../../extra/libkface/libkface/recognition-opencv-lbph/facerec_borrowed.cpp:534:
undefined reference to `cv::AlgorithmInfo::addParam(cv::Algorithm&, char
const*, cv::Mat&, bool, cv::Mat (cv::Algorithm::*)(), void
(cv::Algorithm::*)(cv::Mat const&), std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
/builddir/build/BUILD/digikam-4.7.0/x86_64-redhat-linux-gnu/extra/libkface/libkface/../../../../extra/libkface/libkface/recognition-opencv-lbph/facerec_borrowed.cpp:534:
undefined reference to `cv::AlgorithmInfo::addParam(cv::Algorithm&, char
const*, int&, bool, int (cv::Algorithm::*)(), void (cv::Algorithm::*)(int),
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)'
CMakeFiles/kface.dir/recognition-opencv-lbph/facerec_borrowed.cpp.o: In
function `histc':
/builddir/build/BUILD/digikam-4.7.0/x86_64-redhat-linux-gnu/extra/libkface/libkface/../../../../extra/libkface/libkface/recognition-opencv-lbph/facerec_borrowed.cpp:217:
undefined reference to `cv::Exception::Exception(int,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, int)'
CMakeFiles/kface.dir/recognition-opencv-lbph/facerec_borrowed.cpp.o: In
function `elbp':
/builddir/build/BUILD/digikam-4.7.0/x86_64-redhat-linux-gnu/extra/libkface/libkface/../../../../extra/libkface/libkface/recognition-opencv-lbph/facerec_borrowed.cpp:165:
undefined reference to `cv::Exception::Exception(int,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, int)'
CMakeFiles/kface.dir/recognition-opencv-lbph/facerec_borrowed.cpp.o: In
function `KFaceIface::LBPHFaceRecognizer::train(cv::_InputArray const&,
cv::_InputArray const&, bool)':
/builddir/build/BUILD/digikam-4.7.0/x86_64-redhat-linux-gnu/extra/libkface/libkface/../../../../extra/libkface/libkface/recognition-opencv-lbph/facerec_borrowed.cpp:320:
undefined reference to `cv::Exception::Exception(int,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, int)'
/builddir/build/BUILD/digikam-4.7.0/x86_64-redhat-linux-gnu/extra/libkface/libkface/../../../../extra/libkface/libkface/recognition-opencv-lbph/facerec_borrowed.cpp:326:
undefined reference to `cv::Exception::Exception(int,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, int)'
/builddir/build/BUILD/digikam-4.7.0/x86_64-redhat-linux-gnu/extra/libkface/libkface/../../../../extra/libkface/libkface/recognition-opencv-lbph/facerec_borrowed.cpp:345:
undefined reference to `cv::Exception::Exception(int,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, int)'
CMakeFiles/kface.dir/recognition-opencv-lbph/facerec_borrowed.cpp.o:/usr/include/opencv2/core/mat.hpp:689:
more undefined references to `cv::Exception::Exception(int,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, int)' follow
CMakeFiles/kface.dir/recognition-opencv-lbph/facerec_borrowed.cpp.o:(.data.rel.ro._ZTVN10KFaceIface18LBPHFaceRecognizerE[_ZTVN10KFaceIface18LBPHFaceRecognizerE]+0x50):
undefined reference to
`cv::FaceRecognizer::save(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&) const'
CMakeFiles/kface.dir/recognition-opencv-lbph/facerec_borrowed.cpp.o:(.data.rel.ro._ZTVN10KFaceIface18LBPHFaceRecognizerE[_ZTVN10KFaceIface18LBPHFaceRecognizerE]+0x58):
undefined reference to
`cv::FaceRecognizer::load(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
extra/libkface/libkface/CMakeFiles/kface.dir/build.make:582: recipe for target
'lib/libkface.so' failed

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list