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

Author Topic: NuGet package - "cannot open file 'sfml-graphics-s-d.lib'"  (Read 2075 times)

0 Members and 2 Guests are viewing this topic.

ConanHorus

  • Newbie
  • *
  • Posts: 3
    • View Profile
NuGet package - "cannot open file 'sfml-graphics-s-d.lib'"
« on: June 13, 2018, 06:05:29 am »
I installed SFML from the NuGet packages. We use NuGets all the time at work (albeit in C#). They're super slick and do everything for you except shine your shoes ... until now that is.

There is just one other thing that's different. In Visual Studio 2017, there is no Win32 application - the option simple doesn't exist. So I chose empty project instead.

I have written up the basic circle program from here: https://www.sfml-dev.org/tutorials/2.5/start-vc.php
I linked up all the directories and added the preprocessor definition as the tutorial expects.

Still doesn't work. So then I look over here: https://stackoverflow.com/questions/30810026/fatal-error-lnk1104-cannot-open-file-sfml-graphics-s-d-lib

After going through and deleting all the 64bit files, it still won't work. I keep getting the compile time error: "cannot open file 'sfml-graphics-s-d.lib.'"

What could I possibly be doing wrong?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11028
    • View Profile
    • development blog
    • Email
Re: NuGet package - "cannot open file 'sfml-graphics-s-d.lib'"
« Reply #1 on: June 13, 2018, 08:11:34 am »
Does the NuGet packge distribute static binaries?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

ConanHorus

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: NuGet package - "cannot open file 'sfml-graphics-s-d.lib'"
« Reply #2 on: June 13, 2018, 07:36:57 pm »
Yes. It distributes both static and dynamic libs. DLLs are only dynamic if that matters. Then again, a sample dll is called 'sfml-graphics-d-2.dll' which seems a little weird.

ConanHorus

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: NuGet package - "cannot open file 'sfml-graphics-s-d.lib'"
« Reply #3 on: June 14, 2018, 01:01:47 am »
So, in VisualStudio 2017 the win32 projects are hidden and require some extra steps. But now it's no longer complaining about the lib. Instead, it is now complaining about sfml-graphics-d-2.dll which is odd because it is right there with everything else. I even copied in into the working directory and ... nothing. It'll build, but immediately crash.

For anyone else looking for instructions to generate a win32 application, go here: https://stackoverflow.com/questions/45828356/win32-console-application-missing-in-vs2017-how-to-create-c-empty-project

 

anything