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

Author Topic: Failed to load Image errors with SFML for Visual Studio C++  (Read 2321 times)

0 Members and 1 Guest are viewing this topic.

cyberphoenix

  • Newbie
  • *
  • Posts: 1
    • View Profile
Failed to load Image errors with SFML for Visual Studio C++
« on: November 02, 2015, 07:17:50 am »
I cloned code from here: https://github.com/SVasilev/YuGiOh

I am using Visual Studio 2012 to try to carry out the steps given in the cdp file: https://github.com/SVasilev/YuGiOh/blob/master/proj/YuGiOh.cbp

I attempted to follow the instructions at http://www.sfml-dev.org/tutorials/2.3/start-vc.php to create and configure the project.

The program builds successfully, but when I try to compile it under 'debug', it just crashes saying "program stopped working". I'm able to run the `release` exe from
Quote
C:\Users\cyberphoenix\Documents\Visual Studio 2013\Projects\yugioh_sfml\x64\Release
, but the error is

 
Quote
    Failed to load image "assets/borders.png". Reason: unable to open file
    DEBUG_MESSAGE: Failed to load static overlay texture (assets/borders.png)

I get the similar error for `overlay image` and `assets/backside.png` and `backside texture`

When I then copy/paste the `assets` folder into the directory I just mentioned and also `
Quote
C:\Users\cyberphoenix\Documents\Visual Studio 2013\Projects\yugioh_sfml\
` , the exact error message is

   
Quote
Failed to load image "". Reason: Unable to open file

there is no path in the quotes

It fails if I try both `Multi-threaded DLL` and `Multi-threaded`, and even if I use `sfml-graphics-s.lib` instead of `sfml-graphics-s-d.lib` for `release`


Anyone know why?
« Last Edit: November 02, 2015, 07:20:30 am by cyberphoenix »

BlueCobold

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: Failed to load Image errors with SFML for Visual Studio C++
« Reply #1 on: November 02, 2015, 07:27:24 am »
There are 28 commits in that repo. The last one is 3 years old. I won't expect that code to be working at all.

 

anything