Bug 501236 - OpenCV Not Detecting CUDA GPU In Latest 8.6 Weekly Build
Summary: OpenCV Not Detecting CUDA GPU In Latest 8.6 Weekly Build
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Engine (other bugs)
Version First Reported In: 8.6.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-08 19:11 UTC by kdebugs
Modified: 2025-04-25 14:43 UTC (History)
4 users (show)

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


Attachments
Component Infos from digiKam-8.6.0-20250118T140205-Qt6-Win64 and digiKam-8.6.0-20250308T140208-Qt6-Win64 (47.54 KB, text/plain)
2025-03-08 19:12 UTC, kdebugs
Details
Intel 620 's openCL support is properly detected as well (23.36 KB, image/png)
2025-04-11 15:59 UTC, Ilgaz Öcal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kdebugs 2025-03-08 19:11:52 UTC
SUMMARY
8.5.0 properly detects and uses my GPU (Nvidia RTX 3070) for OpenCV
Also working is digiKam-8.6.0-20250118T140205-Qt6-Win64
The currently weekly does not: digiKam-8.6.0-20250308T140208-Qt6-Win64


STEPS TO REPRODUCE
1. Install the named versions
2. Check "Help > Components Information > OpenCV Configuration"


OBSERVED RESULT
In working versions, it shows an OpenCL Platform of "NVIDIA CUDA"


EXPECTED RESULT
OpenCL working in current weekly.


SOFTWARE/OS VERSIONS
OS Name             : Microsoft Windows 10 Pro
OS Version          : 10.0.19045 N/A Build 19045
OS Manufacturer     : Microsoft Corporation
OS Configuration    : Standalone Workstation
OS Build Type       : Multiprocessor Free
System Boot Time    : 3/8/2025, 12:04:33 PM
System Manufacturer : ASUS
System Model        : System Product Name
System Type         : x64-based PC
System Directory    : C:\Windows\system32
System Locale       : en-us;English (United States)
Hotfix(s)           : 13 Hotfix(s) Installed.,[01]: KB5049621,[02]: KB5042056,[03]: KB5011048,[04]: KB5015684,[05]:
                      KB5033052,[06]: KB5051974,[07]: KB5014032,[08]: KB5025315,[09]: KB5043935,[10]: KB5043130,[11]:
                      KB5046823,[12]: KB5050388,[13]: KB5050111


ADDITIONAL INFORMATION
Component info from two 8.6 builds attached so as not to make this message super long.
Comment 1 kdebugs 2025-03-08 19:12:43 UTC
Created attachment 179235 [details]
Component Infos from digiKam-8.6.0-20250118T140205-Qt6-Win64 and digiKam-8.6.0-20250308T140208-Qt6-Win64

Attachment to initial submission failed. Reattaching here.
Comment 2 Maik Qualmann 2025-03-08 19:27:54 UTC
The OpenCL enabled logic was changed some time ago. Make sure that you have enabled OpenCL
in the digiKam setup under Miscellaneous-> System.

Maik
Comment 3 kdebugs 2025-03-08 19:38:20 UTC
(In reply to Maik Qualmann from comment #2)
> The OpenCL enabled logic was changed some time ago. Make sure that you have
> enabled OpenCL
> in the digiKam setup under Miscellaneous-> System.
> 
> Maik

Sorry, I should have noted that I did ensure it was enabled in all three of the versions I tested.
Comment 4 Maik Qualmann 2025-03-08 20:12:31 UTC
@Gilles, since openCV-4.9.0 we have to enable [opencl] as an option for vcpkg, probably also [cuda] and [dnn] and [dnn-cuda].

The question is, do we still do it for digiKam-8.6.0 or do we only do it for the upcoming 8.7.0?

Maik
Comment 5 caulier.gilles 2025-03-08 20:26:21 UTC
Hi Maik,

OpenCV is updated to 4.10 now in VCPKG. So for 8.7.0 we will update to this version as well.

https://vcpkg.io/en/package/opencv

For your Q, i don't know. We will see after the OpenCV update.

Best

Gilles
Comment 6 caulier.gilles 2025-03-08 20:28:43 UTC
Maik,

Look the "Features" tab from https://vcpkg.io/en/package/opencv option enabled or not by default are listed.

Best

Gilles Caulier
Comment 7 Maik Qualmann 2025-03-08 20:45:42 UTC
In openCV-4.8.0 openCL was activated by default, from openCV-4.9.0 there is a configuration option and this is deactivated by default. We are already using openCV-4.10, so we have to activate openCL.

Maik
Comment 8 Maik Qualmann 2025-03-09 07:03:11 UTC
Git commit 443bd31cd5f9babda87f7da46dae3701492cd7a8 by Maik Qualmann.
Committed on 09/03/2025 at 07:02.
Pushed by mqualmann into branch 'master'.

enable opencl in the vcpkg build

M  +1    -1    project/bundles/vcpkg/01-build-vcpkg.sh

https://invent.kde.org/graphics/digikam/-/commit/443bd31cd5f9babda87f7da46dae3701492cd7a8
Comment 9 kdebugs 2025-03-12 13:37:53 UTC
Hi gents,

The latest build, digiKam-8.6.0-20250312T100200-Qt6-Win64.exe, still shows a "No" for "OpenCL Availability".  I can attach the full Component Info if it'd be helpful.

(I'm working under the assumption that the patch to enable opencl in the vcpkg build would make it to the builds at https://files.kde.org/digikam/ )

Cheers, and thanks for all you do
Comment 10 caulier.gilles 2025-03-12 14:02:00 UTC
yes, the VCPKG build of opencv package need to be run again to take effect.
Comment 11 kdebugs 2025-04-09 01:35:38 UTC
Hi again! I built git rev c409c079115e92b819b374b813d3a3091b90ca1b after patches related to this were committed and confirmed OpenCL was working properly with my RTX 3070. I just installed the stable release of 8.6 and it still is not, though. (OpenCL availability is still "No" in component info.) The 2025/04/08 prerelease of 8.7 also shows no OpenCL availability.
Comment 12 caulier.gilles 2025-04-09 03:34:33 UTC
The VCPKG build of 8.7.0 pre-release was not yet rebuild from scratch. I will do it soon, including the last opencv build rules introduced by Maik.

Gilles Caulier
Comment 13 caulier.gilles 2025-04-09 04:34:48 UTC
The Qt5 and Qt6 8.7.0 pre-release installers for Windows are started to build few minutes ago. If all compile fine, files will be available this evening...
Comment 14 caulier.gilles 2025-04-10 05:35:55 UTC
Hi

Good news : the Qt5 and Qt6 build + Opencv with CUDA support are ready on the both Win10 WM. This has required to install the NVIDIA CUDA DNN SDK on both VM.

Bad news: kimageformat Qt5 and Qt6 do not pass. It's the same error. I don't yet investigated in-deep. The compilation trace is this one :

MSBuild version 17.12.12+1cce77968 for .NET Framework

  Creating directories for 'ext_kimageformats'
  Building Custom Rule C:/Users/gilles/Documents/digikam/project/bundles/3rdparty/ext_kf6/CMakeLists.txt
  Performing download step (git clone) for 'ext_kimageformats'
  Cloning into 'ext_kimageformats'...
  HEAD is now at a33446f Use of heif_context_add_XMP_metadata instead heif_context_add_XMP_metadata2
  No update step for 'ext_kimageformats'
  No patch step for 'ext_kimageformats'
  Performing configure step for 'ext_kimageformats'
  -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
  -- The C compiler identification is MSVC 19.42.34436.0
  -- The CXX compiler identification is MSVC 19.42.34436.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  --

  -- Installing in the same prefix as Qt, adopting their path scheme.
  -- Performing Test HAVE_STDATOMIC
  -- Performing Test HAVE_STDATOMIC - Success
  -- Found WrapAtomic: TRUE
  -- Looking for __GLIBC__
  -- Looking for __GLIBC__ - not found
  fatal: HEAD does not point to a branch
  -- Found PkgConfig: E:/dk/x64-windows/tools/pkgconf/pkgconf.exe (found version "2.4.3")
  -- Checking for module 'libjxl>=0.9.4'
  --   Found libjxl, version 0.11.1
  -- Checking for module 'libjxl_threads>=0.9.4'
  --   Found libjxl_threads, version 0.11.1
  -- Checking for module 'libjxl_cms>=0.9.4'
  --   Found libjxl_cms, version 0.11.1
  -- Checking for module 'libraw'
  --   Package 'libraw' not found
  -- Checking for module 'libraw_r'
  --   Package 'libraw_r' not found
  -- Could NOT find LibRaw (missing: LibRaw_LIBRARIES LibRaw_INCLUDE_DIR) (Required is at least version "0.20.2")
  -- The following features have been enabled:

   * LibJXL, required for the QImage plugin for JPEG XL images
   * OpenJPEG, required for the QImage plugin for JPEG 2000 images

  -- The following OPTIONAL packages have been found:

   * Qt6GuiTools (required version >= 6.8.3)
   * Qt6CoreTools (required version >= 6.8.3)
   * Qt6Core (required version >= 6.6.0)
   * KF6Archive (required version >= 6.12.0)
     Required for the QImage plugin for Krita and OpenRaster images
   * libavif (required version >= 1)
     Required for the QImage plugin for AVIF images
   * OpenJPEG, required for the QImage plugin for JPEG 2000 images
   * PkgConfig

  -- The following REQUIRED packages have been found:

   * ECM (required version >= 6.12.0), Extra CMake Modules., <https://commits.kde.org/extra-cmake-modules>
   * Qt6Gui (required version >= 6.6.0)

  -- The following features have been disabled:

   * LibHeif, required for the QImage plugin for HEIF/HEIC images
   * LibJXR, required for the QImage plugin for JPEG XR images

  -- The following OPTIONAL packages have not been found:

   * LibRaw (required version >= 0.20.2)
     Required for the QImage plugin for RAW images

  -- Configuring done (13.0s)
  -- Generating done (0.3s)
CUSTOMBUILD : CMake warning :  [E:\b\dk_cmake\ext_kf6\ext_kimageformats.vcxproj]
    Manually-specified variables were not used by the project:

      BUILD_WITH_QT6


  -- Build files have been written to: E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build
  Performing build step for 'ext_kimageformats'
  MSBuild version 17.12.12+1cce77968 for .NET Framework

    1>Checking Build System
    1>Automatic MOC for target kimg_ani
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_ani
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_ani
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    ani.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_ani.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_ani.exp
    kimg_ani.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_ani.dll
    1>Automatic MOC for target kimg_avif
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_avif
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_avif
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    avif.cpp
    microexif.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_avif.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_avif.exp
    kimg_avif.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_avif.dll
    1>Automatic MOC for target kimg_dds
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_dds
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_dds
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    dds.cpp
    scanlineconverter.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_dds.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_dds.exp
    kimg_dds.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_dds.dll
    1>Automatic MOC for target kimg_exr
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_exr
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_exr
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    exr.cpp
    scanlineconverter.cpp
    mocs_compilation_RelWithDebInfo.cpp
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_exr.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_exr.exp
    kimg_exr.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_exr.dll
    1>Automatic MOC for target kimg_hdr
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_hdr
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_hdr
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    hdr.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_hdr.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_hdr.exp
    kimg_hdr.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_hdr.dll
    1>Automatic MOC for target kimg_jp2
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_jp2
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_jp2
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    jp2.cpp
    scanlineconverter.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_jp2.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_jp2.exp
    kimg_jp2.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_jp2.dll
    1>Automatic MOC for target kimg_jxl
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_jxl
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_jxl
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    jxl.cpp
    microexif.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
LINK : fatal error LNK1104: cannot open file 'm.lib' [E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\src\imageformats\kimg_jxl.vcxproj] [E:\b\dk_cmake\ext_kf6\ext_kimageformats.vcxproj]
    1>Automatic MOC for target kimg_kra
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_kra
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_kra
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    kra.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_kra.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_kra.exp
    kimg_kra.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_kra.dll
    1>Automatic MOC for target kimg_ora
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_ora
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_ora
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    ora.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_ora.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_ora.exp
    kimg_ora.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_ora.dll
    1>Automatic MOC for target kimg_pcx
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_pcx
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_pcx
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    pcx.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_pcx.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_pcx.exp
    kimg_pcx.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_pcx.dll
    1>Automatic MOC for target kimg_pfm
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_pfm
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_pfm
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    pfm.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_pfm.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_pfm.exp
    kimg_pfm.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_pfm.dll
    1>Automatic MOC for target kimg_pic
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_pic
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_pic
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    pic.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_pic.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_pic.exp
    kimg_pic.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_pic.dll
    1>Automatic MOC for target kimg_psd
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_psd
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_psd
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    psd.cpp
    microexif.cpp
    scanlineconverter.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_psd.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_psd.exp
    kimg_psd.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_psd.dll
    1>Automatic MOC for target kimg_pxr
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_pxr
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_pxr
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    pxr.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_pxr.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_pxr.exp
    kimg_pxr.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_pxr.dll
    1>Automatic MOC for target kimg_qoi
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_qoi
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_qoi
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    qoi.cpp
    scanlineconverter.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_qoi.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_qoi.exp
    kimg_qoi.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_qoi.dll
    1>Automatic MOC for target kimg_ras
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_ras
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_ras
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    ras.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_ras.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_ras.exp
    kimg_ras.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_ras.dll
    1>Automatic MOC for target kimg_rgb
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_rgb
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_rgb
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    rgb.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_rgb.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_rgb.exp
    kimg_rgb.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_rgb.dll
    1>Automatic MOC for target kimg_sct
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_sct
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_sct
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    sct.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_sct.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_sct.exp
    kimg_sct.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_sct.dll
    1>Automatic MOC for target kimg_tga
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_tga
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_tga
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    tga.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_tga.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_tga.exp
    kimg_tga.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_tga.dll
    1>Automatic MOC for target kimg_xcf
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running AUTOMOC file extraction for target kimg_xcf
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    Running moc --collect-json for target kimg_xcf
    Building Custom Rule E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats/src/imageformats/CMakeLists.txt
    xcf.cpp
    mocs_compilation_RelWithDebInfo.cpp
    Generating Code...
       Creating library E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_xcf.lib and object E:/b/dk_cmake/ext_kf6/ext_kimageformats-prefix/src/ext_kimageformats-build/lib/RelWithDebInfo/kimg_xcf.exp
    kimg_xcf.vcxproj -> E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\bin\imageformats\RelWithDebInfo\kimg_xcf.dll
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'E:\b\dk_cmake\CMakeFiles\5c4d4fe0c744f4445cf5b5abb83e7e5a\ext_kimageformats-mkdir.rule;E:\b\dk_cmake\CMakeFiles\5c4d4fe0c744f4445cf5b5abb83e7e5a\ext_kimageformats-download.rule;E:\b\dk_cmake\CMakeFiles\5c4d4fe0c744f4445cf5b5abb83e7e5a\ext_kimageformats-update.rule;E:\b\dk_cmake\CMakeFiles\5c4d4fe0c744f4445cf5b5abb83e7e5a\ext_kimageformats-patch.rule;E:\b\dk_cmake\CMakeFiles\5c4d4fe0c744f4445cf5b5abb83e7e5a\ext_kimageformats-configure.rule;E:\b\dk_cmake\CMakeFiles\5c4d4fe0c744f4445cf5b5abb83e7e5a\ext_kimageformats-build.rule;E:\b\dk_cmake\CMakeFiles\5c4d4fe0c744f4445cf5b5abb83e7e5a\ext_kimageformats-install.rule;E:\b\dk_cmake\CMakeFiles\a320397c9c3dec048511d453bf6ab1a2\ext_kimageformats-complete.rule;E:\b\dk_cmake\CMakeFiles\a48d5caa89e7450e32324eb8aab4b3f8\ext_kimageformats.rule;C:\Users\gilles\Documents\digikam\project\bundles\3rdparty\ext_kf6\CMakeLists.txt' exited with code 1. [E:\b\dk_cmake\ext_kf6\ext_kimageformats.vcxproj]
FAILED COMMAND: cmake --build . --parallel --config RelWithDebInfo --target ext_kimageformats

gilles@Win10 MINGW64 ~/Documents/digikam/project/bundles/vcpkg (master)

Note : The VCPKG installs are fully done from scratch. This want mean that all low level dependencies are up-to-date, especially openexr and jpegxl libraries. Perhaps the problem come from that...

Best

Gilles Caulier
Comment 15 caulier.gilles 2025-04-10 05:38:44 UTC
Found the problem :

LINK : fatal error LNK1104: cannot open file 'm.lib' [E:\b\dk_cmake\ext_kf6\ext_kimageformats-prefix\src\ext_kimageformats-build\src\imageformats\kimg_jxl.vcxproj] [E:\b\dk_cmake\ext_kf6\ext_kimageformats.vcxproj]

m.lib is the math library... under Linux, not under Windows. There is probably a mess in the cmalekists.txt somewhere in kimageformat module.

Gilles
Comment 16 Maik Qualmann 2025-04-10 08:24:44 UTC
*** Bug 502636 has been marked as a duplicate of this bug. ***
Comment 17 caulier.gilles 2025-04-11 08:53:25 UTC
The VCPKG UPSTREAM bug :  https://github.com/microsoft/vcpkg/issues/44979

digiKam compile now using patched described in the VCPKG issue.
Comment 18 caulier.gilles 2025-04-11 09:54:55 UTC
The Qt5 and Qt6 8.7.0 pre-release installers for Windows are now online with the OpenCV compiled with the NVIDIA OpenCL DNN API.
It's ready to test.

Maik : note about the NVIDIA API: VCPKG ask to install 2 proprietary API packages from NVIDIA to compile OpenCV with the new options : OpenCL + OpenCL-DNN. After this install OpenCV compilation pass fine.

Best

Gilles
Comment 19 Maik Qualmann 2025-04-11 10:58:26 UTC
Hi Gilles,

The Windows Qt6 bundle does not start, 2 missing DLL files are reported, cublas64_12.dll and cudnn64_9.dll.

Maik
Comment 20 caulier.gilles 2025-04-11 11:20:12 UTC
Thanks Maik i will includes these files now.

Gilles
Comment 21 caulier.gilles 2025-04-11 11:51:11 UTC
Git commit f0ac5831d8037c7563c7f49312901a93358a96ce by Gilles Caulier.
Committed on 11/04/2025 at 11:50.
Pushed by cgilles into branch 'master'.

start to copy CUDA toolkits dlls on the Windows installer

M  +28   -0    project/bundles/vcpkg/04-build-installer.sh

https://invent.kde.org/graphics/digikam/-/commit/f0ac5831d8037c7563c7f49312901a93358a96ce
Comment 22 caulier.gilles 2025-04-11 14:02:06 UTC
Git commit 7dca8e481762870c3030c31dd399464127d6f21e by Gilles Caulier.
Committed on 11/04/2025 at 14:01.
Pushed by cgilles into branch 'master'.

fix CUDA dlls integration in the installers

M  +6    -4    project/bundles/vcpkg/04-build-installer.sh

https://invent.kde.org/graphics/digikam/-/commit/7dca8e481762870c3030c31dd399464127d6f21e
Comment 23 caulier.gilles 2025-04-11 14:20:27 UTC
Git commit 05ec0f0b1ceb131e59bf6714ee64f0fb50e69bbf by Gilles Caulier.
Committed on 11/04/2025 at 14:19.
Pushed by cgilles into branch 'master'.

another missing dll

M  +1    -0    project/bundles/vcpkg/04-build-installer.sh

https://invent.kde.org/graphics/digikam/-/commit/05ec0f0b1ceb131e59bf6714ee64f0fb50e69bbf
Comment 24 caulier.gilles 2025-04-11 14:51:54 UTC
With my last commit, the Windows Qt6 non debug installer for digiKam 8.7.0 start properly now.

Gilles Caulier
Comment 25 caulier.gilles 2025-04-11 14:59:57 UTC
Screenshot : https://i.imgur.com/TVIbRR0.jpg

My WIN10 computer do not have a NVIDIA card, it's an old Laptop, so not opencv.

Best

Gilles Caulier
Comment 26 Ilgaz Öcal 2025-04-11 15:59:11 UTC
Created attachment 180178 [details]
Intel 620 's openCL support is properly detected as well
Comment 27 caulier.gilles 2025-04-11 16:01:32 UTC
Great thanks you for your feedback. I close the Intel GPU opencl report now...
Comment 28 caulier.gilles 2025-04-14 18:16:04 UTC
This have been confirmed by Ron Summers on the users mailing list today : bug is fixed
Comment 29 caulier.gilles 2025-04-16 06:17:09 UTC
Git commit e8c2fb37819058af330258b4650e046cac84882f by Gilles Caulier.
Committed on 16/04/2025 at 06:13.
Pushed by cgilles into branch 'master'.

NVIDIA toolkit dlls are not redistributable and cannot be included in the digiKam Windows installer.
These toolkits must be installed separatly by the user on the target computer.
Add a release notes section about the AI CUDA support in digiKam with the relevant instructions to turn on
NVIDIA GPU / OpenCL support in digiKam.

M  +0    -31   project/bundles/vcpkg/04-build-installer.sh
M  +9    -0    project/bundles/vcpkg/data/releasenotes.html

https://invent.kde.org/graphics/digikam/-/commit/e8c2fb37819058af330258b4650e046cac84882f
Comment 30 caulier.gilles 2025-04-16 07:20:15 UTC
Git commit 64bc6391143a458a876e9d6e7bc3f048dfb33354 by Gilles Caulier.
Committed on 16/04/2025 at 07:18.
Pushed by cgilles into branch 'master'.

Add notice to the online documentation about the NVIDIA toolkits to download under Windows for the CUDA acceleration and the artificial Intelligence engine.

M  +10   -1    getting_started/quick_start.rst

https://invent.kde.org/documentation/digikam-doc/-/commit/64bc6391143a458a876e9d6e7bc3f048dfb33354
Comment 31 caulier.gilles 2025-04-16 07:59:03 UTC
Git commit 1c185502529bfddcfea608b548483cc56058e209 by Gilles Caulier.
Committed on 16/04/2025 at 07:57.
Pushed by cgilles into branch 'master'.

more details about OpenCL support in the minimum System Requirements section of the online documentation

M  +1    -1    getting_started/installation.rst
M  +2    -2    getting_started/quick_start.rst

https://invent.kde.org/documentation/digikam-doc/-/commit/1c185502529bfddcfea608b548483cc56058e209
Comment 32 Seph 2025-04-25 14:43:04 UTC
Thank you! I was starting to type out a bug report when I found this. I'm running digiKam-8.7.0-20250425T130207-Qt6-Win64 and it is finally detecting my dGPU. Thanks for fixing the problem, you guys rock!