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

Author Topic: Statically linking SFML (Solved)  (Read 1818 times)

0 Members and 1 Guest are viewing this topic.

chessguy

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
Statically linking SFML (Solved)
« 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.
« Last Edit: December 31, 2013, 06:34:54 pm by chessguy »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Statically linking SFML
« Reply #1 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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

chessguy

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
Re: Statically linking SFML (Solved)
« Reply #2 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)

 

anything