Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: M1 Support  (Read 8189 times)

0 Members and 1 Guest are viewing this topic.

cobo

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
M1 Support
« on: June 27, 2021, 02:12:30 pm »
Hello All,

Bare with me as this is my first time posting to the SFML Forum. I had just one quick question about M1 Mac Support. The current version of SFML at this time is 2.5.1, does this version support Apple Silicon out of the box if built from source using CMake?

Best Regards,
Cobo

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: M1 Support
« Reply #1 on: June 27, 2021, 03:41:02 pm »
Welcome! :)

No, SFML 2.5.1 has been released quite a while ago when the world knew nothing of an M1 chip.
Support for Apple silicon has already been merged, so you can use it by build SFML from source, or use a snapshot build.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

cobo

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: M1 Support
« Reply #2 on: June 27, 2021, 08:51:05 pm »
Thanks for the quick reply.

In your opinion, what is the best flow for getting this set up for both macOS and iOS in the same Xcode project?

I initially set up SFML in an Xcode project from the directions online by downloading the macOS SFML files. And then went through the directions for setting up a iOS target in Xcode as well. This went well as I got it to work on the iPhone by downloading SFML from source and using Cmake, but then I found that the macOS target was only working for x86.

What do you recommend? Any help would be awesome. Thx again.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: M1 Support
« Reply #3 on: July 06, 2021, 06:53:24 pm »
In your opinion, what is the best flow for getting this set up for both macOS and iOS in the same Xcode project?
I've never developed anything for iOS, but I'd say that it would probably be tricky to have it in the same project.
Personally, I'd probably stick to CMake and then generate a project file for macOS and one for iOS depending on what I'm doing, while trying to keep the code as cross-platform as possible.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

cobo

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: M1 Support
« Reply #4 on: July 07, 2021, 11:49:23 pm »
Thanks for the advice. Since we last spoke I've gone through the iOS tutorial and with my limited knowledge of working Xcode, I was able to get a target set for all 3 targets I wanted to implement: (Intel, M1, and iOS Architectures). This is all within the same Xcode project.

I wasn't able to figure out how to combine the Intel & M1 architectures into the same Xcode target though. Oh well.