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

Author Topic: Build SFML from source, DLLs are nowhere to be seen  (Read 712 times)

0 Members and 1 Guest are viewing this topic.

Deedolith

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Build SFML from source, DLLs are nowhere to be seen
« on: December 06, 2024, 09:51:33 pm »
Hello,

I am having troubles building SFML from source.
Here are the steps I did:
- Clone the github repository with GitHub Desktop.
- Configure the project with CMake
- Generate the project with CMake (all options left to default values).
- Open the project with Visual Studio 2022.
- Build Debug/x64 and Release/x64 (no option change).

There are no compile errors, libraries (.lib files) are generated, but no DLLs.
Did I miss something ?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11049
    • View Profile
    • development blog
    • Email
Re: Build SFML from source, DLLs are nowhere to be seen
« Reply #1 on: December 06, 2024, 11:54:23 pm »
With SFML 3 (master) we've changed the default behavior to match CMake's default behavior by building static libraries, if nothing has been specified.
If you want to build shared libraries, you can set BUILD_SHARED_LIBS to ON.

See also the migration guide if you're coming from SFML 2
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Deedolith

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Build SFML from source, DLLs are nowhere to be seen
« Reply #2 on: December 07, 2024, 12:12:27 am »
I do not see such entry within CMake, should I add it ?

TheIrishDev

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Build SFML from source, DLLs are nowhere to be seen
« Reply #3 on: December 07, 2024, 03:08:32 am »
I believe he is trying to say when you are to build SFML, you need to specify "-DBUILD_SHARED_LIBS=On" in a string of commands like "cmake . -B "build" -DBUILD_SHARED_LIBS=On".

 

anything