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

Author Topic: sfml-graphics-d.dll Issues VS C++ 2010  (Read 5603 times)

0 Members and 1 Guest are viewing this topic.

curscascis

  • Newbie
  • *
  • Posts: 6
    • View Profile
sfml-graphics-d.dll Issues VS C++ 2010
« on: June 16, 2012, 08:12:35 pm »
Hi guys

I am running Visual Studio 2010 c++ and I have the necessary DLL's in the debug folder. I have tried over a 100 times and no matter what I do it keeps showing that sfml-graphics-d.dll is missing from my computer when the program attempts to run. What could be causing this?
« Last Edit: June 16, 2012, 08:14:19 pm by curscascis »

Jove

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • http://www.jestofevekites.com/
Re: sfml-graphics-d.dll Issues VS C++ 2010
« Reply #1 on: June 16, 2012, 08:27:19 pm »
Tried putting them in the project folder?
{much better code}

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: sfml-graphics-d.dll Issues VS C++ 2010
« Reply #2 on: June 16, 2012, 08:30:59 pm »
Is your executable in the Debug folder too? Does it work if you run it from the explorer (not from Visual Studio)?
Laurent Gomila - SFML developer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
Re: sfml-graphics-d.dll Issues VS C++ 2010
« Reply #3 on: June 16, 2012, 09:09:18 pm »
Visual Studio doesn't by default use the folder where the .exe gets build to as working directory instead it uses the folder where your .vcxproj file is generated to. So either change the paths in your project settings or copy the .dll next to your .vcxproj file. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

curscascis

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: sfml-graphics-d.dll Issues VS C++ 2010
« Reply #4 on: June 17, 2012, 12:04:39 am »
Again, its in the debug folder where VS automatically puts the exe with all the files. I put it in there with all the other necessary -d.dll's. If I put it into the project folder I get an error that simply says "This application was unable to start correctly (0xc0150002). Click OK to close the application" Any other ideas as to what might be causing this? If I can at least find the problem I can work a solution for it :3 I have also attempted to run it using the EXE and not VS, but it is the same exact thing.
« Last Edit: June 17, 2012, 12:16:25 am by curscascis »

curscascis

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: sfml-graphics-d.dll Issues VS C++ 2010
« Reply #5 on: June 17, 2012, 04:20:40 am »
Any Help Guys??

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: sfml-graphics-d.dll Issues VS C++ 2010
« Reply #6 on: June 17, 2012, 11:08:23 am »
It's just how Visual Studio handles running the files. They use the project directory as the working directory, but the actual binaries have to sit in the debug or release sub folders.

For testing, it should be sufficient to copy the libraries there. For releases just ensure they're in the same folder as the executable.

As an alternative, you could try building SFML as static libraries. That way linking will take a bit longer, the resulting executable will be bigger, but you won't need the dll files at all.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
Re: sfml-graphics-d.dll Issues VS C++ 2010
« Reply #7 on: June 17, 2012, 01:01:04 pm »
"This application was unable to start correctly (0xc0150002). Click OK to close the application"

This isn't the same as not finding your DLL... ::)

Does that now mean your application finds the DLL but crashes because of something else?
If so what are you trying to run? An example? Or if it's your own code then provide it so we can figure out what's wrong.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

curscascis

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: sfml-graphics-d.dll Issues VS C++ 2010
« Reply #8 on: June 17, 2012, 05:29:44 pm »
After hours of dealing with this I came across two different conclusions that solved my problem. Number 1 I needed atigtxx.dll and atigtxxold.dll in the folder with my executables. 2 I had to recompile the normal dll's with
VS 2010 To finish getting them to work properly. Apparently if you have an ATI graphics card you need those extra DLL's

curscascis

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: sfml-graphics-d.dll Issues VS C++ 2010
« Reply #9 on: June 17, 2012, 05:30:18 pm »
Thanks for the help though guys! I hope this thread will help someone else in the future.