[digiKam-users] digikam on Macbook M1 ? crash

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

[digiKam-users] digikam on Macbook M1 ? crash

Rockthisparty
Hi everybody!

I'm rather new to digicam ... had installed 7.1 successful on x86-Macbook.

Has anybody already tested digicam on new Macbook / Mac mini *M1*?

With current 7.2b2 it crashes immediately on Macbook M1 with:



Thanks,
Stefan



--
Sent from: http://digikam.1695700.n4.nabble.com/digikam-users-f1735189.html
Reply | Threaded
Open this post in threaded view
|

Re: digikam on Macbook M1 ? crash

Gilles Caulier-4
Hi,

Yes, somebody has tested the current 7.2.0 beta on M1 using the
Rosetta 2 emulator, but as i don't have a M1 based computer yet. I
cannot hack for the moment.

If you can give more backtrace, please use the "debug" bundle. It is
more heavy but it includes all debug symbols for crash course
operation in XCode debugger.

Best regards and happy new year...

Gilles Caulier

Le mar. 5 janv. 2021 à 03:07, Rockthisparty <[hidden email]> a écrit :

>
> Hi everybody!
>
> I'm rather new to digicam ... had installed 7.1 successful on x86-Macbook.
>
> Has anybody already tested digicam on new Macbook / Mac mini *M1*?
>
> With current 7.2b2 it crashes immediately on Macbook M1 with:
>
>
>
> Thanks,
> Stefan
>
>
>
> --
> Sent from: http://digikam.1695700.n4.nabble.com/digikam-users-f1735189.html
Reply | Threaded
Open this post in threaded view
|

Re: digikam on Macbook M1 ? crash

Rockthisparty
Hi

Best wishes for the new year for you as well and thanks for the quick response.

I'll install the debug Version during the day.

What do I have to do to get extended debug information? Does it popup automatically?
And is there anything special to do for digikam really running with rosetta or should MacOs recognize it by itself?

Best regards,
Stefan

Am Di., 5. Jan. 2021 um 09:13 Uhr schrieb Gilles Caulier <[hidden email]>:
Hi,

Yes, somebody has tested the current 7.2.0 beta on M1 using the
Rosetta 2 emulator, but as i don't have a M1 based computer yet. I
cannot hack for the moment.

If you can give more backtrace, please use the "debug" bundle. It is
more heavy but it includes all debug symbols for crash course
operation in XCode debugger.

Best regards and happy new year...

Gilles Caulier

Le mar. 5 janv. 2021 à 03:07, Rockthisparty <[hidden email]> a écrit :
>
> Hi everybody!
>
> I'm rather new to digicam ... had installed 7.1 successful on x86-Macbook.
>
> Has anybody already tested digicam on new Macbook / Mac mini *M1*?
>
> With current 7.2b2 it crashes immediately on Macbook M1 with:
>
>
>
> Thanks,
> Stefan
>
>
>
> --
> Sent from: http://digikam.1695700.n4.nabble.com/digikam-users-f1735189.html
Reply | Threaded
Open this post in threaded view
|

Re: digikam on Macbook M1 ? crash

Gilles Caulier-4
Le mar. 5 janv. 2021 à 03:19, Stefan Wulff <[hidden email]> a écrit :
>
> Hi
>
> Best wishes for the new year for you as well and thanks for the quick response.
>
> I'll install the debug Version during the day.
>
> What do I have to do to get extended debug information? Does it popup automatically?

Typically yes. If XCode debugger is installed, you will see certainly
more information.

> And is there anything special to do for digikam really running with rosetta or should MacOs recognize it by itself?

I never played with Rosetta 2 emulator. So i cannot respond yet to
this Q. Probably you can found details on the web about to run intel
program on Rosetta emulator with M1 computer.

Best

Gilles Caulier
Reply | Threaded
Open this post in threaded view
|

Re: digikam on Macbook M1 ? crash

Andrew Goodbody
In reply to this post by Gilles Caulier-4
On 05/01/2021 08:12, Gilles Caulier wrote:
> Hi,
>
> Yes, somebody has tested the current 7.2.0 beta on M1 using the
> Rosetta 2 emulator, but as i don't have a M1 based computer yet. I
> cannot hack for the moment.

Has anyone tried building for AARCH64 yet? Any known gotchas?

Andrew
Reply | Threaded
Open this post in threaded view
|

Re: digikam on Macbook M1 ? crash

Gilles Caulier-4
Hi,

I tried to cross compile to M1 with my MacBoobk Intel, but target
binary still Intel code. So for the moment, I don't work on the M1
port.

I already compiled the whole digiKam on PI4 and there are no
compatibility issues with the ARM processor.

Gilles Caulier

Le mar. 5 janv. 2021 à 06:27, Andrew Goodbody <[hidden email]> a écrit :

>
> On 05/01/2021 08:12, Gilles Caulier wrote:
> > Hi,
> >
> > Yes, somebody has tested the current 7.2.0 beta on M1 using the
> > Rosetta 2 emulator, but as i don't have a M1 based computer yet. I
> > cannot hack for the moment.
>
> Has anyone tried building for AARCH64 yet? Any known gotchas?
>
> Andrew
Reply | Threaded
Open this post in threaded view
|

Re: digikam on Macbook M1 ? crash

Gilles Caulier-4
Good news. This is a solution to cross compile Apple M1 target under
Intel computer using Macports.

https://trac.macports.org/ticket/61999#comment:1

So, if all digiKam dependencies compile fine for M1 cpu, we will be
able to produce a native apple silicon macOS bundle soon.

Best regards

Gilles Caulier

Le mar. 5 janv. 2021 à 13:15, Gilles Caulier
<[hidden email]> a écrit :

>
> Hi,
>
> I tried to cross compile to M1 with my MacBoobk Intel, but target
> binary still Intel code. So for the moment, I don't work on the M1
> port.
>
> I already compiled the whole digiKam on PI4 and there are no
> compatibility issues with the ARM processor.
>
> Gilles Caulier
>
> Le mar. 5 janv. 2021 à 06:27, Andrew Goodbody <[hidden email]> a écrit :
> >
> > On 05/01/2021 08:12, Gilles Caulier wrote:
> > > Hi,
> > >
> > > Yes, somebody has tested the current 7.2.0 beta on M1 using the
> > > Rosetta 2 emulator, but as i don't have a M1 based computer yet. I
> > > cannot hack for the moment.
> >
> > Has anyone tried building for AARCH64 yet? Any known gotchas?
> >
> > Andrew
Reply | Threaded
Open this post in threaded view
|

Re: digikam on Macbook M1 ? crash

Rockthisparty
Great news :-)  !!

I'm afraid, I'm not able to support compiling, but I'll try it as soon as possible when available.



Am Mi., 6. Jan. 2021 um 14:46 Uhr schrieb Gilles Caulier <[hidden email]>:
Good news. This is a solution to cross compile Apple M1 target under
Intel computer using Macports.

https://trac.macports.org/ticket/61999#comment:1

So, if all digiKam dependencies compile fine for M1 cpu, we will be
able to produce a native apple silicon macOS bundle soon.

Best regards

Gilles Caulier

Le mar. 5 janv. 2021 à 13:15, Gilles Caulier
<[hidden email]> a écrit :
>
> Hi,
>
> I tried to cross compile to M1 with my MacBoobk Intel, but target
> binary still Intel code. So for the moment, I don't work on the M1
> port.
>
> I already compiled the whole digiKam on PI4 and there are no
> compatibility issues with the ARM processor.
>
> Gilles Caulier
>
> Le mar. 5 janv. 2021 à 06:27, Andrew Goodbody <[hidden email]> a écrit :
> >
> > On 05/01/2021 08:12, Gilles Caulier wrote:
> > > Hi,
> > >
> > > Yes, somebody has tested the current 7.2.0 beta on M1 using the
> > > Rosetta 2 emulator, but as i don't have a M1 based computer yet. I
> > > cannot hack for the moment.
> >
> > Has anyone tried building for AARCH64 yet? Any known gotchas?
> >
> > Andrew
Reply | Threaded
Open this post in threaded view
|

Re: digikam on Macbook M1 ? crash

LucasLinard
In reply to this post by Gilles Caulier-4
Hi,
I love Digikam and would like to help building the mac ARM version if I can
help.
What can I do? Can you point me a direction where to start??
Thanks



--
Sent from: http://digikam.1695700.n4.nabble.com/digikam-users-f1735189.html
Reply | Threaded
Open this post in threaded view
|

Re: digikam on Macbook M1 ? crash

Gilles Caulier-4
Hi,

Thanks for your help.

digiKam has been compiled for macOS using Macports since a while and
it works like a charm. I write myself 4 bash scripts fully documented
to configure and compile whole bundle contents. This includes all low
level dependencies, Qt5, KF5, and more, until the final packaging bag
using Packages  open source application.
With 7.2.0 release I make the bundles fully relocatable...

The scripts can be located here :

https://invent.kde.org/graphics/digikam/-/tree/master/project/bundles/macports

I used this scripts into a special intel computer running a Virtual
Box machine created with this jewel project to host BigSur:

https://github.com/myspaghetti/macos-virtualbox

The computer create the PKGs all the day late with current code from
git/master, to be deployed here :

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

I documented the BigSur installation under VirtualBox here :

https://invent.kde.org/graphics/digikam/-/blob/master/project/bundles/CD/ContinuousDeploy.txt

This is the workflow for Intel only macOS packages. There are 2 PKGs :
one with debug symbols, another one without...

Now for Apple Silicon support, there is 2 ways:

1/ make an universal bundle, including Intel and M1 byte codes.
2/ make a M1 only bundle.

The solution 1/ is the recommendation by Macports team for the moment,
as not all ports are fully compatible with pure Silicon supports.
Also, some packages don't need to be compiled for the Apple M1 target
to provide M1 byte code. This is the way used by the Firefox project
to compile the web browser with M1 support.

The advantage of solution : the can be compiled with an Intel
computer. M1 byte code is cross compiled with XCode.

But, not all ports are not yet ready to be compatible with M1
supports. Work is in progress...

The solution 2/ requires a Silicon based computer. This cannot be
virtualized. So you need an Apple device and test if all compile fine
with Macports, and I'm sure that it will not be the case yet.

Of course the advantage of 2/ compared to 1/ is the size of the
bundle. 1/ will be more heavy than 2/ as it includes 2 different byte
codes in the bundle.

The solution 1/ must be prefered for the moment, and later solution 2/
will be the ultimate way to make a digiKam M1 package.

So if you want to make a try :

1/ Install Xcode on your Apple Computer following the continuous
deployment document that i write.
2/ Checkout the digiKam repository from gitlab.
3/ Configure scripts to generate an macports installation of universal
ports (https://invent.kde.org/graphics/digikam/-/blob/master/project/bundles/macports/config.sh#L18).
Here "arm64" targets mean Intel+Silicon if you run script under BigSur
Intel, else only Silicon.
4/ Start to run script 01... ; 02... ; 03... ; etc.

For me the macports installation is broken after the compilation of
many ports, and stops with a ffmpeg dependency. Macports team waits
for all feedback about broken ports with Silicon target. You need to
use Macports bugzilla for that. To be registered to MAcports users
mailing list will help for guidance.

Voilà.

Gilles Caulier

Le dim. 14 févr. 2021 à 11:41, LucasLinard <[hidden email]> a écrit :

>
> Hi,
> I love Digikam and would like to help building the mac ARM version if I can
> help.
> What can I do? Can you point me a direction where to start??
> Thanks
>
>
>
> --
> Sent from: http://digikam.1695700.n4.nabble.com/digikam-users-f1735189.html