Console application falls if I start it from Creator, but works when i just open .exe
Solved
3rd Party Software
-
Hi!
I built some small console application using SFML lib, but it falls when i run it from creator (I see only "Press <RETURN> to close this window..."), but it works if i'm starting .exe file.
I added "c:\SFML\bin" to PATH.
pro file:QT -= gui CONFIG += c++11 console CONFIG -= app_bundle DEFINES += QT_DEPRECATED_WARNINGS SOURCES += \ main.cpp #UDP.cpp # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target LIBS += -LC:/SFML/lib CONFIG(release, debug|release): LIBS += -LC:/SFML/lib/ -lsfml-window -lsfml-main -lsfml-system CONFIG(debug, debug|release): LIBS += -LC:/SFML/lib/ -lsfml-window-d -lsfml-main-d -lsfml-system-d INCLUDEPATH += C:/SFML/include DEPENDPATH += C:/SFML/include
-
@BrMisha Interesting. Usually it is other way around: it starts in QtCreator, but not outside :-)
Probably the system can't find the lib for some reason when you start the app from QtCreator.
Do you build in Debug mode?