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

Author Topic: Installing SFML 2.1 onto xCode 5 (Mac)?  (Read 3022 times)

0 Members and 1 Guest are viewing this topic.

AndreeU17

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Installing SFML 2.1 onto xCode 5 (Mac)?
« on: May 27, 2014, 03:37:19 am »
So i managed to do everything as normal, according to the tutorial for installing SFML 2.1 onto xCode 5

The only part i don't understand is this:

"SFML is shipped with an install.sh script that will install everything for you. It will also make sure that previous versions of SFML, especially frameworks, are not removed from your system so that your applications can still be executed without modifications. You just need to open a terminal in the directory of the downloaded SDK and run ./install.sh. The script will then prompt for your password and install everything in the right place."

How do i install the necessary stuff needed when using the install script and terminal?
I understand programming but i have no idea about using the Terminal preferably the mac terminal.
The sdk is in this directory:
/Users/jonathanvazquez/Documents/Programming Development/C++ Development/SFML2.1Clang
and the install script is in:
/Users/jonathanvazquez/Documents/Programming Development/C++ Development/SFML2.1Clang/install.sh

But when i insert that into terminal, it says, No such directory, etc.

How can i install it?

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Installing SFML 2.1 onto xCode 5 (Mac)?
« Reply #1 on: May 27, 2014, 09:47:19 am »
If you haven't done any basic shell programming (or simply used a shell before) I recommend you to do so; you could then use a larger set of tools for development.

Anyway, here is how you should do it:

1. Open Terminal.app
2. Type «cd "/Users/jonathanvazquez/Documents/Programming Development/C++ Development/SFML2.1Clang"» (without « and »)
3. type «./install.sh» (again, without « and »)

The quotes " around the path are important since you have spaces in it.

SFML / OS X developer

AndreeU17

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: Installing SFML 2.1 onto xCode 5 (Mac)?
« Reply #2 on: May 28, 2014, 03:04:58 am »
i looked into a basic terminal programming, but i didn't think that cd was what i needed, since cd means "Change Directory"

I took a quarter of Linux but wasn't incredibly intrigued maybe thats why i dont remember any bash or any shell scripting.
My curiosity before i try, after the directory, do i just include the Clang/install.sh
or must i insert the directory first then enter ./install.sh

Update:
I did this on terminal and got this answer
jonathans-mbp:~ jonathanvazquez$ cd /Users/jonathanvazquez/Documents/Programming Development/C++ Development/SFMl2.1 Clang/install.sh

-bash: cd: /Users/jonathanvazquez/Documents/Programming: No such file or directory
jonathans-mbp:~ jonathanvazquez$

And the install.sh is inside the sfml folder, What now?

ANother Update:
I realize a typo and got it fixed but now i get this error

jonathans-mbp:~ jonathanvazquez$ jonathans-mbp:~ jonathanvazquez$ cd /Users/jonathanvazquez/Documents/Programming Development/C++ Development/SFML2.1 Clang/install.sh

-bash: jonathans-mbp:~: command not found
jonathans-mbp:~ jonathanvazquez$
« Last Edit: May 28, 2014, 03:09:14 am by AndreeU17 »

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Installing SFML 2.1 onto xCode 5 (Mac)?
« Reply #3 on: May 28, 2014, 09:27:15 am »
READ the answer I gave you above.

« ≠ "
SFML / OS X developer

AndreeU17

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: Installing SFML 2.1 onto xCode 5 (Mac)?
« Reply #4 on: May 28, 2014, 07:06:22 pm »
okay now i get this problem :(
ditto: /usr/local/lib/: Permission denied
Couldn't install lib/

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Installing SFML 2.1 onto xCode 5 (Mac)?
« Reply #5 on: May 28, 2014, 07:31:38 pm »
It seems you don't have the same permission as I do on /usr/local. Here, use the attached script instead. It should work better.
SFML / OS X developer

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: Installing SFML 2.1 onto xCode 5 (Mac)?
« Reply #6 on: May 28, 2014, 07:32:15 pm »
Become a user with more privileges (like root). Look up "su" and "sudo". Or, install to a different location where you do have write permission (like your home directory).

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Installing SFML 2.1 onto xCode 5 (Mac)?
« Reply #7 on: May 28, 2014, 11:46:57 pm »
The script was supposed to take care of that. The one in my previous message should do it correctly.
SFML / OS X developer

 

anything