[Digikam-devel] [digikam] [Bug 357466] New: When compiling with tests undefined reference to `DIGIKAM_FACESENGINE_LOG()

Kristian Karl via KDE Bugzilla bugzilla_noreply at kde.org
Sun Jan 3 11:52:13 GMT 2016


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

            Bug ID: 357466
           Summary: When compiling with tests undefined reference to
                    `DIGIKAM_FACESENGINE_LOG()
           Product: digikam
           Version: 5.0.0
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Faces-Engine
          Assignee: digikam-devel at kde.org
          Reporter: kristian.hermann.karl at gmail.com

Created attachment 96425
  --> https://bugs.kde.org/attachment.cgi?id=96425&action=edit
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.

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



More information about the Digikam-devel mailing list