Bug 372323 - Camera autodetection fails when using AppImage bundle
Summary: Camera autodetection fails when using AppImage bundle
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Bundle-AppImage (show other bugs)
Version: 5.3.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-11 05:35 UTC by Leonard Lausen
Modified: 2022-01-31 13:05 UTC (History)
1 user (show)

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


Attachments
attachment-11266-0.html (1.17 KB, text/html)
2016-11-13 10:20 UTC, Leonard Lausen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonard Lausen 2016-11-11 05:35:03 UTC
Dear all,

I am using Maui Linux (which is based on Neon). When starting digiKam 5.3 from the AppImage bundle it is not able to detect my camera. However, when compiling the version 5.3 from source, the autodetection works fine.

I assume that this is due to some mismatch between the versions of the dependencies with which the AppImage bundle is built compared to the versions provided in Maui Linux.

Can we do anything to fix this issue?

I can only see the following issue on the command line:
> digikam.import: Failed to autodetect camera!
> digikam.import: Libgphoto2 error:  No error  ( 0 )

Best regards
Leonard
Comment 1 caulier.gilles 2016-11-12 20:09:26 UTC
This is due certainly to use older lbgphoto2 from centoos6.8 instead a more recent one. I tried to use last libgphoto2 but it do not compile under centos6 due to incompatible libjpeg which is also very old. So I must use more recent low level dependencies for next 5.4.0 AppImage

Gilles caulier
Comment 2 Leonard Lausen 2016-11-13 10:20:20 UTC
Created attachment 102202 [details]
attachment-11266-0.html

It might be sensible to publish an updated version for 5.3 as well in that case. What do you think? 

On November 13, 2016 4:09:26 AM GMT+08:00, bugzilla_noreply@kde.org wrote:
>https://bugs.kde.org/show_bug.cgi?id=372323
>
>caulier.gilles@gmail.com changed:
>
>           What    |Removed                     |Added
>----------------------------------------------------------------------------
>               CC|                            |caulier.gilles@gmail.com
>
>--- Comment #1 from caulier.gilles@gmail.com ---
>This is due certainly to use older lbgphoto2 from centoos6.8 instead a
>more
>recent one. I tried to use last libgphoto2 but it do not compile under
>centos6
>due to incompatible libjpeg which is also very old. So I must use more
>recent
>low level dependencies for next 5.4.0 AppImage
>
>Gilles caulier
>
>-- 
>You are receiving this mail because:
>You reported the bug.
Comment 3 caulier.gilles 2016-11-14 05:49:00 UTC
Git commit d3b22c619f1440d349e735d2c1ac91fe58435248 by Gilles Caulier.
Committed on 14/11/2016 at 05:47.
Pushed by cgilles into branch 'master'.

use last official libgphoto2 2.5.10 to build AppImage bundle

M  +7    -7    project/appimage/01-build-centos6.sh

http://commits.kde.org/scratch/mwiesweg/digikam-sc/d3b22c619f1440d349e735d2c1ac91fe58435248
Comment 4 caulier.gilles 2016-11-14 05:50:50 UTC
Git commit b5d5cf80dc6cd7035973fa0d8f2a73004c4d4ac8 by Gilles Caulier.
Committed on 14/11/2016 at 05:49.
Pushed by cgilles into branch 'master'.

remove centos6 libgphoto2 devel package before to build last offcial libgphoto2

M  +1    -1    project/appimage/01-build-centos6.sh

http://commits.kde.org/scratch/mwiesweg/digikam-sc/b5d5cf80dc6cd7035973fa0d8f2a73004c4d4ac8
Comment 5 caulier.gilles 2016-11-14 17:22:55 UTC
Git commit faa7240fe7ae140e57d10de566ce76e0c6506ad7 by Gilles Caulier.
Committed on 14/11/2016 at 17:22.
Pushed by cgilles into branch 'master'.

add libgphoto2 data in bundle

M  +1    -0    project/appimage/04-build-appimage.sh

http://commits.kde.org/scratch/mwiesweg/digikam-sc/faa7240fe7ae140e57d10de566ce76e0c6506ad7
Comment 6 caulier.gilles 2016-11-14 18:06:08 UTC
Git commit e1242e79a23a4c861a46ef28339babfae52b8e44 by Gilles Caulier.
Committed on 14/11/2016 at 18:05.
Pushed by cgilles into branch 'master'.

fix path to copy libgphoto2 shared lib in bundle

M  +1    -1    project/appimage/04-build-appimage.sh

http://commits.kde.org/scratch/mwiesweg/digikam-sc/e1242e79a23a4c861a46ef28339babfae52b8e44
Comment 7 caulier.gilles 2016-11-15 21:46:31 UTC
Git commit 5bea332140ccb5a1f393e532ff46292b9eb7064d by Gilles Caulier.
Committed on 15/11/2016 at 21:44.
Pushed by cgilles into branch 'master'.

install gphoto2 drivers in AppImage bundle and pass paths to so files at run time to gphoto2 to load driver on demand.
Now digiKam AppImage is able to use gphoto2 to autodetect camera.
FIXED-IN: 5.4.0

M  +7    -1    project/appimage/04-build-appimage.sh
M  +2    -0    project/appimage/data/AppRun

http://commits.kde.org/scratch/mwiesweg/digikam-sc/5bea332140ccb5a1f393e532ff46292b9eb7064d
Comment 8 caulier.gilles 2016-11-15 22:06:04 UTC
To test, digiKam 5.4.0 AppImage bundle to test is here :

https://drive.google.com/open?id=0BzeiVr-byqt5Y0tIRWVWelRJenM

Gilles Caulier
Comment 9 Leonard Lausen 2016-11-16 04:01:12 UTC
Thanks, the camera detection works indeed with the digiKam 5.4.0 
AppImage bundle.
Comment 10 caulier.gilles 2016-11-16 17:51:07 UTC
Leonard,

I rebuild again the bundle. I fixed another problem with auto detection of camera when it's connected to computer. Now it work when AppImage is started and camera is connected. The Import menu is automatically populated.

This doesn't work yet to lauch automatically AppImage with desktop USB notifier. It's more complicated. First the desktop integraption of bundle must be do and the script to run digiKam must be patched to handle AppImage, and not the system installed digiKam.

Gilles Caulier
Comment 11 Leonard Lausen 2016-11-17 02:00:46 UTC
Thanks Gilles, indeed I can confirm that no manual scan is necessary 
with the rebuilt bundle. With the previous bundle I had to do a manual scan.