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

Author Topic: [Mac] Help Please?  (Read 3974 times)

0 Members and 2 Guests are viewing this topic.

MarcuzPwnz

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
[Mac] Help Please?
« on: January 23, 2013, 11:03:22 am »
I'm interested in using SFML, but I'm having trouble getting it to work.
I followed the tutorials page and used the wizard to instal SFML v2.0.

I am using a Mac with the following specs:
13-inch mid 2010
Processor:  2.4 GHz Intel Core 2 Duo
Memory:  4 GB 1067 MHz DDR3
Graphics:  NVIDIA GeForce 320M 256 MB
Software:  Mac OS X Lion 10.7.5 (11G63)

How I ended up with this error:

1. I create a new project from the Xcode 4 home screen
http://i.imgur.com/c2oh9k2.png

2. I then chose the SFML application
http://i.imgur.com/c2oh9k2.png

3. I then name it and leave the settings as they are
http://i.imgur.com/CkrpDjD.png

4. I am then presented with the default project and simply click run
http://i.imgur.com/0EWfAve.png

5. I am then presented with the following error
http://i.imgur.com/ZXasH1G.png

Here is the error in more detail:
http://i.imgur.com/9IwqZMX.png

I am using Xcode Version 4.5.2 (4G2008a) with the default compiler from what I know. (I didn't play around with any settings)

This works fine for creating console applications using the cstdlib.

Thanks to anyone who can help me out. :)
« Last Edit: January 23, 2013, 11:05:14 am by MarcuzPwnz »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: [Mac] Help Please?
« Reply #1 on: January 23, 2013, 11:16:41 am »
What is soooo hard to understand under "Library not found for -lsfml-system-d"? ::)

I've no idea about Xcode or anything related to a Mac, but your paths must be setup wrongly...
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

MarcuzPwnz

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Re: [Mac] Help Please?
« Reply #2 on: January 23, 2013, 11:20:00 am »
What's so hard is this is my first time EVER working with a library or anything other than the standard C++ library.

I really have no clue what's going on :s

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: [Mac] Help Please?
« Reply #3 on: January 23, 2013, 11:26:35 am »
But still 'Library not found' is understandable even to those, that have never used any library... ;)

If you have no ideas about libraries, you might want to google a bit on that topic. SFML is easy to use, but it's also not made for total beginners. You should have a solid understanding in C++ and the tools you're using, which includes what libraries are and how one can use them.

For now just open your settings and check that all paths related to SFML are valid.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

MarcuzPwnz

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Re: [Mac] Help Please?
« Reply #4 on: January 23, 2013, 11:39:34 am »
I understand "Library not found" what I don't understand is where I would even begin to fix this problem.

I know libraries are required to display 2D graphics. I use to code in Java and all that was built in, now I'm attempting C++ and I need to use libraries for everything.

Being on a Mac nothing works and no one is ever able to help. :/

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: [Mac] Help Please?
« Reply #5 on: January 23, 2013, 11:47:13 am »
@eXpl0it3r : it's a little tricky because I made a mistake when releasing the RC.

However :

http://lmgtfy.com/?q=site%3Asfml-dev.org+%22Library+not+found+for+-lsfml-system-d%22

two first links !
SFML / OS X developer

Robmanu-xx

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: [Mac] Help Please?
« Reply #6 on: January 23, 2013, 11:56:22 am »
Hi, yesterday i had the same problem but i figured it out.
First what you need to do is to go and press the "Target"
then go ahead and press Build Settings, scroll down to Search Paths
next to the Framework search paths write   /Library/Frameworks
then scroll down to Apple LLVM compiler 4.1 Language and do you see C++ standart library?
Change libc++ to the deflaut compiler.
And dont forget about adding all of the frameworks to the project.
Now You should be fine  :)

MarcuzPwnz

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Re: [Mac] Help Please?
« Reply #7 on: January 23, 2013, 12:09:49 pm »
@Robmanu-xx, Thanks :)

I did all that, the only question I have is how do I add these frameworks? :)

Robmanu-xx

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: [Mac] Help Please?
« Reply #8 on: January 23, 2013, 12:20:03 pm »
What did you already download? If you downloaded the sfml 2.0 installer the only thing you need to download is the file above that installer. http://www.sfml-dev.org/download.php After you download it open the content folder(The one you just downloaded) and press framewroks>root>library>frameworks. Once you are in that folder copy all the sfml frameworks to "/library/frameworks"
After you've done that, open your xcode project press the target and do you see the "Linked frameworks and libraries"?
Press the + sign and add other, then go to the library/frameworks(Thats the palce whre the SFML frameworks should be)  ;)

MarcuzPwnz

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Re: [Mac] Help Please?
« Reply #9 on: January 23, 2013, 12:30:31 pm »
Wow. You are honestly amazing!

Everything is working perfectly! Thank you for being so descriptive and for helping me out!

You honestly made my night. :D

Thank you so much!

Robmanu-xx

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: [Mac] Help Please?
« Reply #10 on: January 23, 2013, 12:34:49 pm »
Glad I could help  :)

 

anything