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

Author Topic: Release Build Has No Graphics  (Read 996 times)

0 Members and 1 Guest are viewing this topic.

collechess

  • Newbie
  • *
  • Posts: 10
    • View Profile
Release Build Has No Graphics
« on: May 23, 2013, 10:49:22 pm »
Let me first say that I'm not sure if my problem is with SFML or Visual C++ 2010.  I'm hoping somebody can help me either way  :).  I have an SFML program that works fine in Debug, and even after building Release and running it from Visual C++ it runs fine.  However, when I run the Release .exe in its location, without the IDE, the graphics do not show up at all.    I have changed the SFML .libs to static, and have added the only image file to the Resource files (I'm not sure if this is needed).  Any solutions?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Release Build Has No Graphics
« Reply #1 on: May 23, 2013, 10:54:45 pm »
Don't add the image to the resource file. Keep it in the folder of the executable, and make sure you use the same working path inside the IDE (Project Properties -> Debugging) and when you start from the explorer.

You should also read the standard output, you are notified if a resource cannot be loaded. Furthermore, don't you check the return type of the loadFrom...() functions?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

 

anything