Running SDL library in Qt Creator

43 Views Asked by At

so ive been trying to run this monopoly code using Qt creator IDE. I also have used SDL to try and render the project. It keeps giving me that it cannot find -ISDL, although in my .pro file i included the appropriate paths

LIBS += -L C:/Users/user/Downloads/SDL2-devel-2.30.1-mingw/SDL2/x86_64-w64-mingw32/lib -lSDL
INCLUDEPATH += C:/Users/user/Downloads/SDL2-devel-2.30.1-mingw/SDL2/x86_64-w64-mingw32/include/SDL2

I tried including the SDL.dll application file into my debug/build fil of the project but it also didnt work. I'm out of ideas. Maybe its something Im missing.

1

There are 1 best solutions below

1
Sam Lantinga On

Try using -lSDL2 instead of -lSDL