1
DotNet / Re: Definitive guide to SFML.NET on OSX
« on: March 01, 2016, 08:42:49 am »
Hiya guys. I thought it would be important to share my success story following problems with this tutorial. If somebody important could update the wiki that would probably be beneficial, haha (that's why I'm posting here)
So I ran through this tutorial, twice, to the letter, and I could not get it to work (I'm on El Capitan). My project compiled fine, but would crash upon running with a DllNotFoundException saying it could not find "libcsfml-graphics.2.1.dylib"
Turns out the problem was during the InstallNameToolGui tool steps. The tutorial explains that changing the path to only the filename suffices.... it does not. I had to define the explicit full path to the file, and only then did I get a successful run with the test red screen.
Here's an example of what my successful libcsfml-graphics.2.1.dylib file looks like in InstallNameToolGui. Defining the full path is all I needed to do differently. I hope this helps some other lost soul in the future!
So I ran through this tutorial, twice, to the letter, and I could not get it to work (I'm on El Capitan). My project compiled fine, but would crash upon running with a DllNotFoundException saying it could not find "libcsfml-graphics.2.1.dylib"
Turns out the problem was during the InstallNameToolGui tool steps. The tutorial explains that changing the path to only the filename suffices.... it does not. I had to define the explicit full path to the file, and only then did I get a successful run with the test red screen.
Here's an example of what my successful libcsfml-graphics.2.1.dylib file looks like in InstallNameToolGui. Defining the full path is all I needed to do differently. I hope this helps some other lost soul in the future!