Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Very strange SFML string behaviour in qt creator  (Read 7175 times)

0 Members and 1 Guest are viewing this topic.

Octav23

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Very strange SFML string behaviour in qt creator
« Reply #15 on: January 09, 2013, 09:41:36 pm »
OK here's what I tried: I uninstalled the entire QT sdk and IDE from my computer and re-downloaded SFML in the same location, however now it won't even recognize the SFML setting. It's the same .pro file as before:

TEMPLATE = app
CONFIG += console
CONFIG -= qt

INCLUDEPATH += F:/SFML-2.0-rc/include
INCLUDEPATH += D:/boost_1_51_0

LIBS += -LF:/SFML-2.0-rc/lib

CONFIG(release, debug|release): LIBS += -lsfml-audio -lsfml-graphics -lsfml-network -lsfml-system -lsfml-window
CONFIG(debug, debug|release): LIBS += -lsfml-audio-d -lsfml-graphics-d -lsfml-network-d -lsfml-system-d -lsfml-window-d

SOURCES += main.cpp

However it's telling me "Cannot open include file  'SFML/System.hpp': No such file or directory and all I did was #include <SFML/System.hpp>

Is my .pro file alright? Why is it so difficult to set up SFML on qt creator?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Very strange SFML string behaviour in qt creator
« Reply #16 on: January 09, 2013, 10:16:29 pm »
I have no idea what's wrong, your project file looks good. But since I can't check what's on your hard drive and where it is, I can't say if it should work or not.

It's not more difficult to setup SFML with QtCreator. Include paths, linker paths, input libraries, it's the same stuff everywhere. And yet people continue to have problems because of stupid errors, whatever IDE they use ;)
Laurent Gomila - SFML developer

Octav23

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Very strange SFML string behaviour in qt creator
« Reply #17 on: January 10, 2013, 02:32:35 pm »
For some reason restarting my computer magically made SFML work again on the fresh install of qt creator. I'll run a test again and tell you what happens.

Octav23

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Very strange SFML string behaviour in qt creator
« Reply #18 on: January 10, 2013, 02:37:25 pm »
Everything works now. A fresh install of qt creator did the trick (God I've been struggling for this for a long time).

Thank you a ton Laurent, your graphical library has helped me immensely in my career as a beginner game developer, it's truly a gem in the many graphical libraries out there and I'll never switch to anything else  :D

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Very strange SFML string behaviour in qt creator
« Reply #19 on: January 10, 2013, 02:38:54 pm »
Thank you :)

I'm glad you solved your problem.
Laurent Gomila - SFML developer

 

anything