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

Author Topic: Compiling SFML 2.0 into static libraries through make  (Read 9256 times)

0 Members and 1 Guest are viewing this topic.

kitchen

  • Newbie
  • *
  • Posts: 14
    • View Profile
Compiling SFML 2.0 into static libraries through make
« 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Compiling SFML 2.0 into static libraries through make
« Reply #1 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?
Laurent Gomila - SFML developer

kitchen

  • Newbie
  • *
  • Posts: 14
    • View Profile
Compiling SFML 2.0 into static libraries through make
« Reply #2 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).

r0d

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Compiling SFML 2.0 into static libraries through make
« Reply #3 on: December 07, 2010, 10:29:38 am »
And on Windows, can we compile the sfml 2 as a static library?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Compiling SFML 2.0 into static libraries through make
« Reply #4 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.
Laurent Gomila - SFML developer

r0d

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Compiling SFML 2.0 into static libraries through make
« Reply #5 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.)?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Compiling SFML 2.0 into static libraries through make
« Reply #6 on: December 07, 2010, 12:49:39 pm »
Laurent Gomila - SFML developer

 

anything