Qt + SFML Compiler error

I'm trying to compile a Qt-app using SFML. I'm using qt 5.1 and SFML 2.0. I edited my .pro file to include this:

1
2
3
4
5
6
7
8
9
QMAKE_CXXFLAGS += -stdlib=libc++
QMAKE_CXXFLAGS += -std=c++11
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
QT += widgets

HEADERS += /Library/Frameworks/SFML.framework/Headers
LIBS += -framework SFML \ -framework sfml-graphics
LIBS += -framework sfml-window -framework sfml-system
LIBS += -framework sfml-audio -framework sfml-network


in order to be able to link against SFML. When I run make, I'm getting the following error:


./QSFMLCanvas.h:2:10: fatal error: 'SFML/Graphics.hpp' file not found


so obviously its not finding SFML. However I know that these includes are correct as I have been able to compile like this before, using previous Qt-versions. Anyone have any idea what I'm doing wrong?
Try using "INCLUDEPATH" instead of "HEADERS" on line 6.

http://qt-project.org/doc/qt-5.0/qtdoc/qmake-variable-reference.html#includepath
Thanks. I tried changing, still the same error, even after cleaning :/ The only thing I can think of is that sfml might not work with c++11? I'll try to change the std, or build sfml myself when I get back from work
I'm not familiar with Apple terminology, but I have a Linux app (Qt 5.0, SFML 2.0) that compiles fine and the project file is similar:

1
2
3
4
5
6
7
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

QMAKE_CXXFLAGS += -std=c++11

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


The only other thing is that if I put in a backslash like you have on line 7, I get a different error:

error: -lsfml-graphics: No such file or directory
Topic archived. No new replies allowed.