[Craft] [Bug 454941] Binary-factory : "RelWithDebInfo" OpenCV library targets not found while configuring digiKam.
https://bugs.kde.org/show_bug.cgi?id=454941 caulier.gil...@gmail.com changed: What|Removed |Added Resolution|--- |FIXED Status|REPORTED|RESOLVED Latest Commit||https://invent.kde.org/grap ||hics/digikam/commit/25166f3 ||73af66f822a1f44ac93b6734965 ||827148 --- Comment #10 from caulier.gil...@gmail.com --- Git commit 25166f373af66f822a1f44ac93b6734965827148 by Gilles Caulier. Committed on 13/06/2022 at 15:07. Pushed by cgilles into branch 'master'. We need to switch digiKam target as Release to detect OpenCV as RelWithDebInfo in not supported by OpenCV cmake shared config. event if rules are present and shared with client application: https://github.com/opencv/opencv/blob/4.x/cmake/templates/OpenCVConfig.cmake.in#L151 M +2-0CMakeLists.txt https://invent.kde.org/graphics/digikam/commit/25166f373af66f822a1f44ac93b6734965827148 -- You are receiving this mail because: You are watching all bug changes.
[Craft] [Bug 454941] Binary-factory : "RelWithDebInfo" OpenCV library targets not found while configuring digiKam.
https://bugs.kde.org/show_bug.cgi?id=454941 --- Comment #9 from caulier.gil...@gmail.com --- OpenCV do not compile due to a broken Contrib module "tracking" : 14:15:16 [459/495] Building CXX object modules\tracking\CMakeFiles\opencv_tracking.dir\src\tldTracker.cpp.obj 14:15:16 FAILED: modules/tracking/CMakeFiles/opencv_tracking.dir/src/tldTracker.cpp.obj 14:15:16 C:\PROGRA~2\MICROS~1\2019\PROFES~1\VC\Tools\MSVC\1429~1.300\bin\Hostx64\x64\cl.exe /nologo /TP -DCVAPI_EXPORTS -D_USE_MATH_DEFINES -D_VARIADIC_MAX=10 -D_WIN32_WINNT=0x0601 -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_\c4ae9eb\opencv_contrib-4.5.3\modules\tracking\src -IC:\_\c4ae9eb\opencv_contrib-4.5.3\modules\tracking\include -Imodules\tracking -IC:\_\16144dac\opencv-4.5.1\modules\core\include -IC:\_\16144dac\opencv-4.5.1\modules\flann\include -IC:\_\16144dac\opencv-4.5.1\modules\imgproc\include -IC:\_\c4ae9eb\opencv_contrib-4.5.3\modules\plot\include -IC:\_\16144dac\opencv-4.5.1\modules\dnn\include -IC:\_\16144dac\opencv-4.5.1\modules\features2d\include -IC:\_\16144dac\opencv-4.5.1\modules\calib3d\include -IC:\_\16144dac\opencv-4.5.1\modules\video\include -I. /DWIN32 /D_WINDOWS /W4 /GR /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /FS/EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4458 /MD /Zi /O2 /Ob1 /DNDEBUG /showIncludes /Fomodules\tracking\CMakeFiles\opencv_tracking.dir\src\tldTracker.cpp.obj /Fdlib\opencv_tracking451.pdb /FS -c C:\_\c4ae9eb\opencv_contrib-4.5.3\modules\tracking\src\tldTracker.cpp 14:15:16 C:\_\c4ae9eb\opencv_contrib-4.5.3\modules\tracking\include\opencv2/tracking/tracking_internals.hpp(18): fatal error C1083: Cannot open include file: 'opencv2/video/detail/tracking.detail.hpp': No such file or directory 14:15:16 [460/495] Building CXX object modules\tracking\CMakeFiles\opencv_tracking.dir\src\tracker.cpp.obj 14:15:16 FAILED: modules/tracking/CMakeFiles/opencv_tracking.dir/src/tracker.cpp.obj 14:15:16 C:\PROGRA~2\MICROS~1\2019\PROFES~1\VC\Tools\MSVC\1429~1.300\bin\Hostx64\x64\cl.exe /nologo /TP -DCVAPI_EXPORTS -D_USE_MATH_DEFINES -D_VARIADIC_MAX=10 -D_WIN32_WINNT=0x0601 -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_\c4ae9eb\opencv_contrib-4.5.3\modules\tracking\src -IC:\_\c4ae9eb\opencv_contrib-4.5.3\modules\tracking\include -Imodules\tracking -IC:\_\16144dac\opencv-4.5.1\modules\core\include -IC:\_\16144dac\opencv-4.5.1\modules\flann\include -IC:\_\16144dac\opencv-4.5.1\modules\imgproc\include -IC:\_\c4ae9eb\opencv_contrib-4.5.3\modules\plot\include -IC:\_\16144dac\opencv-4.5.1\modules\dnn\include -IC:\_\16144dac\opencv-4.5.1\modules\features2d\include -IC:\_\16144dac\opencv-4.5.1\modules\calib3d\include -IC:\_\16144dac\opencv-4.5.1\modules\video\include -I. /DWIN32 /D_WINDOWS /W4 /GR /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /FS/EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4458 /MD /Zi /O2 /Ob1 /DNDEBUG /showIncludes /Fomodules\tracking\CMakeFiles\opencv_tracking.dir\src\tracker.cpp.obj /Fdlib\opencv_tracking451.pdb /FS -c C:\_\c4ae9eb\opencv_contrib-4.5.3\modules\tracking\src\tracker.cpp 14:15:16 C:\_\c4ae9eb\opencv_contrib-4.5.3\modules\tracking\include\opencv2/tracking/tracking_internals.hpp(18): fatal error C1083: Cannot open include file: 'opencv2/video/detail/tracking.detail.hpp': No such file or directory 14:15:16 [461/495] Building CXX object modules\tracking\CMakeFiles\opencv_tracking.dir\src\tldEnsembleClassifier.cpp.obj 14:15:16 FAILED: modules/tracking/CMakeFiles/opencv_tracking.dir/src/tldEnsembleClassifier.cpp.obj 14:15:16 C:\PROGRA~2\MICROS~1\2019\PROFES~1\VC\Tools\MSVC\1429~1.300\bin\Hostx64\x64\cl.exe /nologo /TP -DCVAPI_EXPORTS -D_USE_MATH_DEFINES -D_VARIADIC_MAX=10 -D_WIN32_WINNT=0x0601 -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_\c4ae9eb\opencv_contrib-4.5.3\modules\tracking\src -IC:\_\c4ae9eb\opencv_contrib-4.5.3\modules\tracking\include -Imodules\tracking -IC:\_\16144dac\opencv-4.5.1\modules\core\include -IC:\_\16144dac\opencv-4.5.1\modules\flann\include -IC:\_\16144dac\opencv-4.5.1\modules\imgproc\include -IC:\_\c4ae9eb\opencv_contrib-4.5.3\modules\plot\include -IC:\_\16144dac\opencv-4.5.1\modules\dnn\include -IC:\_\16144dac\opencv-4.5.1\modules\features2d\include -IC:\_\16144dac\opencv-4.5.1\modules\calib3d\include -IC:\_\16144dac\opencv-4.5.1\modules\video\include -I. /DWIN32 /D_WINDOWS /W4 /GR /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /FS/EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4458 /MD /Zi /O2 /Ob1 /DNDEBUG /showIncludes /Fomodules\tracking\CMakeFiles\opencv_tracking.dir\src\tldEnsembleClassifier.cpp.obj /Fdlib\opencv_tracking451.pdb /FS -c
[Craft] [Bug 454941] Binary-factory : "RelWithDebInfo" OpenCV library targets not found while configuring digiKam.
https://bugs.kde.org/show_bug.cgi?id=454941 --- Comment #8 from caulier.gil...@gmail.com --- Hannah, I switched the digiKam binary factory to opencv 4.5.1 as the build factory. The MSVC target now compile OpenCV code before digiKam. This is the cmake configuration report from OpenCV: 14:13:28 -- General configuration for OpenCV 4.5.1 = 14:13:28 -- Version control: unknown 14:13:28 -- 14:13:28 -- Extra modules: 14:13:28 -- Location (extra): C:/_/c4ae9eb/opencv_contrib-4.5.3/modules 14:13:28 -- Version control (extra): unknown 14:13:28 -- 14:13:28 -- Platform: 14:13:28 -- Timestamp: 2022-06-12T12:13:28Z 14:13:28 -- Host:Windows 10.0.19043 AMD64 14:13:28 -- CMake: 3.19.2 14:13:28 -- CMake generator: Ninja 14:13:28 -- CMake build tool: C:/Craft/BinaryFactory/windows-msvc2019_64-cl/dev-utils/bin/ninja.exe 14:13:28 -- MSVC:1929 14:13:28 -- Configuration: RelWithDebInfo 14:13:28 -- 14:13:28 -- CPU/HW features: 14:13:28 -- Baseline:SSE SSE2 14:13:28 -- requested: SSE2 14:13:28 -- Dispatched code generation: 14:13:28 -- requested: SSE2 14:13:28 -- 14:13:28 -- C/C++: 14:13:28 -- Built as dynamic libs?: YES 14:13:28 -- C++ standard:11 14:13:28 -- C++ Compiler:C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe (ver 19.29.30038.1) 14:13:28 -- C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /FS/EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MD /O2 /Ob2 /DNDEBUG 14:13:29 -- C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /FS/EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MDd /Zi /Ob0 /Od /RTC1 14:13:29 -- C Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe 14:13:29 -- C flags (Release): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /FS /MD /O2 /Ob2 /DNDEBUG 14:13:29 -- C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /FS/MDd /Zi /Ob0 /Od /RTC1 14:13:29 -- Linker flags (Release): /machine:x64 /INCREMENTAL:NO 14:13:29 -- Linker flags (Debug):/machine:x64 /debug /INCREMENTAL 14:13:29 -- ccache: NO 14:13:29 -- Precompiled headers: NO 14:13:29 -- Extra dependencies: 14:13:29 -- 3rdparty dependencies: 14:13:29 -- 14:13:29 -- OpenCV modules: 14:13:29 -- To be built: calib3d core dnn features2d flann imgcodecs imgproc ml objdetect plot tracking video 14:13:29 -- Disabled:world 14:13:29 -- Disabled by dependency: aruco barcode bgsegm bioinspired ccalib datasets dnn_objdetect dnn_superres dpm face fuzzy gapi hdf hfs highgui img_hash intensity_transform java_bindings_generator js_bindings_generator line_descriptor mcc objc_bindings_generator optflow phase_unwrapping photo python_bindings_generator python_tests quality rapid reg rgbd saliency shape stereo stitching structured_light superres surface_matching text videoio videostab wechat_qrcode xfeatures2d ximgproc xobjdetect xphoto 14:13:29 -- Unavailable: alphamat cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv freetype java julia matlab ovis python2 python3 sfm ts viz 14:13:29 -- Applications:apps 14:13:29 -- Documentation: NO 14:13:29 -- Non-free algorithms: NO 14:13:29 -- 14:13:29 -- Windows RT support:NO 14:13:29 -- 14:13:29 -- GUI: 14:13:29 -- 14:13:29 -- Media I/O: 14:13:29 -- ZLib: C:/Craft/BinaryFactory/windows-msvc2019_64-cl/lib/zlib.lib (ver 1.2.12) 14:13:29 -- HDR: NO 14:13:29 -- SUNRASTER: NO 14:13:29 -- PXM: NO 14:13:29 -- PFM: YES 14:13:29 -- 14:13:29 -- Video I/O: 14:13:29 -- Media Foundation:YES 14:13:29 -- DXVA: YES 14:13:29 -- 14:13:29 -- Parallel framework:Concurrency 14:13:29 --
[Craft] [Bug 454941] Binary-factory : "RelWithDebInfo" OpenCV library targets not found while configuring digiKam.
https://bugs.kde.org/show_bug.cgi?id=454941 --- Comment #7 from caulier.gil...@gmail.com --- Git commit 72c688de498d2129180cb11b7b4b37782237292f by Gilles Caulier. Committed on 11/06/2022 at 17:47. Pushed by bcooksley into branch 'master'. Binary factory:swicth digiKam to opencv 4.5.1. M +1-0craft/enabled-projects.yaml https://invent.kde.org/sysadmin/binary-factory-tooling/commit/72c688de498d2129180cb11b7b4b37782237292f -- You are receiving this mail because: You are watching all bug changes.
[Craft] [Bug 454941] Binary-factory : "RelWithDebInfo" OpenCV library targets not found while configuring digiKam.
https://bugs.kde.org/show_bug.cgi?id=454941 --- Comment #6 from caulier.gil...@gmail.com --- Git commit 728eb9e533fd922b56ecb60f24fc953aa0427325 by Gilles Caulier. Committed on 11/06/2022 at 13:00. Pushed by cgilles into branch 'master'. force openCV 4.5.1 to try to build MSVC target under binary factory M +5-2extragear/digikam/digikam.py https://invent.kde.org/packaging/craft-blueprints-kde/commit/728eb9e533fd922b56ecb60f24fc953aa0427325 -- You are receiving this mail because: You are watching all bug changes.
[Craft] [Bug 454941] Binary-factory : "RelWithDebInfo" OpenCV library targets not found while configuring digiKam.
https://bugs.kde.org/show_bug.cgi?id=454941 --- Comment #5 from caulier.gil...@gmail.com --- Hi, If i compare more in deep the opencv differences between build factory and binary factory: - from build factory (MSVC) where digiKam code detect OpenCV: 06:22:55 -- Found OpenCV: C:/Craft/CI-Qt515/windows-msvc2019_64-cl-debug (found version "4.5.1") found components: core objdetect imgproc imgcodecs dnn flann 06:22:55 -- OpenCV Root directory is: C:/Craft/CI-Qt515/windows-msvc2019_64-cl-debug/lib/cmake/opencv4 06:22:55 -- OpenCV: Found version 4.5.1 (required: 3.3.0) 06:22:55 -- OpenCV headers: C:/Craft/CI-Qt515/windows-msvc2019_64-cl-debug/include/opencv4 06:22:55 -- OpenCV libs : opencv_core;opencv_objdetect;opencv_imgproc;opencv_imgcodecs;opencv_dnn;opencv_flann - from the binary factory (MSVC) where digiKam code DO NOT detect OpenCV: 11:12:30 -- Found OpenCV: C:/Craft/BinaryFactory/windows-msvc2019_64-cl (found version "4.5.3") found components: core objdetect imgproc imgcodecs dnn flann 11:12:30 -- OpenCV Root directory is: C:/Craft/BinaryFactory/windows-msvc2019_64-cl/lib/cmake/opencv4 11:12:30 -- OpenCV: Found version 4.5.3 (required: 3.3.0) 11:12:30 -- OpenCV headers: C:/Craft/BinaryFactory/windows-msvc2019_64-cl/include/opencv4 11:12:30 -- OpenCV libs : opencv_core;opencv_objdetect;opencv_imgproc;opencv_imgcodecs;opencv_dnn;opencv_flann - from the binary factory (MinGW) where digiKam code detect OpenCV: 03:19:26 -- Found OpenCV: C:/Craft/BinaryFactory/windows-mingw_64-gcc (found version "4.5.3") found components: core objdetect imgproc imgcodecs dnn flann 03:19:26 -- OpenCV Root directory is: C:/Craft/BinaryFactory/windows-mingw_64-gcc/lib/cmake/opencv4 03:19:26 -- OpenCV: Found version 4.5.3 (required: 3.3.0) 03:19:26 -- OpenCV headers: C:/Craft/BinaryFactory/windows-mingw_64-gcc/include/opencv4 03:19:26 -- OpenCV libs : opencv_core;opencv_objdetect;opencv_imgproc;opencv_imgcodecs;opencv_dnn;opencv_flann So: - build factory MSVC : opencv 4.5.1 with debug symbols -> OK. - binary factory MSVC : opencv 4.5.3 with no debug symbol -> DO NOT WORK. - binary factory Mingw : opencv 4.5.3 with no debug symbol -> OK. It sound like the MSVC compiled version of opencv 4.5.3 is not well installed Best Gilles Caulier -- You are receiving this mail because: You are watching all bug changes.
[Craft] [Bug 454941] Binary-factory : "RelWithDebInfo" OpenCV library targets not found while configuring digiKam.
https://bugs.kde.org/show_bug.cgi?id=454941 --- Comment #4 from caulier.gil...@gmail.com --- Hannah, The problem come from certainly OPenCV config cmake script installed on the computer. See this issue : https://github.com/opencv/opencv/issues/10105 This want mean that only Release and Debug target are supported by OPenCV not RelWithDebInfo. The OpenCV from Binary-Factory must be re-installed as Release target to fix this issue. Gilles -- You are receiving this mail because: You are watching all bug changes.
[Craft] [Bug 454941] Binary-factory : "RelWithDebInfo" OpenCV library targets not found while configuring digiKam.
https://bugs.kde.org/show_bug.cgi?id=454941 --- Comment #3 from caulier.gil...@gmail.com --- Hannah, I think a partial response can be found here : https://discourse.cmake.org/t/imported-implib-not-set-for-imported-target/5398/3 What do you suggest to detect opencv debug files ? Gilles -- You are receiving this mail because: You are watching all bug changes.
[Craft] [Bug 454941] Binary-factory : "RelWithDebInfo" OpenCV library targets not found while configuring digiKam.
https://bugs.kde.org/show_bug.cgi?id=454941 --- Comment #2 from caulier.gil...@gmail.com --- Hi Hannah, Did you mean that the problem can be located into the digiKam cmake scripts to detect opencv ? Files are located here : - main opencv rules : https://invent.kde.org/graphics/digikam/-/blob/master/core/cmake/rules/RulesLibOpenCV.cmake - opencv detection macro : https://invent.kde.org/graphics/digikam/-/blob/master/core/cmake/macros/MacroOpenCV.cmake Nothing more. code is simple and robust since a while. This dysfunction is strange as this code work as expected with Craft for the build.kde.org server and the MSVC target: https://build.kde.org/job/Extragear/job/digikam/job/kf5-qt5%20WindowsMSVCQt5.15/ Best Gilles -- You are receiving this mail because: You are watching all bug changes.
[Craft] [Bug 454941] Binary-factory : "RelWithDebInfo" OpenCV library targets not found while configuring digiKam.
https://bugs.kde.org/show_bug.cgi?id=454941 --- Comment #1 from Hannah von Reth --- Its found but broken. from that log: ``` [2022-06-06T16:59:22.766Z] -- Found OpenCV: C:/Craft/BinaryFactory/windows-msvc2019_64-cl (found version "4.5.3") found components: core objdetect imgproc imgcodecs dnn flann [2022-06-06T16:59:22.766Z] -- OpenCV Root directory is: C:/Craft/BinaryFactory/windows-msvc2019_64-cl/lib/cmake/opencv4 [2022-06-06T16:59:22.766Z] -- OpenCV: Found version 4.5.3 (required: 3.3.0) [2022-06-06T16:59:22.766Z] -- OpenCV headers: C:/Craft/BinaryFactory/windows-msvc2019_64-cl/include/opencv4 [2022-06-06T16:59:22.766Z] -- OpenCV libs : opencv_core;opencv_objdetect;opencv_imgproc;opencv_imgcodecs;opencv_dnn;opencv_flann -- You are receiving this mail because: You are watching all bug changes.
[Craft] [Bug 454941] Binary-factory : "RelWithDebInfo" OpenCV library targets not found while configuring digiKam.
https://bugs.kde.org/show_bug.cgi?id=454941 caulier.gil...@gmail.com changed: What|Removed |Added Blocks||398582 Referenced Bugs: https://bugs.kde.org/show_bug.cgi?id=398582 [Bug 398582] Notarization of Windows Installer as Windows Store package - Use Craft Continuous Deployment System. -- You are receiving this mail because: You are watching all bug changes.
[Craft] [Bug 454941] Binary-factory : "RelWithDebInfo" OpenCV library targets not found while configuring digiKam.
https://bugs.kde.org/show_bug.cgi?id=454941 caulier.gil...@gmail.com changed: What|Removed |Added CC||metzping...@gmail.com -- You are receiving this mail because: You are watching all bug changes.