SFML community forums

Help => General => Topic started by: Wurstinator on September 28, 2011, 06:14:42 pm

Title: Installing SFML 2.0 for VS 2010
Post by: Wurstinator on September 28, 2011, 06:14:42 pm
Hi,
last time I tried installing SFML 2 I already gave up at CMake so I am proud that I got this far  :lol:
I "cmake"d it and used the MSVS-Solution file. Now I have a lib/MinSizeRel folder which includes 15 files.
I also compiled the examples and now wanted to try one so I copied libsnd and the 5 SFML-DLLs to it. Problem is, that it gives me a 0xc000007b error when I try to start the exe.
 :(
Title: Installing SFML 2.0 for VS 2010
Post by: Laurent on September 28, 2011, 06:36:12 pm
If you use sfml-audio you also need openal32.dll. You should check the dependencies of your executable with Dependency Walker (depends.exe). If something is missing you'll see it instantly.
Title: Installing SFML 2.0 for VS 2010
Post by: Wurstinator on September 28, 2011, 10:53:19 pm
Dependency Walker tells me:
Error: Modules with different CPU types were found.

libsndfile-1.dll and ieshims.dll are x86 while the others are x64. Is there a way to fix this?
Title: Installing SFML 2.0 for VS 2010
Post by: Laurent on September 29, 2011, 07:47:20 am
Yes. Use the x64 version of libsndfile-1.dll (the other is ok, it's a system DLL) ;)
Title: Installing SFML 2.0 for VS 2010
Post by: Wurstinator on September 29, 2011, 05:28:51 pm
I am able to execute it now but the window instantly closes. Is this another ATI bug? :(
Title: Installing SFML 2.0 for VS 2010
Post by: Laurent on September 29, 2011, 05:41:48 pm
Nop. Is there any error message?
Title: Installing SFML 2.0 for VS 2010
Post by: Wurstinator on October 07, 2011, 10:30:31 pm
No, nothing.
Title: Installing SFML 2.0 for VS 2010
Post by: Wurstinator on October 21, 2011, 11:53:05 am
bump
Title: Installing SFML 2.0 for VS 2010
Post by: Wurstinator on October 29, 2011, 04:11:41 am
bump
Title: Installing SFML 2.0 for VS 2010
Post by: Klaymen on October 29, 2011, 04:40:35 am
I dunno if this fully answers your question or not, but heres a video on how to set up SFML with VS 2010:

http://www.youtube.com/watch?v=PtSDrLpV74M&annotation_id=annotation_175195&feature=iv&src_vid=cDNo4bzrFW8

Good luck!
Title: Installing SFML 2.0 for VS 2010
Post by: Wurstinator on October 31, 2011, 02:00:19 am
Sorry, but did you even read my starting post?

I skipped to the end of the video and it seems like the only thing it covers is how to build the library files of SFML. I already did that before starting this topic.
Title: Installing SFML 2.0 for VS 2010
Post by: slotdev on October 31, 2011, 09:55:43 am
Hi

Can you just paste your code in, so we can have a look?

Thanks
Title: Installing SFML 2.0 for VS 2010
Post by: Wurstinator on October 31, 2011, 11:05:57 pm
Quote
I also compiled the examples and now wanted to try one so I copied libsnd and the 5 SFML-DLLs to it. Problem is, that it gives me a 0xc000007b error when I try to start the exe.


I am using the "pong" example.
Title: Installing SFML 2.0 for VS 2010
Post by: Wurstinator on November 04, 2011, 03:37:05 am
bump
Title: Installing SFML 2.0 for VS 2010
Post by: Wurstinator on November 10, 2011, 11:24:34 pm
bump
Title: Installing SFML 2.0 for VS 2010
Post by: Laurent on November 11, 2011, 10:36:11 am
Make sure that the "resources" directory and the pong executable are in the same directory. By default they are not, you need to install SFML to get something that works out of the box.