Not really sure whether to ask this here or on the qt forums, but here I am so hopefully someone can help (:.
All I'm trying to do is include sfml(2.3.2) into my qt creator project using qmake on linux. In my project directory I have the headers in an 'include' folder and the libraries in a 'lib' folder. I then added two lines to my .pro file:
LIBS += -L$$PWD/lib -lsfml-graphics -lsfml-window -lsfml-system
INCLUDEPATH = $$PWD/include
Seems straight forward. But it crashes with SIGABRT
The code I'm running is just a simple test:
#include "SFML/Graphics.hpp"
int main(){
sf::RenderWindow window(sf::VideoMode(100,100), "window");
while(window.isOpen()){
sf::Event event;
while(window.pollEvent(event)){
if(event.type==sf::Event::EventType::Closed){
window.close();
}
}
window.display();
}
return 0;
}
Thanks for reading