FLTK logo

[fltk.general] Success: Natively built FLTK on ARM64 (Apple Silicon) macOS!

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Success: Natively built FLTK on ARM64 (Apple Silicon) macOS! "fischer... Nov 24, 2020  
 
Just wanted to report that I successfully built 1.4.x (Build 20201120-aa140973) on my M1 MacBook Air natively. To compile FLTK, nothing special was needed:

    make clean
    ./configure --enable-localpng --enable-localzlib
    make

Using lipo shows that the compiled test applications are indeed built for ARM:

    sf@Air-von-Stefan test % lipo ./blocks -archs
    arm64

I used this FLTK build to statically build my (commercial) application and again used lipo to create the universal binary:

    lipo -create application-binary-arm application-binary-intel -output application-binary-fat

application-binary-fat then replaced the single architecture binary within the .app bundle created by my build script (a Bash file). Signing and notarizing the .app bundle was then straightforward as always.

Having received my M1 MacBook on Friday, I was already able to ship a universal binary for my application on Monday. So I want to thank all the FLTK developers for their great work!


--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/db30ad15-e0d2-4480-903f-72d751955408n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.