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

Author Topic: Installing SFML 2.0 for VS 2010  (Read 8193 times)

0 Members and 1 Guest are viewing this topic.

Wurstinator

  • Newbie
  • *
  • Posts: 33
    • View Profile
Installing SFML 2.0 for VS 2010
« 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.
 :(

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Installing SFML 2.0 for VS 2010
« Reply #1 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.
Laurent Gomila - SFML developer

Wurstinator

  • Newbie
  • *
  • Posts: 33
    • View Profile
Installing SFML 2.0 for VS 2010
« Reply #2 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Installing SFML 2.0 for VS 2010
« Reply #3 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) ;)
Laurent Gomila - SFML developer

Wurstinator

  • Newbie
  • *
  • Posts: 33
    • View Profile
Installing SFML 2.0 for VS 2010
« Reply #4 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? :(

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Installing SFML 2.0 for VS 2010
« Reply #5 on: September 29, 2011, 05:41:48 pm »
Nop. Is there any error message?
Laurent Gomila - SFML developer

Wurstinator

  • Newbie
  • *
  • Posts: 33
    • View Profile
Installing SFML 2.0 for VS 2010
« Reply #6 on: October 07, 2011, 10:30:31 pm »
No, nothing.

Wurstinator

  • Newbie
  • *
  • Posts: 33
    • View Profile
Installing SFML 2.0 for VS 2010
« Reply #7 on: October 21, 2011, 11:53:05 am »
bump

Wurstinator

  • Newbie
  • *
  • Posts: 33
    • View Profile
Installing SFML 2.0 for VS 2010
« Reply #8 on: October 29, 2011, 04:11:41 am »
bump

Klaymen

  • Newbie
  • *
  • Posts: 4
    • View Profile
Installing SFML 2.0 for VS 2010
« Reply #9 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!

Wurstinator

  • Newbie
  • *
  • Posts: 33
    • View Profile
Installing SFML 2.0 for VS 2010
« Reply #10 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.

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
Installing SFML 2.0 for VS 2010
« Reply #11 on: October 31, 2011, 09:55:43 am »
Hi

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

Thanks
SFML 2.1

Wurstinator

  • Newbie
  • *
  • Posts: 33
    • View Profile
Installing SFML 2.0 for VS 2010
« Reply #12 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.

Wurstinator

  • Newbie
  • *
  • Posts: 33
    • View Profile
Installing SFML 2.0 for VS 2010
« Reply #13 on: November 04, 2011, 03:37:05 am »
bump

Wurstinator

  • Newbie
  • *
  • Posts: 33
    • View Profile
Installing SFML 2.0 for VS 2010
« Reply #14 on: November 10, 2011, 11:24:34 pm »
bump

 

anything