SFML community forums

General => General discussions => Topic started by: lestroso on February 17, 2021, 09:48:16 pm

Title: Cannot compile SFML library for Arm64 MacMini Big Sur 11.2
Post by: lestroso 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 :-[ :-[ :-[
Title: Re: Cannot compile SFML library for Arm64 MacMini Big Sur 11.2
Post by: eXpl0it3r 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 (https://github.com/SFML/SFML/pull/1750), 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.
Title: Re: Cannot compile SFML library for Arm64 MacMini Big Sur 11.2
Post by: lestroso on February 18, 2021, 05:28:32 pm
Here I include 2 screenshots. from xcode 12.4 thanks a lot....Lestroso :( :(
Title: Re: Cannot compile SFML library for Arm64 MacMini Big Sur 11.2
Post by: eXpl0it3r on February 20, 2021, 07:47:36 pm
You need to build SFML from source and also all of SFML's dependencies from source.
Title: Re: Cannot compile SFML library for Arm64 MacMini Big Sur 11.2
Post by: lestroso 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 :-[
Title: Re: Cannot compile SFML library for Arm64 MacMini Big Sur 11.2
Post by: WeiZhang 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
Title: Re: Cannot compile SFML library for Arm64 MacMini Big Sur 11.2
Post by: eXpl0it3r on March 29, 2021, 02:16:05 pm
Good news, I've just merged the dependency update PR (https://github.com/SFML/SFML/pull/1761), 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 (https://artifacts.sfml-dev.org/by-branch/master/) for those who don't want to build from source.
Title: Re: Cannot compile SFML library for Arm64 MacMini Big Sur 11.2
Post by: nicktitan46 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 (https://get-mobdro.com/home/)
Title: Re: Cannot compile SFML library for Arm64 MacMini Big Sur 11.2
Post by: eXpl0it3r on December 06, 2021, 12:42:42 pm
To start you best check out the "Getting Started" tutorial section (https://www.sfml-dev.org/tutorials/2.5/#getting-started).