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

Author Topic: No -d.lib after compiling source SFML  (Read 894 times)

0 Members and 1 Guest are viewing this topic.

kagethelephant

  • Newbie
  • *
  • Posts: 2
    • View Profile
No -d.lib after compiling source SFML
« on: October 28, 2023, 08:26:54 am »
I followed this tutorial
https://youtu.be/vHxz8PWyYW4?si=tllLOkA4QXFi5HiA
And the tutorial on the SFML website to compile SFML from source but I always end up with only -s-d.lib and no -d.lib libraries.
In CMake I changed the CMAKE_BUILDTYPE to Debug but still no luck.

I'm new to this so its probably something dumb but any help would be appreciated.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: No -d.lib after compiling source SFML
« Reply #1 on: October 28, 2023, 05:04:56 pm »
Assuming you're building off of the master branch, you'll be getting SFML 3, which is still in development and has some breaking changes. One change is that by default we're building static libraries (-s suffix) now.
If you want to get dynamic libraries (no -s suffix), you need to check the BUILD_SHARED_LIBS option.

We also highly recommend to use something like the SFML CMake Template that will automatically pull in SFML and build it for you within your project.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

kagethelephant

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: No -d.lib after compiling source SFML
« Reply #2 on: October 29, 2023, 05:50:23 pm »
Ok thank you that fixed my problem  :)