Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to include SDL lib
Hi, Qt community.
I have some truble with icluding SDL lib in Qt 5.2.1.
Anybody do it?
In *.pro i write:
INCLUDEPATH += C:/SDL-1.2.15/include/SDL
LIBS += C:/SDL-1.2.15/lib -lSDL
QT += core gui
And when i compile it, I have three errors:
:-1: error: cannot find C:/SDL-1.2.15/lib: Permission denied
:-1: error: cannot find -lSDL
collect2.exe:-1: error: error: ld returned 1 exit status
What does it means?
Community help me pleas.
You are missing a -L before C:/SDL-1.2.15/lib
So it should be
@LIBS += -LC:/SDL-1.2.15/lib -lSDL@
Oh thanks, I don't know about it!
I write my projekt, hi is compilet, but don't started.
I think it is a problem with SDL lib, I del all my projekt and write simple program.
then I build it.
But when I started I have an error 0cx0000139.
It means you are missing one or several dlls which I suspect are those from SDL. Go to the Project panel -> run and update the PATH variable adding the path to your SDL dlls. Then you should be good to go