SFML community forums

Help => General => Topic started by: Dehumanizer on November 11, 2014, 07:35:47 pm

Title: The way official builds are done
Post by: Dehumanizer on November 11, 2014, 07:35:47 pm
Hello.

Every time I build SFML from sources I also need to link dependencies like opengl32, winmm etc. My question is, how official builds (from http://sfml-dev.org/download/sfml/2.1/ (http://sfml-dev.org/download/sfml/2.1/)) are built, that they don't force me to link any other library than sfml-graphics, sfml-window etc?

Thank you.
Title: AW: The way official builds are done
Post by: eXpl0it3r on November 11, 2014, 07:44:06 pm
Note: This applies only to static linking.

The change was made a while ago, so it builds correctly and allows for more flexibility. The old way work by unpacking the static libraries and linking the object files directly into the libraries. This is really bad practice and can lead to different issues.
Title: Re: The way official builds are done
Post by: Dehumanizer on November 11, 2014, 08:36:49 pm
So, there's no nice way to integrate external dependencies with sfml lib files?
Title: Re: The way official builds are done
Post by: eXpl0it3r on November 11, 2014, 08:56:05 pm
No, because that's not how things should work. See here (https://github.com/SFML/SFML/wiki/FAQ#build-link-static).