It seems there is already ext_libgphoto2, but I wasn't successful to get it working with the mxe cross-compiler. I think upstreaming libgphoto2 support to the mxe is cleaner solution.
I think, until https://github.com/mxe/mxe/pull/2697 is merged, you could use this mxe patch downstream, i.e. patching the mxe before the build. The patch is simple. It requires libexif (https://github.com/mxe/mxe/pull/2700), but I think the libgphoto2 is usable even without libexif. In such case just drop the libexif dependency from the libgphoto2.mk.
Jaroslav Škarvada (38f9e236) at 11 Aug 23:47
Fixed Windows build through MXE on Fedora 33 2/2
No idea. The marble is not installed on the Fedora, so all it uses is just the mxe. I cannot see anything wrong with the patch. I will probably go the easy lamer way and add it as a failover :)
Just to be sure, I have two data directory. At the moment I don't know which one is the correct one:
$MXE_INSTALL_PREFIX/bin/data
applications
dbus-1
digikam
icons
kf5
knotifications5
kservices5
kservicetypes5
kxmlgui5
locale
man
metainfo
mime
qlogging-categories5
showfoto
solid
xdg
$MXE_INSTALL_PREFIX/../data
audio
bitmaps
credits_authors.html
credits_data.html
flags
landcolors.leg
legend.css
legend.html
licenses
LICENSE.txt
locale
maps
mwdbii
naturalearth
placemarks
precipcolors.leg
seacolors.leg
stars
svg
tempcolors.leg
weather
This is matter of personal preference, but NP, I will change it.
For function it needs WinUSB libusb driver, for details see https://bugs.kde.org/show_bug.cgi?id=398166#c34.
It requires: https://github.com/mxe/mxe/pull/2697
Signed-off-by: Jaroslav Škarvada jskarvad@redhat.com
Jaroslav Škarvada (6d6891dc) at 11 Aug 22:54
Enabled libgphoto2 support on Windows
Comments of the changes are in the !133 (closed).
Second part is now in the !135 (closed)
This is split of the !133 (closed) as requested in the comment.
Signed-off-by: Jaroslav Škarvada jskarvad@redhat.com
Jaroslav Škarvada (9d1085eb) at 10 Aug 19:38
Fixed Windows build through MXE on Fedora 33 2/2
Split, this PR is C++ patch now.
Jaroslav Škarvada (43c350be) at 10 Aug 19:35
Fixed Windows build through MXE on Fedora 33 1/2
I successfully rebuilt digikam-7.3.0 for Windows on Fedora 33 after applying the proposed changes.
It wanted ncrypt.dll
which seems to be included on Windows 10.
I do not why, but on Fedora 33 the data directory was present one level above. Somebody should check it whether it's bug in the script.