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

Author Topic: Compile all dlls in one.  (Read 3770 times)

0 Members and 1 Guest are viewing this topic.

brandnew

  • Newbie
  • *
  • Posts: 2
    • View Profile
Compile all dlls in one.
« on: May 28, 2009, 11:50:08 pm »
Is there any way to compile all the dlls into a single one? Is this allowed by the license?
Instead of having sfml-audio.dll, sfml-graphics.dll, etc. it would be cleaner if i could have all compiled into one single dll. Is this posible?
Thanks in advance.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Compile all dlls in one.
« Reply #1 on: May 29, 2009, 07:53:13 am »
Yep, this is allowed by the licence. You just have to clearly say that your DLL is a merge of the original SFML libraries, and not claim that you wrote it ;)

I guess you'll have to create a new empty library project, which statically links to all the SFML's libraries. Then define SFML_EXPORTS so that every SFML class/function is exported in your library.
Laurent Gomila - SFML developer

vgvgf

  • Newbie
  • *
  • Posts: 6
    • MSN Messenger - vgvgvgf@gmail.com
    • View Profile
    • http://everempire.net/
    • Email
Compile all dlls in one.
« Reply #2 on: May 30, 2009, 04:30:45 am »
Following with the topic, is it allowed to compile all into the program .exe? And if allowed by the license, is there any practical way to do so? Thanks in advance.

SamuraiCrow

  • Newbie
  • *
  • Posts: 40
    • Yahoo Instant Messenger - samuraileumas
    • View Profile
Compile all dlls in one.
« Reply #3 on: May 30, 2009, 05:20:06 am »
Only if it is GPL or LGPL licensed open source since the audio libraries are under the LGPL license.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Compile all dlls in one.
« Reply #4 on: May 30, 2009, 09:36:12 am »
Quote
Following with the topic, is it allowed to compile all into the program .exe? And if allowed by the license, is there any practical way to do so? Thanks in advance.

Just link to the static libraries ("-s" suffix).

Basically, every "technical" question is allowed, there's absolutely no restriction. The license is only about source code distribution / modification and not claiming you're the original author.

Quote from: "zlib/png license"
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute
it freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented;
   you must not claim that you wrote the original software.
   If you use this software in a product, an acknowledgment
   in the product documentation would be appreciated but
   is not required.

2. Altered source versions must be plainly marked as such,
   and must not be misrepresented as being the original software.

3. This notice may not be removed or altered from any
   source distribution.


The libsndfile and openal libraries are LGPL and will always be linked dynamically, but anyway this is handled by SFML. Here we're only talking about SFML libraries ;)
Laurent Gomila - SFML developer

brandnew

  • Newbie
  • *
  • Posts: 2
    • View Profile
Compile all dlls in one.
« Reply #5 on: May 30, 2009, 05:27:18 pm »
Ok, thanks for the help =D.