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

Author Topic: Problems with XCode  (Read 2056 times)

0 Members and 2 Guests are viewing this topic.

neos300

  • Newbie
  • *
  • Posts: 6
    • MSN Messenger - omgborg@gmail.com
    • View Profile
Problems with XCode
« on: December 27, 2010, 12:26:29 am »
So I followed the Xcode tutorial and pasted the SFML include folder into my project folder, and I can #include "SFML/Graphics.hpp", but it says that sf is not a namespace. Any idea on why this is happening?

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Problems with XCode
« Reply #1 on: December 27, 2010, 03:38:12 am »
1. Do you get an error on your #include ?

2. Are you sure you only need the Graphics header ?

3. Copying the include folder in your project folder is not what's explained in the tutorial. Most of the time you need to copy the SFML.framework directory to /Library/Frameworks.
Want to play movies in your SFML application? Check out sfeMovie!

neos300

  • Newbie
  • *
  • Posts: 6
    • MSN Messenger - omgborg@gmail.com
    • View Profile
Problems with XCode
« Reply #2 on: December 27, 2010, 03:35:47 pm »
It gives me an error when I run #include <SFML/Graphics.hpp>, it think's it doesnt exsist.

I'm running the graphics project template, and since graphics includes

On second thought, in XCode the framework names are in red and don't appear to exsist, maybe that is the problem?
How do I add frameworks in this?

neos300

  • Newbie
  • *
  • Posts: 6
    • MSN Messenger - omgborg@gmail.com
    • View Profile
Problems with XCode
« Reply #3 on: December 27, 2010, 03:44:01 pm »
Nevermind, the template had faulty linking. My bad.

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Problems with XCode
« Reply #4 on: December 27, 2010, 04:36:48 pm »
You have not installed the SFML frameworks, as explained in the tutorial.
Want to play movies in your SFML application? Check out sfeMovie!