1
General / 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.
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.