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

Author Topic: qt sfml image  (Read 1245 times)

0 Members and 1 Guest are viewing this topic.

lorence30

  • Full Member
  • ***
  • Posts: 124
    • View Profile
    • Email
qt sfml image
« on: September 12, 2015, 07:08:07 pm »
Failed to load image "". Reason: Unable to open file
Failed to load image "". Reason: Unable to open file
Failed to load image "". Reason: Unable to open file
Failed to load image "". Reason: Unable to open file
Failed to load image "". Reason: Unable to open file

why i keep getting this one?

Actually im programming with QT along with SFML in qtcreator
the QT doesnt have a problem with "unable to open file"

theres a button on my qtgui that opens a sfml window. when the window opens it renders the images of qtgui.

the images of qtgui and the images that being rendered on the sfml window is on a same directory.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: qt sfml image
« Reply #1 on: September 12, 2015, 07:55:05 pm »
Are you mixing debug and release version of SFML and your application?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

lorence30

  • Full Member
  • ***
  • Posts: 124
    • View Profile
    • Email
Re: qt sfml image
« Reply #2 on: September 12, 2015, 08:16:42 pm »
CONFIG(release, debug|release): LIBS += -lsfml-audio -lsfml-graphics -lsfml-main -lsfml-network -lsfml-window -lsfml-system
CONFIG(debug, debug|release): LIBS += -lsfml-audio-d -lsfml-graphics-d -lsfml-main-d -lsfml-network-d -lsfml-window-d -lsfml-system-d

this is how i linked it on qt creator

 

anything