SFML2 +QtCreator + MacOSX
Im making a little tutorial about configure SFML in all systems using QtCreator IDE and i want configure now with MACOSX.
Everything is OK when i build the project, i download the version RC for mac, extract to a path and link with my .pro and i compie with success.
But when i will run i got error:
[quote]dyld: Library not loaded: @executable_path/../Frameworks/libsfml-system.2.dylib
Referenced from: /Users/paulo/Pessoal/workspaces/qt/sfml-project-build-desktop-Qt_4_8_1__gcc__Debug/sfml-project.app/Contents/MacOS/sfml-project
Reason: image not found
Press <RETURN> to close this window...
This is my .pro:
[quote]TEMPLATE = app
CONFIG += console
CONFIG -= qt
SOURCES += main.cpp
INCLUDEPATH += "/Users/paulo/Pessoal/downloads/cpp/sfml/dylibs/root/usr/local/include"
LIBS += -L"/Users/paulo/Pessoal/downloads/cpp/sfml/dylibs/root/usr/local/lib"
My project when build, generate the path:
If i run the binary inside it, called: sfml-project , i get that error
So what i do? I have created a new directory:
And copy all this files to it:
And when i run the binary, it works!
But i need do it direct from QtCreator or link/auto-copy it to correct location.
I solve the problem. Thanks
[quote author="prsolucoes" date="1334990836"]Hi.
I solve the problem. Thanks[/quote]
Could you quickly add here how you solved it? It may be interesting for other users later.
I solve the problem on mac, but on windows i cant copy all DLLS, can you see the problem?
The solution is in repository of the project.
All is here: