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

Author Topic: Installing on Mac (Xcode)  (Read 20922 times)

0 Members and 1 Guest are viewing this topic.

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Installing on Mac (Xcode)
« Reply #15 on: November 06, 2011, 03:51:28 pm »
The "Where is the source code" field is wrong : remove /src/SFML and it should work.
SFML / OS X developer

thecruuk

  • Newbie
  • *
  • Posts: 6
    • View Profile
Installing on Mac (Xcode)
« Reply #16 on: November 06, 2011, 07:56:31 pm »
thank you so much : D

himatako

  • Newbie
  • *
  • Posts: 2
    • AOL Instant Messenger - 96+Pakprak+Banne
    • View Profile
Installing on Mac (Xcode)
« Reply #17 on: November 20, 2011, 12:15:00 pm »
I tried to run from XCode4.2, but it gave me this error

Code: [Select]

Command /bin/sh failed with exit code 2


Can somebody please help me fix this? Thank you!


EDITED :

After proceeding to use makefile instead, I think I successfully created shared libraries. However, for some reasons, the XCode4 template is never installed and I have to install manually. I checked the flag already, and I have done this three or four times so I'm sure I didn't miss the flag.

Now that I create XCode4 SFML project, I can't compile it. The error it gave me is

Code: [Select]

ld: framework not found sfml-system
Command /Developer/usr/bin/clang++ failed with exit code 1


However, I have included all the libsfml-xxx.dylib already. What seems to be the problem here?

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Installing on Mac (Xcode)
« Reply #18 on: November 20, 2011, 07:22:20 pm »
Q & A : https://github.com/SFML/SFML/blob/master/xcode/templates/readme.txt

Quote
However, for some reasons, the XCode4 template is never installed and I have to install manually. I checked the flag already
Did you click on "Configure" after checking the checkbox ?
SFML / OS X developer

himatako

  • Newbie
  • *
  • Posts: 2
    • AOL Instant Messenger - 96+Pakprak+Banne
    • View Profile
Installing on Mac (Xcode)
« Reply #19 on: November 21, 2011, 04:08:53 am »
Quote from: "Hiura"
Q & A : https://github.com/SFML/SFML/blob/master/xcode/templates/readme.txt

Quote
However, for some reasons, the XCode4 template is never installed and I have to install manually. I checked the flag already
Did you click on "Configure" after checking the checkbox ?


Thanks for the readme link! I'll follow it and see what happens.

As for the template, yes, I made sure that all the items in the configure menu were white before I click generate.

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Installing on Mac (Xcode)
« Reply #20 on: November 21, 2011, 10:53:53 am »
You need to validate your changes by clicking "configure" before generating the Makefile (see CMake tutorial on the main web site).
SFML / OS X developer

Phalanx

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://gameandcode.com
Installing on Mac (Xcode)
« Reply #21 on: November 22, 2011, 08:23:30 am »
First post. Hello, and thanks so much for all of the work on SFML!

In response to the original thread question -- I'm completely new to this, and have decided to document my experience. Installing SFML 2 on Xcode 4 took me about 4 hours (mainly due to me skipping steps or not reading correctly). Here is a basic walkthrough that groups together all of the help resources on this site:

http://gameandcode.com/post/13145870775/sfml-2-0-with-xcode-4
Wannabe Game Developer
Game & Code

sbroadfoot90

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Installing on Mac (Xcode)
« Reply #22 on: November 22, 2011, 10:30:47 pm »
Thanks for your lovely post phalanx! Your explanation is quite good and nicely laid out :)

DigiByte

  • Newbie
  • *
  • Posts: 11
    • View Profile
Installing on Mac (Xcode)
« Reply #23 on: November 27, 2011, 01:44:10 pm »
the link in your tutorial you gave (abroad) is dead...And now i can't find the git repository. https://github.com/SFML/SFML i think this is the same, but there isn't a button like in your first screenshot "clone to mac". So i don't know where i have to get it.

Please help me! :) [/url]
having some troubles installing SFML on my mac...

sbroadfoot90

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Installing on Mac (Xcode)
« Reply #24 on: November 30, 2011, 11:41:52 am »
I just checked all the links in my post. They all work.

If you are talking about this bit here, which turns out to have become a link without me adding url tags,

Quote from: "sbroadfoot90"

$ cd ~
$ git clone https://github.com/SFML/SFML.git


this is not meant to be clicked on, this is something you type into your terminal to clone the git repository.

The clone in mac button should come up if you are using a mac, if it doesn't come up, just clone using the command line using the two commands I just quoted.

Dominater

  • Newbie
  • *
  • Posts: 1
    • View Profile
Installing on Mac (Xcode)
« Reply #25 on: December 08, 2011, 12:47:20 am »
Hey Everyone,

I'm trying to get it to work on Xcode 4 on Lion OS

However the Templates are not being installed correctly, I tried both manually and using cmake as in here.

I checked the Templates checkbox for sure(did it twice),

I:
typed in the paths
clicked configure
checked all the checkboxes
clicked configure
clicked generate


After I clicked the configure for the second time, all the checkboxes unchecked itself, is this what's suppose to happen?


Thanks

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Installing on Mac (Xcode)
« Reply #26 on: December 08, 2011, 10:19:52 am »
Quote from: "Dominater"
However the Templates are not being installed correctly, I tried both manually and using cmake as in here.
What do you mean exactly ? When you install them manually they don't appear in Xcode ?  They don't work as expected ? .... ?
SFML / OS X developer

dotty

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Installing on Mac (Xcode)
« Reply #27 on: January 12, 2012, 10:51:22 pm »
Hello, I followed this on OS X 10.6.8 and it installed fine! However, I don't seem to have the XCODE templates for XCODE (Version 3.2.6 (1761)).

I still have the old templates for 1.6. So when I load up a new project, and I hit "run" I get errors.

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
SFML / OS X developer