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

Author Topic: Examples not working on Mac OS  (Read 893 times)

0 Members and 1 Guest are viewing this topic.

ma

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Examples not working on Mac OS
« on: February 22, 2021, 03:20:14 am »
I downloaded the SFML file for Mac OS from here: https://www.sfml-dev.org/files/SFML-2.5.1-macOS-clang.tar.gz. The examples in the example folder do not work due to missing library files.

For example the cocoa example has this missing file: @rpath/sfml-graphics.framework/Versions/2.5.1/sfml-graphics.

For the shader example it is missing this file: @rpath/sfml-graphics.framework/Versions/2.5.1/sfml-graphics.

For the Sound-capture example it is missing this file: @rpath/sfml-audio.framework/Versions/2.5.1/sfml-audio.

The install_name_tool command can be used to specify where to find these library files.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10815
    • View Profile
    • development blog
    • Email
Re: Examples not working on Mac OS
« Reply #1 on: March 03, 2021, 10:33:28 am »
Like with any shared library/framework-like setup, you need to provide the frameworks at the right place, so the example can load the SFML code.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/