SFML community forums

Help => General => Topic started by: hardan on October 03, 2011, 06:15:49 pm

Title: SFML 1.6 XCODE 4.1 installation
Post by: hardan on October 03, 2011, 06:15:49 pm
been googling for some time now with bad results.
followed SFML guides from many places the "offical" one to but it wont work.

i copied the /lib64 to /library/frameworks but it wont compile
do i need to change som settings or do i just need to paste it there?
theres a SFML folder /include/SMFL with .hpp files and directoris. where do i paste that?
should i paste the entier folder somewhere?
please write or link to a guide in english or swedish.
regards
Title: SFML 1.6 XCODE 4.1 installation
Post by: Hiura on October 03, 2011, 06:58:44 pm
http://www.sfml-dev.org/tutorials/1.6/start-osx.php , read § Installing SFML (skip Xcode template part - they are not compatible with Xcode 4). Then it works the same way as with other frameworks (create a default C++ project to start our own one). Read apple documentation about Xcode/frameworks for further information.

If "errors" persist come back here and tell us exactly what you did and what doesn't work. Please be more precise than "it doesn't work" otherwise we won't be able to help you.
Title: SFML 1.6 XCODE 4.1 installation
Post by: hardan on October 03, 2011, 07:41:43 pm
yeah i know i was a bit short but i was in a hurry.
but it works now!
i had to link binaries.
on the side there you projectname is you go to target ->build phases and there you drag your frameworks to that link binary with kibrarys.

hopefully this can help someone in the future.


Quote from: "Hiura"
http://www.sfml-dev.org/tutorials/1.6/start-osx.php , read § Installing SFML (skip Xcode template part - they are not compatible with Xcode 4). Then it works the same way as with other frameworks (create a default C++ project to start our own one). Read apple documentation about Xcode/frameworks for further information.

If "errors" persist come back here and tell us exactly what you did and what doesn't work. Please be more precise than "it doesn't work" otherwise we won't be able to help you.
Title: SFML 1.6 XCODE 4.1 installation
Post by: Aranri on October 29, 2011, 03:18:00 pm
Hello Hiura

I tried to follow the guide and left out the templates.
But when I tried to compile a simple program (like opening a window, with a sprite etc.) I get the following errors:

/Users/myName/Desktop/Test/Test/main.cpp:12:9:{12:5-12:9}: error: no member named 'Texture' in namespace 'sf' [3]
file://localhost/Users/myName/Desktop/Test/Test/main.cpp: error: Semantic Issue: No member named 'Text' in namespace 'sf'

etc.. (there are 8 issues in total)

I copied the main text from the short example of the docuentation, so there shouldn't be any errors.

Did I link all the libraries?:


(https://lh6.googleusercontent.com/-GFi0CyHwqpA/Tqv8vuXlvxI/AAAAAAAAALs/glK9u8u6nLg/s780/Screen%2BShot%2B2011-10-29%2Bat%2B15.16.07.png)

Or what else could be the problem?
Title: SFML 1.6 XCODE 4.1 installation
Post by: Bitbridge on October 29, 2011, 03:22:24 pm
Did you copy the SFML header files to /usr/local/include? If you didn't, you have to set the 'user header search paths' to your directory containing the SFML header files.

I'm talking about this directory (https://github.com/SFML/SFML/tree/master/include).
Title: SFML 1.6 XCODE 4.1 installation
Post by: Aranri on October 29, 2011, 04:45:45 pm
No i didn't have them there, but even after I put them there, i get the same issues.

So that didn't solve my problem.

How would I set the user header search paths to a specific directory?
Title: SFML 1.6 XCODE 4.1 installation
Post by: Ceylo on October 30, 2011, 10:24:07 am
sf::Texture is part of SFML 2, not SFML 1.6.