Compile LyX on Apple Silicon / arm64

Marcus Mikulcak marcus.mikulcak at gmail.com
Tue Jan 19 21:24:10 UTC 2021


Hi Stephan,

looking around for a way to create universal binaries for arm64/x86_64
outside of XCode I've stumbled onto this project here:
https://github.com/tpoechtrager/osxcross
If it works the way the Readme makes it sound, it should be fairly simple
to create a universal binary in the existing LyX build environment. I'll
try to find some time to play around with it a little over the next few
days!

I only had to make the tiniest change in LyX-Mac-binary-release.sh to get
it to run on Big Sur (macos SDK version 10.x vs. 11.x). I attached a patch
for it.

Best regards,
Marcus

On Sun, Jan 17, 2021 at 10:50 PM Stephan Witt <st.witt at gmx.net> wrote:

> Hi Marcus,
>
> thank you for your message and the good news.
>
> I’d be very glad to see your changes to the build script for Mac.
>
> My plan regarding LyX for ARM CPU is to create a universal binary with
> Intel and ARM architecture. In the past we did this with PowerPC and Intel.
> I’d guess one can do this with the current Xcode and (cross) compile Qt and
> LyX (plus all helper frameworks we’re using) on one system architecture for
> both target systems.
>
> I’m not sure how difficult this is - but it should be doable.
>
> Best regards,
> Stephan
>
> > Am 17.01.2021 um 21:36 schrieb Marcus Mikulcak <
> marcus.mikulcak at gmail.com>:
> >
> > Hi everybody,
> >
> > a few days ago I posted this message on lyx-users but was told that this
> list might be the better place for it. Here goes:
> >
> > a few months ago (November, I think?) somebody raised the question of
> LyX on Apple Silicon, how and whether it would run. As I've been using a
> LyX version that I've compiled from source (with a feature included by
> Jürgen Spitzmüller that's so far only in master - thanks again!), I was
> anxious to find out whether LyX would compile for arm64. Long story short:
> It does!
> >
> > I had to fiddle with the Mac development release script a bit to get it
> to run on Big Sur, but no major problems there either.
> >
> > If I can be of any help in testing or during the release process, just
> let me know! I'd be very happy to help.
> >
> > The last sentence stands: If I can be of any help in testing LyX on
> Apple Silicon or even in preparing a universal binary for release or
> anything like that, just me know!
> >
> > Best regards,
> > Marcus
> >
> > --
> > lyx-devel mailing list
> > lyx-devel at lists.lyx.org
> > http://lists.lyx.org/mailman/listinfo/lyx-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210119/4b607fcf/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sdk_version.patch
Type: application/octet-stream
Size: 491 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210119/4b607fcf/attachment.obj>


More information about the lyx-devel mailing list