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

Author Topic: [OSX] SFML installation with Qt  (Read 3173 times)

0 Members and 1 Guest are viewing this topic.

DigiByte

  • Newbie
  • *
  • Posts: 11
    • View Profile
[OSX] SFML installation with Qt
« on: November 09, 2013, 11:50:36 am »
Hey all!

It's been a while since i've been programming, but i decided to pick up SFML again. At least, that was my intention.
I already had some problems installing SFML in the past, and now I'm having trouble again..

I downloaded the full Qt IDE (5.2 beta -> Mavericks compatible), and I downloaded the most recent version of SFML for Mac (the Clang version, since I use Clang with Qt to compile). I copied the content of "include" to /usr/local/include, and the content of "lib" to /usr/local/lib. And I tried to link the libs and the includepath this way:

LIBS += -L"/usr/local/lib" -lsfml-window -lsfml-graphics -lsfml-system
INCLUDEPATH = "/usr/local/include/SFML"

So, this is how my .pro file looks like. But when I try to build a simple black window, I get the following error:
/Users/Jonas/Desktop/SFML_test/main.cpp:1: error: 'SFML/Graphics.hpp' file not found
#include <SFML/Graphics.hpp>
         ^

The strange thing is, in my opininion, that the auto-fill-in works fine using SFML specific functions...

I'd appreciate any help!

Jonas
having some troubles installing SFML on my mac...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: [OSX] SFML installation with Qt
« Reply #1 on: November 09, 2013, 02:58:40 pm »
"/SFML" is part of what you include (<SFML/Graphics.hpp>), don't put it again in your INCLUDEPATH.
Laurent Gomila - SFML developer

DigiByte

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [OSX] SFML installation with Qt
« Reply #2 on: November 10, 2013, 10:17:07 am »
Thanks for the reply!

That one error seems to be gone now, but I've got 2 new ones:

:-1: error: symbol(s) not found for architecture x86_64
:-1: error: linker command failed with exit code 1 (use -v to see invocation)

Just to be sure, I re-installed SFML 2.1 using the "install.sh" script, but it didn't solve the porblem.
Any idea how I can solve this?
having some troubles installing SFML on my mac...

DigiByte

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [OSX] SFML installation with Qt
« Reply #3 on: November 12, 2013, 08:16:55 pm »
*bump*
having some troubles installing SFML on my mac...

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: [OSX] SFML installation with Qt
« Reply #4 on: November 16, 2013, 09:04:54 pm »
That one error seems to be gone now, but I've got 2 new ones:

:-1: error: symbol(s) not found for architecture x86_64
:-1: error: linker command failed with exit code 1 (use -v to see invocation)

the interesting part of the error message is above those two lines.
SFML / OS X developer

andresp

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: [OSX] SFML installation with Qt
« Reply #5 on: February 23, 2014, 06:04:11 pm »
Hey all, I have the same problem, what was the solution in this case?

Osx: Mavericks
QT version: 5.2.1
SFML 2.1

 

anything