SFML community forums

Help => General => Topic started by: deuterium96 on July 20, 2013, 08:16:56 pm

Title: Publishing SFML Game
Post by: deuterium96 on July 20, 2013, 08:16:56 pm
I've just finish my project but I don't know how to run it on other computers.
I tried copying every .dll files, all resources(like sounds or pictures) and the .exe of the game into the same directory but it didn't work. I got an error which said: "msvcp100.dll is missing."
What should I do?
Title: Re: Publishing SFML Game
Post by: eXpl0it3r on July 20, 2013, 08:30:40 pm
Yes you need to copy all SFML dlls, which includes the openal and libsndfile one, and your assets. And since you've compiled it with Visual Studio, you'll need to install the Visual C++ Redistributable from Microsoft, which will include the missing msvcp100.dll. Make sure to choose the correct redistributalbe though! :)
Title: Re: Publishing SFML Game
Post by: deuterium96 on July 20, 2013, 08:42:30 pm
I installed Visual C++ Redistributable 2010 x64 but didn't work.
Then tried Visual C++ Redistributable for Visual Studio 2012 Update 3 because I used Visual Studio 2012, it didn't work again.

Target computer's OS is Windows 8 (64bit). My computer's too. Which redistributalbe should I choose?

EDIT: Sorry, the missing .dll is "msvcp110.dll" not "msvcp100.dll"
Title: Re: Publishing SFML Game
Post by: eXpl0it3r on July 20, 2013, 09:08:41 pm
Well you Redistributable has to match your compiler version, thus which compiler did you use?
Title: Re: Publishing SFML Game
Post by: deuterium96 on July 20, 2013, 11:12:11 pm
I tried every version and I manage to run the game. Thanks for your help.
Title: Re: Publishing SFML Game
Post by: eXpl0it3r on July 20, 2013, 11:22:21 pm
I tried every version and I manage to run the game. Thanks for your help.
You're welcome!
Next time simply remember which compiler version you've used. ;)