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

Author Topic: Cannot compile SFML library for Arm64 MacMini Big Sur 11.2  (Read 8024 times)

0 Members and 1 Guest are viewing this topic.

lestroso

  • Newbie
  • *
  • Posts: 9
    • View Profile
Cannot compile SFML library for Arm64 MacMini Big Sur 11.2
« on: February 17, 2021, 09:48:16 pm »
hi, I'm trying to compile without success the sfml library...I have tried with Xcode, Netbeans, Eclipse...but nothing works here on my Macmini M1 with Big Sur 11.2...Can Somebody help me?? please?? Best regards, Lestroso :-[ :-[ :-[

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10051
    • View Profile
    • development blog
    • Email
Re: Cannot compile SFML library for Arm64 MacMini Big Sur 11.2
« Reply #1 on: February 18, 2021, 12:42:14 am »
I'd suggest starting with describing what the issues are you're encountering, otherwise how else can anyone try an help you?

Keep in mind that the M1 chip and the ARM64 architecture is very new and not fully supported by SFML out of the box.
This means, that you'll have to build all of SFML's dependencies for ARM64 and as another user has pointed out, you need to make some slight modification to the CMake scripts.
If you build for x86_64 you may potentially still use the existing pre-built libs with the macOS emulator.
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

lestroso

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Cannot compile SFML library for Arm64 MacMini Big Sur 11.2
« Reply #2 on: February 18, 2021, 05:28:32 pm »
Here I include 2 screenshots. from xcode 12.4 thanks a lot....Lestroso :( :(

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10051
    • View Profile
    • development blog
    • Email
Re: Cannot compile SFML library for Arm64 MacMini Big Sur 11.2
« Reply #3 on: February 20, 2021, 07:47:36 pm »
You need to build SFML from source and also all of SFML's dependencies from source.
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

lestroso

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Cannot compile SFML library for Arm64 MacMini Big Sur 11.2
« Reply #4 on: February 20, 2021, 07:50:35 pm »
IT's very hard... I don't know where I can start...Can you help me, please??? Best regards,
lestroso :-[

WeiZhang

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: Cannot compile SFML library for Arm64 MacMini Big Sur 11.2
« Reply #5 on: March 29, 2021, 01:55:54 pm »
use homebrew to install sfml for m1 mac! brew version's sfml has already supported m1 big sur!

https://formulae.brew.sh/formula/sfml#default
« Last Edit: March 29, 2021, 02:15:28 pm by eXpl0it3r »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10051
    • View Profile
    • development blog
    • Email
Re: Cannot compile SFML library for Arm64 MacMini Big Sur 11.2
« Reply #6 on: March 29, 2021, 02:16:05 pm »
Good news, I've just merged the dependency update PR, with that you should be able to use SFML on a device with an Apple M1 chip targeting arm64.

Additionally, a Mac Mini with an M1 chip has joined our CI fleet and is also publishing snapshot builds for those who don't want to build from source.
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

nicktitan46

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Cannot compile SFML library for Arm64 MacMini Big Sur 11.2
« Reply #7 on: December 06, 2021, 11:20:39 am »
 I don't know where I can start...Can you help me, please??? Best regards, video streaming
« Last Edit: December 08, 2021, 06:55:42 am by nicktitan46 »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10051
    • View Profile
    • development blog
    • Email
Re: Cannot compile SFML library for Arm64 MacMini Big Sur 11.2
« Reply #8 on: December 06, 2021, 12:42:42 pm »
To start you best check out the "Getting Started" tutorial section.
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/