Bug 467384

Summary: Compile digiKam bundle under Windows with MSVC compiler.
Product: [Applications] digikam Reporter: fch22 <frederic.chaume>
Component: Bundle-WindowsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, frederic.chaume, metzpinguin
Priority: NOR    
Version: 7.10.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 8.2.0
Sentry Crash Report:

Description fch22 2023-03-15 08:34:46 UTC
During installation on windows, there is an additional step , added by Microsoft Defender SmartScreen , to force de installation. 
Seems the cause is "the editor is unknown"
I suppose something is missing in the windows bundle to let the installation proceeding directly and skip this step

not specific to 7.10.0
Comment 1 caulier.gilles 2023-03-15 08:42:45 UTC
All the information in Windows bundle are populated. It's not the problem. Se the configuration file for the application:

https://invent.kde.org/graphics/digikam/-/blob/master/core/cmake/templates/versioninfo.rc.cmake.in#L20

The problem is the registration to the Application Store from Microsoft. You need to pay for that (as with Apple Store). We will refuse to give money to Microsoft for an open source application...

Gilles Caulier
Comment 2 fch22 2023-03-15 08:48:50 UTC
(In reply to caulier.gilles from comment #1)
> All the information in Windows bundle are populated. It's not the problem.
> Se the configuration file for the application:
> 
> https://invent.kde.org/graphics/digikam/-/blob/master/core/cmake/templates/
> versioninfo.rc.cmake.in#L20
> 
> The problem is the registration to the Application Store from Microsoft. You
> need to pay for that (as with Apple Store). We will refuse to give money to
> Microsoft for an open source application...
> 
> Gilles Caulier

ok, so you can close the bug, fully agree with you.
Comment 3 caulier.gilles 2023-03-15 09:23:39 UTC
The possible solution is to use the build/packaging of digiKAm done under a Windows computer from the KDE continuous integration server. Files generated are signed but so far, not all features are integrated in the Windows bundles, as for ex the Mysql/Mariadb support and the geolocation. this is due to technical limitations.

https://binary-factory.kde.org/view/Windows%2064-bit/job/Digikam_Nightly_win64/

The official windows bundles that we provides are cross compiled under Linux. There is no Windows at all to generate the bundle, but files are not signed. To be signed, a bundle MUST be generated under windows with the Microsoft compiler...

Gilles Caulier

*** This bug has been marked as a duplicate of bug 398582 ***
Comment 4 Maik Qualmann 2023-03-15 12:44:03 UTC
Gilles, the MSVC Windows Build has geolocation and MySQL/MariaDB support. HEIF support is missing.

Maik
Comment 5 caulier.gilles 2023-03-15 12:50:56 UTC
Hi Maik,

Mysql support ? Last time that i talk with Craft team about this topic i receive a weird response. Typically including Mysql driver from Qt require a lots of work touching the base of Craft build system and nobody would do it.

About libmarble support i'm surprised because Marble needs  patch to isolate the library that the application, else bundle do a mess mixing digiKam and Marble executable.

For HEIF, the Craft build system must be patch in this way.

Gilles
Comment 6 Maik Qualmann 2023-03-15 12:54:13 UTC
As far as I know, it applies to macOS, MySQL is only available for Windows.

Maik
Comment 7 Maik Qualmann 2023-03-15 13:03:00 UTC
I have the MSVC build running on Windows here at work. Just tested again because I was already unsure - Marble works fine. MySQL option is available, I will test an internal database later.

Maik
Comment 8 caulier.gilles 2023-03-15 13:03:45 UTC
Hum, i will double check...

Gilles
Comment 9 Maik Qualmann 2023-03-15 13:25:20 UTC
You are right for MySQL, the Qt MySQL driver is not available...

Maik
Comment 10 caulier.gilles 2023-03-15 13:43:37 UTC
See the TODO list in Craft: https://invent.kde.org/packaging/craft-blueprints-kde/-/blob/master/extragear/digikam/TODO
Comment 11 caulier.gilles 2023-11-12 18:05:38 UTC
@fch22,

Can you test if the pre-release digiKam 8.2.0 compiled under Windows 10 with VCPKG tool-chain fix your problem ? Files is available here :

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

Thanks in advance

Gilles Caulier
Comment 12 caulier.gilles 2023-11-16 12:25:08 UTC
digiKam 8.2.0 will be published for Windows x86_64 as NSIS installer fully compiled under Windows 10 ++ MSVC compiler + VCPKG tool chain.

The new installer is only compatible with Windows 10 and later.

The old installer cross compiled with MXE tool chain under Linux still here, is compatible with Windows 7 and later but is now deprecated due to several limitations (eq the Exiv2 library limited to 0.27, Qt5 only, and the usage of the out-of-date QtWebkit framework to access on cloud web services).

The new native installer use the modern QtWebEngine, Qt6, and Exiv2 0.28.1.

Gilles Caulier