Bug 486632 - Camera is never detected using bundled gphoto2 libraries
Summary: Camera is never detected using bundled gphoto2 libraries
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Gphoto2 (show other bugs)
Version: 8.3.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-05 17:41 UTC by Ashley SMITH
Modified: 2024-10-06 11:51 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ashley SMITH 2024-05-05 17:41:52 UTC
SUMMARY
The gphoto2 libraries packaged with the MacOS version of DIgiKam do not allow the auto detection of my Canon EOS 7D camera.  When I install the gphoto2 and libgphoto2 packages using brew, then create symlinks under the DigiKam installation directory, I am then able to auto detect my camera correctly.  I've had this problem for the last years and have only just found a solution.

STEPS TO REPRODUCE
1. Install DigiKam using the sources available in DMG format and setup
2. Connect the Canon EOS 7D camera using a USB cable
3. Go to the Cameras preference and click Auto-Detect

OBSERVED RESULT
An error message is displayed that no cameras can be detected

EXPECTED RESULT
A Canon EOS 7D should be detected connected to the USB port

SOFTWARE/OS VERSIONS
macOS: Ventura 13.6.6

ADDITIONAL INFORMATION
Installing the same versions of gphoto2 and libgphoto2 and then symlinking the packaged directories and dylib files to the ones installed by brew allows the camera to be detected correctly.

Below are the symlinks created under /Applications/digiKam.org/digikam.app/Contents/lib:
libgphoto2 -> /usr/local/lib/libgphoto2
libgphoto2.6.dylib -> /usr/local/lib/libgphoto2.6.dylib
libgphoto2_port -> /usr/local/lib/libgphoto2_port
libgphoto2_port.12.dylib -> /usr/local/lib/libgphoto2_port.12.dylib
Comment 1 Maik Qualmann 2024-05-05 17:48:01 UTC
See also the same problem in Bug 451719. The hint that a linked installed GPhoto2 works is interesting and can help Gilles find the cause in the macOS bundle.

Maik
Comment 2 Ashley SMITH 2024-05-05 17:52:48 UTC
(In reply to Maik Qualmann from comment #1)
> See also the same problem in Bug 451719. The hint that a linked installed
> GPhoto2 works is interesting and can help Gilles find the cause in the macOS
> bundle.
> 
> Maik

Some more information after reading the other bug details.  When I run the command /Applications/digiKam.org/digikam.app/Contents/lib/libgphoto2/print-camera-list human-readable using the packaged version of libgphoto2 I get an empty list.  Using the brew installed version I get the entire database of supported cameras.

Ashley
Comment 3 caulier.gilles 2024-09-17 12:03:52 UTC
Fixed with bug #470530

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

You can test the 8.5.0 pre-release PKG for macOS Silicon (arm64) here :

https://files.kde.org/digikam/

Gilles Caulier
Comment 4 Ashley SMITH 2024-09-17 12:38:59 UTC
(In reply to caulier.gilles from comment #3)
> Fixed with bug #470530
> 
> https://i.imgur.com/ffx1wT3.png
> 
> You can test the 8.5.0 pre-release PKG for macOS Silicon (arm64) here :
> 
> https://files.kde.org/digikam/
> 
> Gilles Caulier

Sure, I'll see if 8 can test that in the next day or two.

Thanks!
Comment 5 Ashley SMITH 2024-09-25 18:11:40 UTC
(In reply to caulier.gilles from comment #3)
> Fixed with bug #470530
> 
> https://i.imgur.com/ffx1wT3.png
> 
> You can test the 8.5.0 pre-release PKG for macOS Silicon (arm64) here :
> 
> https://files.kde.org/digikam/
> 
> Gilles Caulier

Hi,

Sorry for the delay, I didn't have my camera with me the last days and needed to get it.  I've just noticed that the Mac PKG provided is for arm64, this won't work on my machine, I'm using an Intel Mac.  Any chance you could get me an Intel PKG?

Thanks,

Ashley
Comment 6 caulier.gilles 2024-09-25 20:02:06 UTC
yes it is. Look here :

https://files.kde.org/digikam/legacy/

Gilles Caulier
Comment 7 Ashley SMITH 2024-10-06 11:51:42 UTC
(In reply to caulier.gilles from comment #6)
> yes it is. Look here :
> 
> https://files.kde.org/digikam/legacy/
> 
> Gilles Caulier

Hello,

Sorry for the delay in answering.  I've installed the pre-release version and verified that the previous symlinks that I'd created were no longer present.  I removed the camera in digiKam and was able to autodetect it again.  Seems like the bug is indeed fixed!

Ashley