Bug 350446 - Port MacOS PKG to Arm64 Apple Silicon.
Summary: Port MacOS PKG to Arm64 Apple Silicon.
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Bundle-MacOS (show other bugs)
Version: 8.2.0
Platform: macOS (DMG) macOS
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-21 09:47 UTC by kertase
Modified: 2024-03-25 16:50 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kertase 2015-07-21 09:47:38 UTC
May it be possible to integrate the api? https://www.deviantart.com/developers/
Comment 1 Maik Qualmann 2017-08-23 18:05:19 UTC

*** This bug has been marked as a duplicate of bug 306362 ***
Comment 2 caulier.gilles 2023-10-19 08:55:36 UTC
Macports has a Qt 6.4.3 package:

https://ports.macports.org/port/qt6/details/

but we needs Qt 6.5.3 LTS to support Qt6::Multimedia based on ffmpeg. There is a blocking report :

https://trac.macports.org/ticket/66975

A PR is now commited to support Qt 6.5.0 : 

https://github.com/macports/macports-ports/pull/18186

Wait and see...

GilleS Caulier
Comment 3 caulier.gilles 2024-01-04 12:04:29 UTC
Maik,

I build a new Macbook pro M1 (Apple Silicon). CPU is Arm64. I will provide a PKG installer for this platform, as Apple has abandoned Intel CPU since 2021. The current PKG Intel will still alive until my older Macbook continue to work (currently it has a swollen battery).

The other problem is the port to Qt6. Macports still frozen to 6.4 and there is no move on the right way since a while. 

https://ports.macports.org/port/qt6/details/

Alternative is to use homebrew which has Qt 6.6.1 with Arm64 support:

https://formulae.brew.sh/formula/qt

Note : VCPKG from M$ do not support yet Apple Silicon officially.

Gilles
Comment 4 caulier.gilles 2024-01-16 09:40:27 UTC
Git commit 0385d543c59a79472440aaf2a5d9e6fe147f82b0 by Gilles Caulier.
Committed on 16/01/2024 at 10:40.
Pushed by cgilles into branch 'master'.

Start to add HomeBrew build scripts for MacOS Silicon + Qt6

A  +380  -0    project/bundles/homebrew/01-build-macports.sh
A  +118  -0    project/bundles/homebrew/02-build-extralibs.sh
A  +224  -0    project/bundles/homebrew/03-build-digikam.sh
A  +705  -0    project/bundles/homebrew/04-build-installer.sh [INFRASTRUCTURE] [INFRASTRUCTURE] [INFRASTRUCTURE] [INFRASTRUCTURE]
A  +213  -0    project/bundles/homebrew/README [INFRASTRUCTURE]
A  +8    -0    project/bundles/homebrew/TODO
A  +260  -0    project/bundles/homebrew/common.sh
A  +139  -0    project/bundles/homebrew/config.sh [INFRASTRUCTURE] [INFRASTRUCTURE] [INFRASTRUCTURE] [INFRASTRUCTURE] [INFRASTRUCTURE]
A  +4    -0    project/bundles/homebrew/data/qt.conf
A  +12   -0    project/bundles/homebrew/fixbundledatapath.sh
A  +15   -0    project/bundles/homebrew/installer/ABOUT.txt
A  +340  -0    project/bundles/homebrew/installer/GPL.txt
A  +1077 -0    project/bundles/homebrew/installer/digikam.pkgproj
A  +-    --    project/bundles/homebrew/installer/logo.png
A  +56   -0    project/bundles/homebrew/installer/releasenotes.html
A  +92   -0    project/bundles/homebrew/makeall.sh [INFRASTRUCTURE] [INFRASTRUCTURE]
A  +186  -0    project/bundles/homebrew/rll.py
A  +41   -0    project/bundles/homebrew/tools/cleanupKF5framework.sh
A  +34   -0    project/bundles/homebrew/tools/console.sh
A  +77   -0    project/bundles/homebrew/tools/installextralibsdep.sh
A  +82   -0    project/bundles/homebrew/tools/installmacportsdeps.sh
A  +39   -0    project/bundles/homebrew/tools/macports-uninstall.sh
A  +29   -0    project/bundles/homebrew/tools/macports-update.sh
A  +78   -0    project/bundles/homebrew/update.sh [INFRASTRUCTURE] [INFRASTRUCTURE]

https://invent.kde.org/graphics/digikam/-/commit/0385d543c59a79472440aaf2a5d9e6fe147f82b0
Comment 5 caulier.gilles 2024-01-16 16:46:38 UTC
Hi Maik,

Some fresh news about the HomeBrew+Apple Sillicon+Qt6 port for MacOS.

My new MacBook Pro M1 is really a rock compared to the Intel 2015 version. The CPU rarely use the fan even if compilation are intensive. Apple have really well works with Arm architecture.

HomeBrew is very powerfull, better than MAcports as package manager. All low levels dependencies are there (this is not the case with Macports). All packages are precompiled and stored in a cache from Internet. Instead of 4 hours to compile whole Qt6 & co, it take 2 minutes 

So i complete stages 1 and 2. Now i will compile digiKam and make the PKG installer.

Gilles
Comment 6 caulier.gilles 2024-01-16 16:47:52 UTC
Git commit 5202e3a655c39aea972e8bdaaeaf8158f8f79615 by Gilles Caulier.
Committed on 16/01/2024 at 17:47.
Pushed by cgilles into branch 'master'.

stage 1 and 2 are now complete with HomeBrew.

M  +8    -2    project/bundles/homebrew/02-build-extralibs.sh

https://invent.kde.org/graphics/digikam/-/commit/5202e3a655c39aea972e8bdaaeaf8158f8f79615
Comment 7 caulier.gilles 2024-01-17 07:13:55 UTC
Git commit 73ef0147abb613face432dd161cd908489e8ebf1 by Gilles Caulier.
Committed on 17/01/2024 at 08:12.
Pushed by cgilles into branch 'master'.

HomeBrew Apple Silicon Qt6: stage 3 pass completly

M  +0    -2    project/bundles/homebrew/03-build-digikam.sh

https://invent.kde.org/graphics/digikam/-/commit/73ef0147abb613face432dd161cd908489e8ebf1
Comment 8 griffiths_andy 2024-03-25 15:37:30 UTC
I was reading through the documentation for the Homebrew build, along with `01-build-homebrew.sh`, and noticed the specification of the custom Homebrew instance being placed in `/opt/homebrew`. 

Does this create a custom build somewhere else inside here (iirc the Macports build does the same, but a while since I tried it?), or will it conflict with an existing general Homebrew installation at `/opt/homebrew` for Apple Silicon machines?

I'd like to give this a go, but don't want to jeopardise my existing Homebrew install.

I also saw a comment (maybe in the mailing list) re a problem still outstanding at the packaging stage. Is this still an issue?

Thanks..
Comment 9 caulier.gilles 2024-03-25 16:50:41 UTC
Yes, packaging is still and issue, especially to re-sign all binaries after to relocate it (typically from /opt/homebrew to a relative path).

But there are more problems with homebrew that i don't seen with macports (the current packaging framework : the customization of ports with variants. This do not exists in homebrew without to patch one by one all ports. Homebrew is a puzzle from me.

This is why i prefer so far Macports than Homebrew. The only blocking point to build digiKam for Arm64 with Macport is the Qt6 version available : 6.4.x instead 6.6.x with Homebrew....

Gilles Caulier