SFML community forums

Help => General => Topic started by: kitchen on June 14, 2010, 01:03:54 am

Title: Compiling SFML 2.0 into static libraries through make
Post by: kitchen on June 14, 2010, 01:03:54 am
Is there a way to do this using make for the current snapshot of SFML 2? A variable to set to true perhaps? If not, what do I need to change so it will work.
Title: Compiling SFML 2.0 into static libraries through make
Post by: Laurent on June 14, 2010, 08:06:18 am
There's no way to build static libraries on Linux. It's usually a bad idea, why do you need to do that?
Title: Compiling SFML 2.0 into static libraries through make
Post by: kitchen on June 14, 2010, 03:45:02 pm
Quote from: "Laurent"
There's no way to build static libraries on Linux. It's usually a bad idea, why do you need to do that?


I'm having trouble with linking the dynamic libraries without installing them. I've got it working now though (building the static libraries, that is).
Title: Compiling SFML 2.0 into static libraries through make
Post by: r0d on December 07, 2010, 10:29:38 am
And on Windows, can we compile the sfml 2 as a static library?
Title: Compiling SFML 2.0 into static libraries through make
Post by: Laurent on December 07, 2010, 10:34:04 am
Sure.

Now that I use CMake it's even available on other OSes, but not convenient (you have to link to all the SFML dependencies in your own project). Static build is encouraged only on Windows.
Title: Compiling SFML 2.0 into static libraries through make
Post by: r0d on December 07, 2010, 12:31:52 pm
Ok.
But how can I do to compile in static on Windows? I can't find this :oops:
Must I add the SFML_STATIC preproc variable in every vcproj (sfml-windows, sfml-graphics, etc.)?
Title: Compiling SFML 2.0 into static libraries through make
Post by: Laurent on December 07, 2010, 12:49:39 pm
Everything you need to know is there
http://www.sfml-dev.org/tutorials/2.0/compile-with-cmake.php