SFML community forums

Help => General => Topic started by: BlastlessAnthony on January 13, 2023, 08:25:34 pm

Title: CSFML on macOS (12.x) crashes on start
Post by: BlastlessAnthony on January 13, 2023, 08:25:34 pm
I tried to run a CSFML program that I compiled (and obviously linked) but when I tried to create a window the program will just crash and the error I got back was:
(click to show/hide)

I don't really know what any of this means... because I'm a Windows developer. Probably not a valid excuse though.


Here is the code:
(click to show/hide)

(click to show/hide)
Title: Re: CSFML on macOS (12.x) crashes on start
Post by: eXpl0it3r on January 13, 2023, 10:01:09 pm
Did you build CSFML yourself?
If so, did you link SFML statically into it?
Title: Re: CSFML on macOS (12.x) crashes on start
Post by: BlastlessAnthony on January 13, 2023, 11:34:05 pm
Oh... that might be the problem. I didn't build CSFML myself but instead used the pre-compiled libraries in the github releases (https://github.com/SFML/CSFML/releases/tag/2.5.1). I didn't think I would need to compile it from source because of that.

Also I dynamically linked CSFML and used RUNPATH.