I am making a 2D Game Engine with C++ and I want to use Qt to create a Map Editor. The problem I'm facing is that I want to use the Game Engine in my Qt Application, so I linked the game engine with qt application as static library, but the engine uses also some libraries like SDL, OpenGL and Lua, so I have problem with my linkage, I got the "undefined reference to 'SDL_Init' in my Qt Application, and I cant solve the problem.
Here is the .pro file from the Engine where I am trying to link the SDL for example:
INCLUDEPATH += /usr/include/SDL2
LIBS += -L/usr/local/lib -lSDL2
but this seems not to work. To point out, when i was using CMake as build system, everything was working ok, and also i am working under Ubuntu enviroment.