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

Author Topic: SFML 1.6 XCODE 4.1 installation  (Read 2464 times)

0 Members and 1 Guest are viewing this topic.

hardan

  • Newbie
  • *
  • Posts: 3
    • View Profile
SFML 1.6 XCODE 4.1 installation
« 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

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
SFML 1.6 XCODE 4.1 installation
« Reply #1 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.
SFML / OS X developer

hardan

  • Newbie
  • *
  • Posts: 3
    • View Profile
SFML 1.6 XCODE 4.1 installation
« Reply #2 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.

Aranri

  • Newbie
  • *
  • Posts: 6
    • AOL Instant Messenger - Avenue+du+Silo+1
    • View Profile
SFML 1.6 XCODE 4.1 installation
« Reply #3 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?:




Or what else could be the problem?

Bitbridge

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • Manuel Reinfurt - Website
SFML 1.6 XCODE 4.1 installation
« Reply #4 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.

Aranri

  • Newbie
  • *
  • Posts: 6
    • AOL Instant Messenger - Avenue+du+Silo+1
    • View Profile
SFML 1.6 XCODE 4.1 installation
« Reply #5 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?

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
SFML 1.6 XCODE 4.1 installation
« Reply #6 on: October 30, 2011, 10:24:07 am »
sf::Texture is part of SFML 2, not SFML 1.6.
Want to play movies in your SFML application? Check out sfeMovie!

 

anything