Page 1 of 1

ARM64 Mac and CEF

PostPosted: Sat Aug 01, 2020 4:23 pm
by GilanTC
I have programmed for 40 years, but with the program that we make I am in tech support, and not one of the developers. I do still have a developer account with Apple, and I have an ARM64 Mac mini. The developers have another one, and the hope is to get the program at least running through Rosetta 2, and then native at some point. I have questions, one of which may be naive!

The blocker at the moment is CEF, we use a lot of web views. Bypassing those shows that the app runs well with Rosetta 2, for all other functions. With a CEF that worked we could get by with doing nothing for Rosetta 2 support, and then spend more time on native support.

A few weeks ago Chromium added in the patch that at least allows it to work in Rosetta 2. Even so, Chrome 84 fails to load pages, and Chrome Canary 86 crashes, as does the latest Mac Chromium.

There was a post that said that the patch to allow 16 bit pages had been successfully tested in the CEF sample app, but that app still fails for me.

So, two questions, the second one is the naive one.

1. Will there soon be a Rosetta 2 compatible CEF that our developers can compile against? Not with the intention of shipping with that version, but it would let us try native improvements without being stuck on the web views. That does suggest another question, if any part of an app needs Rosetta 2, is the rest of the app also running through Rosetta 2?

2. I see there are ARM64 Linux builds. Do those in any way help towards making an ARM64 A12 build of CEF?

Re: ARM64 Mac and CEF

PostPosted: Sat Aug 01, 2020 5:56 pm
by magreenblatt
See https://bitbucket.org/chromiumembedded/ ... t-on-arm64. You will need to build CEF with the necessary Chromium patch applied.

Re: ARM64 Mac and CEF

PostPosted: Sat Aug 01, 2020 9:00 pm
by magreenblatt
if any part of an app needs Rosetta 2, is the rest of the app also running through Rosetta 2?

A binary will be ARM64 or x64. Depending on how your application is structured it may be possible to have both (e.g. by launching an executable as a separate process), but generally it will all be one or the other.

Re: ARM64 Mac and CEF

PostPosted: Mon Aug 03, 2020 3:53 pm
by GilanTC
Thanks for the replies, I will get the developer to check out the Chromium options in a CEF build.

Re: ARM64 Mac and CEF

PostPosted: Wed Oct 14, 2020 11:16 am
by GilanTC
I think that our developers have decided to wait on a CEF package that we can just use, and not do our own Chromium and CEF builds. They have read somewhere that Chromium 87 is due to be Rosetta 2 compatible, but I am frequently testing Chromium 88, and that still doesn't work.

Can you say what the current plan is? At what point will there be a Rosetta 2 capable CEF package for us to use?

Re: ARM64 Mac and CEF

PostPosted: Wed Oct 14, 2020 11:26 am
by magreenblatt
M87 will support Rosetta. You should add yourself as a watcher of the above-linked CEF issue to receive notifications.

Re: ARM64 Mac and CEF

PostPosted: Wed Oct 14, 2020 3:06 pm
by GilanTC
Thank you! Happy to see it as M87, when I only heard 87 I thought they meant it to be Chromium 87. I will watch M87.

Re: ARM64 Mac and CEF

PostPosted: Wed Oct 14, 2020 3:23 pm
by magreenblatt
M87 is Chromium 87, which only branched few weeks ago and is the current dev channel. How are you testing Chromium 88?

Re: ARM64 Mac and CEF

PostPosted: Tue Nov 10, 2020 6:20 pm
by GilanTC
Just saw this. The build from download-chromium.appspot.com is on 88.0.4322.0 at the moment. It still doesn't work in Apple Silicon, but the release 87 does work ok.

Is there a page that shows the expected release dates for CEF 87?

Re: ARM64 Mac and CEF

PostPosted: Tue Nov 10, 2020 6:36 pm
by magreenblatt
M87 becomes stable on Nov 17. See https://chromiumdash.appspot.com/schedule