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

Author Topic: CSFML on macOS (12.x) crashes on start  (Read 899 times)

0 Members and 1 Guest are viewing this topic.

BlastlessAnthony

  • Newbie
  • *
  • Posts: 5
    • View Profile
CSFML on macOS (12.x) crashes on start
« 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)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: CSFML on macOS (12.x) crashes on start
« Reply #1 on: January 13, 2023, 10:01:09 pm »
Did you build CSFML yourself?
If so, did you link SFML statically into it?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

BlastlessAnthony

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: CSFML on macOS (12.x) crashes on start
« Reply #2 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. I didn't think I would need to compile it from source because of that.

Also I dynamically linked CSFML and used RUNPATH.
« Last Edit: January 13, 2023, 11:35:55 pm by BlastlessAnthony »

 

anything