Hello.
I have been using SFML for a while with code::blocks, but I would like to use both QT and SFML together.
I can build SFML but it doesn't run. There just comes: Starting E:\QtProjects\sfml\debug\sfml.exe... and after that nothing appears and I have to kill from task manager.
Code is:
INCLUDEPATH += E:/QtSDK/Desktop/Qt/4.7.3/mingw/include
LIBS += E:/QtSDK/Desktop/Qt/4.7.3/mingw/lib/libsfml-system.a \
E:/QtSDK/Desktop/Qt/4.7.3/mingw/lib/libsfml-window.a \
E:/QtSDK/Desktop/Qt/4.7.3/mingw/lib/libsfml-graphics.a \
SOURCES += \
main.cpp \
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
int main()
{
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
// Start main loop
bool Running = true;
while (Running)
{
App.Display();
}
return EXIT_SUCCESS;
}
I have Windows 7 64-bit.