SFML community forums

Help => General => Topic started by: chessguy on December 30, 2013, 11:55:41 pm

Title: Statically linking SFML (Solved)
Post by: chessguy on December 30, 2013, 11:55:41 pm
Greetings.

So, since I am terrible at distributing things properly, I was going to try linking statically again (that is, not using DLL's for the standard library, though this also means linking SFML statically).

It seems, though, that a change has occurred, as detailed here:

http://en.sfml-dev.org/forums/index.php?topic=9362.0

As I read it now, you need to link the various dependencies (as listed on the licenses page) when linking statically. Is this correct? Any other needed steps?

If so, is there a prebuilt version of libjpeg somewhere? I am having issues with it, and it's information and documentation seem to be rather outdated.
Title: Re: Statically linking SFML
Post by: Nexus on December 31, 2013, 12:52:35 am
If so, is there a prebuilt version of libjpeg somewhere?
In the SFML SDK. You don't need to build the dependencies yourself.
Title: Re: Statically linking SFML (Solved)
Post by: chessguy on December 31, 2013, 06:34:30 pm
Ah. Yup, there is (and related headers).


For future forumgoers (or probably me on my next project when I forget how I did this), you also need to link opengl32.lib. (it has the headers, but not the lib with the rest). Additionally, if you are on windows, also link winmm.lib.

(solved)