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

--- Comment #46 from caulier.gil...@gmail.com ---
Hi Jaroslav,

I applied all your patches in git/master. Next digiKam 7.6.0 will support
officially Gphoto2 under Windows... but, no Gphoto2 camera driver is listed in
setup dialog if i want to select one manually.

https://i.imgur.com/vVLZFDf.png

On debugView, the trace indicate that code is properly compiled with libgphoto2
API but not driver is available :

[3700] digikam.import: Number of cameras supported: 0
[3700] digikam.import: Number of ports supported: 0

This trace come from this code :

https://invent.kde.org/graphics/digikam/-/blob/master/core/utilities/import/backend/gpcamera.cpp#L1691
https://invent.kde.org/graphics/digikam/-/blob/master/core/utilities/import/backend/gpcamera.cpp#L1738

This want mean that libgphoto2 drivers dlls are not loaded by Gphoto2 at
startup. These dlls are located here under windows :

https://i.imgur.com/BbQ0LPA.png

These paths are right as under MXE, libgphoto2 has a patch to force the
location of these directories as relative of executable :

https://github.com/mxe/mxe/blob/master/src/libgphoto2-2.patch#L50
https://github.com/mxe/mxe/blob/master/src/libgphoto2-2.patch#L87

In fact CAMLIBS and IOLIBS env.variables are overwritten in source code. I
think this kind of rules is fine.

The Q is : why the dll drivers are not listed in the setup camera list as under
Linux ?

https://i.imgur.com/HhMCumx.png

Note: The problem is exactly the same under MacOS :

https://i.imgur.com/JG5hV7g.png

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to