Hey Guys,
I am using SFML 2.0 in QT Creator 2.7.0. Well, actually I would like to
.
I dowloaded this :
http://sfml-dev.org/download/sfml/2.0/SFML-2.0-windows-gcc-4.7-mingw-32bits.zipI am using MinGW 4.7 in QT Creator.
And this is the code in my .pro file:
TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle
CONFIG -= qt
SOURCES += main.cpp
# SFML
CONFIG(release, debug|release): LIBS += -lsfml-audio -lsfml-graphics -lsfml-network -lsfml-window -lsfml-system
CONFIG(debug, debug|release): LIBS += -lsfml-audio-d -lsfml-graphics-d -lsfml-network-d -lsfml-window-d -lsfml-system-d
# Windows
LIBS += -LE:/Coden/SFML/SFML_2_MinGW/lib
INCLUDEPATH += E:/Coden/SFML/SFML_2_MinGW/include
DEPENDPATH += E:/Coden/SFML/SFML_2_MinGW/include
And this is the code in the main.cpp
#include <iostream>
#include <SFML/Graphics.hpp>
using namespace std;
int main()
{
sf::VideoMode VMode(500,800);
sf::RenderWindow Window(VMode,"Stoppuhr"); //Creating window
while(Window.isOpen())
{
Window.clear();
Window.display();
}
cout << "Hello World!" << endl;
return 0;
}
It builds properly, but when I start the program the window doesn't even show up. There is just the cmd which says "Press enter to close the window". If I start in Debug I get this error message:"During start up program exited with code 0x0000135"
Could anyone please help me out with that?
Additional infomation:
I tried this on my PC and on my Laptop.
Both are state of the art
SFML runs in VS (with another SFML folder I did not mix them or anything)
I tried it for days now.Please somebody help me