SFML community forums
Help => General => Topic started by: kagethelephant 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.
-
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 (https://github.com/SFML/cmake-sfml-project) that will automatically pull in SFML and build it for you within your project.
-
Ok thank you that fixed my problem :)