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

Author Topic: How to install SFML in OS X avoiding XCode  (Read 2182 times)

0 Members and 1 Guest are viewing this topic.

AritzBi

  • Newbie
  • *
  • Posts: 2
    • View Profile
How to install SFML in OS X avoiding XCode
« on: July 18, 2013, 01:59:06 am »
Hi!

I've just started trying to develop something in OS X and I am having some issues in the installation. I want to install SFML to compile and use it only from command lines, avoiding XCode. So, my doubt is how should I install SFML to compile a file with a similar command to this : "g++ main.o -o sfml-app -lsfml-graphics -lsfml-window -lsfml-system"

Thanks in advance.

Jebbs

  • Sr. Member
  • ****
  • Posts: 358
  • DSFML Developer
    • View Profile
    • Email
Re: How to install SFML in OS X avoiding XCode
« Reply #1 on: July 18, 2013, 04:06:46 am »
You'll probably want to look into clang. I believe that's the compiler x code would use anyways.
DSFML - SFML for the D Programming Language.

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: How to install SFML in OS X avoiding XCode
« Reply #2 on: July 18, 2013, 12:05:56 pm »
It works like on Linux when you install the dylibs. With the frameworks version, you need to use -framework sfml-module instead of -lsfml-module.

What are your current issue exactly?
SFML / OS X developer

AritzBi

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: How to install SFML in OS X avoiding XCode
« Reply #3 on: July 18, 2013, 12:50:13 pm »
Thank you all for your answers.

I've been used to use aptitude for downloading all the required libraries so I don't have experience installing new libraries manually neither in linux nor in OS X. That's why I've been reading and I've found that all the libraries should be located in /usr/local, am I right? I've noticed that in the SFML's folder that I've download are some folders as include, lib, extlibs... Those folders should be inserted in that /usr/local path to be recognised by clang or c++?

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: How to install SFML in OS X avoiding XCode
« Reply #4 on: July 18, 2013, 01:19:23 pm »
You'll find all the details here : http://www.sfml-dev.org/tutorials/2.0/start-osx.php
SFML / OS X developer