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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - PaulTheGeek

Pages: [1]
1
General / Re: Building the SFML aplication on MAC - sfml-system-d not found
« on: November 28, 2012, 04:54:49 pm »
To fix this issue you will need to change the compiler settings within Xcode. This is somewhat referenced in the setup tutorial http://www.sfml-dev.org/tutorials/2.0/start-osx.php eXpl0it3r mentioned. The specific section is in the introduction section under the C++11 subsection. However I will admit it that the tutorial does not work out of the box as it seems Xcode sets the default C++ Standard Library to custom version Apple ships with Xcode. Let me know If I am wrong on this point.

Anyway, to the meat of the matter. To fix this issue please follow these steps:
1. Go to the Build Settings for you project
2. Go to the Apple LLVM compiler 4.1 - Language section
3. You will see a C++ Standard Library option. There will be three options here and you want to choose Compiler Default

I included a screenshot so you can see where this is incase you are unsure if you are on the proper screen. Let me know if this helps.

[attachment deleted by admin]

2
Thanks!! Editing the templates worked like a charm.

3
I installed 2.0 using the OSX installer from the download page. I am trying to run the simple window tutorial, but I receive this error:

ld: library not found for -lsfml-system
clang: error: linker command failed with exit code 1 (use -v to see invocation)

However I can compile and run the program when I reference the libraries in the terminal with this command:

g++ -I SFML/include window.cpp -o window.out -lsfml-system -lsfml-window

To be clear when I compile from terminal it is the same code but in a folder sitting on the desktop with the SFML folder sitting in the same folder with the file. I am not sure that helps explain what is going on.

Anyone have an idea of what is going on?

Pages: [1]
anything