Bug 357466 - Compile time error: undefined reference to DIGIKAM_FACESENGINE_LOG()
Summary: Compile time error: undefined reference to DIGIKAM_FACESENGINE_LOG()
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Compilation (show other bugs)
Version: 5.0.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-03 11:52 UTC by Kristian Karl
Modified: 2017-08-19 20:58 UTC (History)
0 users

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


Attachments
Patch (774 bytes, patch)
2016-01-03 11:52 UTC, Kristian Karl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kristian Karl 2016-01-03 11:52:13 UTC
Created attachment 96425 [details]
Patch

When compiling digikam with tests enabled, -DBUILD_TESTING=ON 

:
:
[100%] Built target digikam
[100%] [100%] Built target testdatabase
[100%] Built target IOJobsTest
Built target renamecustomizertest
[100%] Built target databasefieldstest
[100%] Built target albummodeltest
../../libs/facesengine/libdigikamfacesengine.a(facedetector.cpp.o): In function `FacesEngine::FaceDetector::detectFaces(QImage const&, QSize const&)':
/home/krikar/dev/kde/digikam/core/libs/facesengine/facedetector.cpp:166: undefined reference to `DIGIKAM_FACESENGINE_LOG()'
/home/krikar/dev/kde/digikam/core/libs/facesengine/facedetector.cpp:166: undefined reference to `DIGIKAM_FACESENGINE_LOG()'
/home/krikar/dev/kde/digikam/core/libs/facesengine/facedetector.cpp:170: undefined reference to `DIGIKAM_FACESENGINE_LOG()'
/home/krikar/dev/kde/digikam/core/libs/facesengine/facedetector.cpp:170: undefined reference to `DIGIKAM_FACESENGINE_LOG()'
../../libs/facesengine/libdigikamfacesengine.a(facedetector.cpp.o): In function `FacesEngine::FaceDetector::Private::backend()':
/home/krikar/dev/kde/digikam/core/libs/facesengine/facedetector.cpp:65: undefined reference to `DIGIKAM_FACESENGINE_LOG()'
../../libs/facesengine/libdigikamfacesengine.a(facedetector.cpp.o):/home/krikar/dev/kde/digikam/core/libs/facesengine/facedetector.cpp:65: more undefined references to `DIGIKAM_FACESENGINE_LOG()' follow
collect2: error: ld returned 1 exit status
core/tests/facesengine/CMakeFiles/detect.dir/build.make:133: recipe for target 'core/tests/facesengine/detect' failed
make[2]: *** [core/tests/facesengine/detect] Error 1
CMakeFiles/Makefile2:13265: recipe for target 'core/tests/facesengine/CMakeFiles/detect.dir/all' failed
make[1]: *** [core/tests/facesengine/CMakeFiles/detect.dir/all] Error 2
Makefile:126: recipe for target 'all' failed
make: *** [all] Error 2


Applying attached patch will fix the linking problem.
Comment 1 caulier.gilles 2016-01-03 12:11:50 UTC
Git commit 96b8574419fefa0feb3082f75e091167ac9565ce by Gilles Caulier.
Committed on 03/01/2016 at 12:10.
Pushed by cgilles into branch 'master'.

apply patch #96425
FIXED-IN: 5.0.0

M  +6    -0    tests/facesengine/CMakeLists.txt

http://commits.kde.org/digikam/96b8574419fefa0feb3082f75e091167ac9565ce