Hi, I am new to the SFML forums so forgive me if I do not adequately present my issue clearly,
I wrote a simple game in SFML and it runs fine on my computer, but when I copy my game folder (includes game application called "Third.exe" and all required DLL's) to another computer, I get these error messages from the console whenever I run Third.exe:
**********************************************************************
D:\test-1>third
Failed to load image "C:/Users/Alex/Documents/Visual Studio 2012/Projects/Third/
Third/Resources/gunsight.png". Reason : Unable to open file
Failed to load image "C:/Users/Alex/Documents/Visual Studio 2012/Projects/Third/
Third/Resources/MainHUD.png". Reason : Unable to open file
Failed to load image "C:/Users/Alex/Documents/Visual Studio 2012/Projects/Third/
Third/Resources/Ammo/Ammo_0.png". Reason : Unable to open file
Failed to load image "C:/Users/Alex/Documents/Visual Studio 2012/Projects/Third/
Third/Resources/Ammo/Ammo_1.png". Reason : Unable to open file
Failed to load image "C:/Users/Alex/Documents/Visual Studio 2012/Projects/Third/
Third/Resources/Ammo/Ammo_2.png". Reason : Unable to open file
Failed to load image "C:/Users/Alex/Documents/Visual Studio 2012/Projects/Third/
Third/Resources/Ammo/Ammo_3.png". Reason : Unable to open file
Failed to load image "C:/Users/Alex/Documents/Visual Studio 2012/Projects/Third/
Third/Resources/Ammo/Ammo_4.png". Reason : Unable to open file
Failed to load image "C:/Users/Alex/Documents/Visual Studio 2012/Projects/Third/
Third/Resources/Ammo/Ammo_5.png". Reason : Unable to open file
Failed to open sound file "C:/Users/Alex/Documents/Visual Studio 2012/Projects/T
hird/Third/Resources/Sounds/Sniper_sound.ogg" (System error : The system cannot
find the path specified.
)
Failed to load image "C:/Users/Alex/Documents/Visual Studio 2012/Projects/Third/
Third/Resources/Enemy/enemy.png". Reason : Unable to open file
Failed to load image "C:/Users/Alex/Documents/Visual Studio 2012/Projects/Third/
Third/Resources/Enemy/enemy_dead.png". Reason : Unable to open file
Random Number: 2
Failed to load image "C:/Users/Alex/Documents/Visual Studio 2012/Projects/Third/
Third/Resources/Background.png". Reason : Unable to open file
********************************************************************
It seems that the resource files I used such as .png's, .ogg's cannot be found. The problem is that I didn't think these files were needed at runtime.
So my question is, what must I do to properly run the game on another computer? Do I need to statically compile, or include the resource files with the game, etc?
Any help would be appreciated.
-Alex