How to

…compile SDL, SDL_ttf and SDL_draw in one SDL_ttf_draw.dll?
Ofcourse by adding comment, that it contaisn three different libs…

marex

At 19.30 15/12/02 +0200, you wrote:

…compile SDL, SDL_ttf and SDL_draw in one SDL_ttf_draw.dll?
Ofcourse by adding comment, that it contaisn three different libs…

WHY SHOULD YOU DO THAT?
With different DLLs, users can update them; if you link your application to
a single mega-DLL, they won’t be able to update the DLL, unless they
rebuild the DLL or your program.
…unless you want to ship any DLLs with your programs… in that case use
statical linking.

Guido Imperiale

@CRUSADER_KY---------------------
CRV?ADER/KY
CVI?SCIENTIA?IMPERIVM

http://www.crusaderky.da.ru

…unless you want to ship any DLLs with your programs… in that case use
statical linking.

How can I do that with Visual Studio 6 ? What’s the right setting ?

Thanks


Do You Yahoo!? – Une adresse @yahoo.fr gratuite et en fran?ais !
Yahoo! Mail : http://fr.mail.yahoo.com

----- Original Message -----
From: crusaderky@inwind.it (CRUSADER//KY)
To:
Sent: Sunday, December 15, 2002 7:05 PM
Subject: Re: [SDL] How to…

it doesn’t metter what reason I have, I just want to know, how to in VS6 make one “mege-DLL” or even get rid of any dll by linking them in the app.

marex
PS. app is some sort of demonstration and I want to decrease a count of files needed and decrease size of them - I am quite sure, that somebody will delete some file to see, that without it app doesn’t work----- Original Message -----
From: CRV?ADER /KY
To: sdl at libsdl.org
Sent: Sunday, December 15, 2002 8:05 PM
Subject: Re: [SDL] How to…

At 19.30 15/12/02 +0200, you wrote:

..compile SDL, SDL_ttf and SDL_draw in one SDL_ttf_draw.dll?
Ofcourse by adding comment, that it contaisn three different libs...

WHY SHOULD YOU DO THAT?
With different DLLs, users can update them; if you link your application to a single mega-DLL, they won’t be able to update the DLL, unless they rebuild the DLL or your program.
…unless you want to ship any DLLs with your programs… in that case use statical linking.

 Guido Imperiale      

crusaderky at inwind.it

   CRV?ADER/KY       

CVI.SCIENTIA.IMPERIVM

http://www.crusaderky.da.ru

Know that when you statically link SDL you must abide by the terms of
the LGPL if you choose to distribute the resulting binary. See your
compiler documentation for instructions on how to statically link
libraries.On Mon, 2002-12-16 at 03:43, marex wrote:

it doesn’t metter what reason I have, I just want to know, how to in VS6 make one “mege-DLL” or even get rid of any dll by linking them in the app.

marex
PS. app is some sort of demonstration and I want to decrease a count of files needed and decrease size of them - I am quite sure, that somebody will delete some file to see, that without it app doesn’t work

Compiler (ming32w) says to use “-Wl,-static”, but this produces exactly the
same exe with or without this option, and the exe won’t run without sdl.dll.
How can the dll routines be linked into the exe so that sdl.dll is not
required? I’m compiling on Red Hat Linux 7.2 to make both a Windows exe and a
Linux executable.On Monday 16 December 2002 08:02 am, you wrote:

See your
compiler documentation for instructions on how to statically link
libraries.

This is kind of off topic, but I’m just curious about the terms of the
LGPL. If you don’t statically link SDL, you distribute your program
with sdl.dll and everyone is happy? You don’t have to do anything else,
like give them specific credit or link to their site or anything?> ----- Original Message -----

From: sdl-admin@libsdl.org [mailto:sdl-admin at libsdl.org] On Behalf Of
DrEvil
Sent: Monday, December 16, 2002 11:03 AM
To: sdl at libsdl.org
Subject: Re: [SDL] How to…

On Mon, 2002-12-16 at 03:43, marex wrote:

it doesn’t metter what reason I have, I just want to know, how to in
VS6 make one “mege-DLL” or even get rid of any dll by linking them in
the app.

marex
PS. app is some sort of demonstration and I want to decrease a count
of files needed and decrease size of them - I am quite sure, that
somebody will delete some file to see, that without it app doesn’t work

Know that when you statically link SDL you must abide by the terms of
the LGPL if you choose to distribute the resulting binary. See your
compiler documentation for instructions on how to statically link
libraries.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Alright, I feel kinda bad for making an offtopic post but I’ll make it
quick. I believe you must be able to provide the source, whether giving
it out with it, giving a valid link, providing it via mail, etc. That’s
it, I’m done. No more offtopic. Sorry guys.On Mon, 2002-12-16 at 13:25, Micah Lee wrote:

This is kind of off topic, but I’m just curious about the terms of the
LGPL. If you don’t statically link SDL, you distribute your program
with sdl.dll and everyone is happy? You don’t have to do anything else,
like give them specific credit or link to their site or anything?

-----Original Message-----
From: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org] On Behalf Of
DrEvil
Sent: Monday, December 16, 2002 11:03 AM
To: sdl at libsdl.org
Subject: Re: [SDL] How to…

On Mon, 2002-12-16 at 03:43, marex wrote:

it doesn’t metter what reason I have, I just want to know, how to in
VS6 make one “mege-DLL” or even get rid of any dll by linking them in
the app.

marex
PS. app is some sort of demonstration and I want to decrease a count
of files needed and decrease size of them - I am quite sure, that
somebody will delete some file to see, that without it app doesn’t work

Know that when you statically link SDL you must abide by the terms of
the LGPL if you choose to distribute the resulting binary. See your
compiler documentation for instructions on how to statically link
libraries.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Chris Thielen <@Christopher_Thielen>

it looks, that nobody understood me - I want one “mega” dll which includes
SDL, SDL_ttf, SDL_draw so I don’t have 3 dlls, but only one and one txt file
which includes all three docs (I know how to do this).
is it possible? should be!
how? I don’t know!
who knows?

marex> ----- Original Message -----

From: j_post@pacbell.net (Jeff Post)
To:
Sent: Monday, December 16, 2002 8:18 PM
Subject: Re: [SDL] How to…

On Monday 16 December 2002 08:02 am, you wrote:

See your
compiler documentation for instructions on how to statically link
libraries.

Compiler (ming32w) says to use “-Wl,-static”, but this produces exactly
the
same exe with or without this option, and the exe won’t run without
sdl.dll.
How can the dll routines be linked into the exe so that sdl.dll is not
required? I’m compiling on Red Hat Linux 7.2 to make both a Windows exe
and a
Linux executable.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Actually Micah, yes, if you don’t statically link SDL and you distribute
your program with SDL.dll, everyone is happy. The only time you need to
provide your source code is if you statically link with SDL, in which case
you need to provide your end user some mechanism to rebuild your application
with a modified version of SDL. The only time you need to provide SDL
source code is if you have modified it, and then you only need to make it
available on your website. Although in general it’s a good idea to make
the version of SDL that you shipped with available on your website so if
new updates are available on the SDL site people can find the original code.
If you have room on your CD (or other distribution media), it’s always nice
to have a directory with extra source that people can play with, and if you
do this it would be nice if you put the SDL source there.

I am not a lawyer ™ :slight_smile:

Alright, I feel kinda bad for making an offtopic post but I’ll make it
quick. I believe you must be able to provide the source, whether giving
it out with it, giving a valid link, providing it via mail, etc. That’s
it, I’m done. No more offtopic. Sorry guys.

This is kind of off topic, but I’m just curious about the terms of the
LGPL. If you don’t statically link SDL, you distribute your program
with sdl.dll and everyone is happy? You don’t have to do anything else,
like give them specific credit or link to their site or anything?

DrEvil

it doesn’t metter what reason I have, I just want to know, how to in
VS6 make one “mege-DLL” or even get rid of any dll by linking them in
the app.

marex
PS. app is some sort of demonstration and I want to decrease a count
of files needed and decrease size of them - I am quite sure, that
somebody will delete some file to see, that without it app doesn’t work

Know that when you statically link SDL you must abide by the terms of
the LGPL if you choose to distribute the resulting binary. See your
compiler documentation for instructions on how to statically link
libraries.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Chris Thielen


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

-Sam Lantinga, Software Engineer, Blizzard Entertainment> On Mon, 2002-12-16 at 13:25, Micah Lee wrote:

-----Original Message-----
From: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org] On Behalf Of
Sent: Monday, December 16, 2002 11:03 AM
To: sdl at libsdl.org
Subject: Re: [SDL] How to…
On Mon, 2002-12-16 at 03:43, marex wrote:

you need to provide your end user some mechanism to rebuild your
application
with a modified version of SDL

well i have a thought micah…if you find how to combine multiple DLL’s into
1 dll and make some kind of exe which will take your 3 dll’s and make it
into 1 then if you distributed this “DLL manager” with your program that
might be enough to satisfy the legal needs. Maybe you could integrate it
into your main .exe so that you dont need an extra file. Probly would take
some work to do this but maybe its worth it to have 1 dll instead of 3? Why
is it your so worried someone will delete a dll…if they were to delete one
of the dll’s when you have 3, wouldnt they also delete the dll if there was
only 1?> ----- Original Message -----

From: slouken@devolution.com (Sam Lantinga)
To:
Sent: Tuesday, December 17, 2002 6:02 AM
Subject: Re: [SDL] How to…

Actually Micah, yes, if you don’t statically link SDL and you distribute
your program with SDL.dll, everyone is happy. The only time you need to
provide your source code is if you statically link with SDL, in which case
you need to provide your end user some mechanism to rebuild your
application
with a modified version of SDL. The only time you need to provide SDL
source code is if you have modified it, and then you only need to make it
available on your website. Although in general it’s a good idea to make
the version of SDL that you shipped with available on your website so if
new updates are available on the SDL site people can find the original
code.
If you have room on your CD (or other distribution media), it’s always
nice
to have a directory with extra source that people can play with, and if
you
do this it would be nice if you put the SDL source there.

I am not a lawyer ™ :slight_smile:

Alright, I feel kinda bad for making an offtopic post but I’ll make it
quick. I believe you must be able to provide the source, whether giving
it out with it, giving a valid link, providing it via mail, etc. That’s
it, I’m done. No more offtopic. Sorry guys.

On Mon, 2002-12-16 at 13:25, Micah Lee wrote:

This is kind of off topic, but I’m just curious about the terms of the
LGPL. If you don’t statically link SDL, you distribute your program
with sdl.dll and everyone is happy? You don’t have to do anything
else,

like give them specific credit or link to their site or anything?

-----Original Message-----
From: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org] On Behalf Of
DrEvil
Sent: Monday, December 16, 2002 11:03 AM
To: sdl at libsdl.org
Subject: Re: [SDL] How to…

On Mon, 2002-12-16 at 03:43, marex wrote:

it doesn’t metter what reason I have, I just want to know, how to in
VS6 make one “mege-DLL” or even get rid of any dll by linking them in
the app.

marex
PS. app is some sort of demonstration and I want to decrease a count
of files needed and decrease size of them - I am quite sure, that
somebody will delete some file to see, that without it app doesn’t
work

Know that when you statically link SDL you must abide by the terms of
the LGPL if you choose to distribute the resulting binary. See your
compiler documentation for instructions on how to statically link
libraries.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Chris Thielen


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

-Sam Lantinga, Software Engineer, Blizzard Entertainment


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

in fact, i just wanted to decrease size and count of files

less files - less problems
"If there is man - there is problem, no man - no problem" (? stalin)

marex> ----- Original Message -----

From: atrix2@cox.net (atrix2)
To:
Sent: Tuesday, December 17, 2002 8:01 PM
Subject: Re: [SDL] How to…

you need to provide your end user some mechanism to rebuild your
application
with a modified version of SDL

well i have a thought micah…if you find how to combine multiple DLL’s
into
1 dll and make some kind of exe which will take your 3 dll’s and make it
into 1 then if you distributed this “DLL manager” with your program that
might be enough to satisfy the legal needs. Maybe you could integrate it
into your main .exe so that you dont need an extra file. Probly would
take
some work to do this but maybe its worth it to have 1 dll instead of 3?
Why
is it your so worried someone will delete a dll…if they were to delete
one
of the dll’s when you have 3, wouldnt they also delete the dll if there
was
only 1?

----- Original Message -----
From: “Sam Lantinga”
To:
Sent: Tuesday, December 17, 2002 6:02 AM
Subject: Re: [SDL] How to…

Actually Micah, yes, if you don’t statically link SDL and you distribute
your program with SDL.dll, everyone is happy. The only time you need to
provide your source code is if you statically link with SDL, in which
case

you need to provide your end user some mechanism to rebuild your
application
with a modified version of SDL. The only time you need to provide SDL
source code is if you have modified it, and then you only need to make
it

available on your website. Although in general it’s a good idea to make
the version of SDL that you shipped with available on your website so if
new updates are available on the SDL site people can find the original
code.
If you have room on your CD (or other distribution media), it’s always
nice
to have a directory with extra source that people can play with, and if
you
do this it would be nice if you put the SDL source there.

I am not a lawyer ™ :slight_smile:

Alright, I feel kinda bad for making an offtopic post but I’ll make it
quick. I believe you must be able to provide the source, whether
giving

it out with it, giving a valid link, providing it via mail, etc.
That’s

it, I’m done. No more offtopic. Sorry guys.

On Mon, 2002-12-16 at 13:25, Micah Lee wrote:

This is kind of off topic, but I’m just curious about the terms of
the

LGPL. If you don’t statically link SDL, you distribute your program
with sdl.dll and everyone is happy? You don’t have to do anything
else,

like give them specific credit or link to their site or anything?

-----Original Message-----
From: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org] On Behalf
Of

DrEvil
Sent: Monday, December 16, 2002 11:03 AM
To: sdl at libsdl.org
Subject: Re: [SDL] How to…

On Mon, 2002-12-16 at 03:43, marex wrote:

it doesn’t metter what reason I have, I just want to know, how to
in

VS6 make one “mege-DLL” or even get rid of any dll by linking them
in

the app.

marex
PS. app is some sort of demonstration and I want to decrease a
count

of files needed and decrease size of them - I am quite sure, that
somebody will delete some file to see, that without it app doesn’t
work

Know that when you statically link SDL you must abide by the terms
of

the LGPL if you choose to distribute the resulting binary. See your
compiler documentation for instructions on how to statically link
libraries.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Chris Thielen


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

-Sam Lantinga, Software Engineer, Blizzard Entertainment


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

marex wrote:

in fact, i just wanted to decrease size and count of files

less files - less problems
"If there is man - there is problem, no man - no problem" (? stalin)

Maybe rm -rf / will fix all your problems then?–

./lxnt

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

in fact, i just wanted to decrease size and count of files

less files - less problems

This way you’ll increase size AND problems.
You’ll increase size since your user will be requested to download your DLL
and the standard DLLs used by other apps
You’ll increase problems since your user will have a hard time to update it
and will request you to support it.

You won’t decrease size even in your package, since -trust me- the
resulting size of mega-bloating-dll will be exactly the sum of the sizes of
the three small&serious™ dlls.

Guido Imperiale
@CRUSADER_KY


  CRV?ADER/KY

CVI?SCIENTIA?IMPERIVM

http://www.crusaderky.da.ru

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com

iQA/AwUBPgFnXf/r+L926FlNEQJQcACgkr59JgF1f4cUf7kOk6g2t+GDgK8AoMWd
WdK1he4zkWsenEhq2Mu9Rq7M
=jS17
-----END PGP SIGNATURE-----

the same attitude: it sux (don’t work, you are lame) because it sux (don’t
work, you are lame).
I asked HOW, not is it correct, am I lame or are you lame?

I do it for myself - I want/need to know how, not that it is wrong

marex> ----- Original Message -----

From: crusaderky@inwind.it (CRUSADER//KY)
To:
Sent: Thursday, December 19, 2002 8:30 AM
Subject: Re: [SDL] How to…

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

in fact, i just wanted to decrease size and count of files

less files - less problems

This way you’ll increase size AND problems.
You’ll increase size since your user will be requested to download your DLL
and the standard DLLs used by other apps
You’ll increase problems since your user will have a hard time to update it
and will request you to support it.

You won’t decrease size even in your package, since -trust me- the
resulting size of mega-bloating-dll will be exactly the sum of the sizes of
the three small&serious™ dlls.

Guido Imperiale
crusaderky at inwind.it


  CRV?ADER/KY

CVI.SCIENTIA.IMPERIVM

http://www.crusaderky.da.ru

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com

iQA/AwUBPgFnXf/r+L926FlNEQJQcACgkr59JgF1f4cUf7kOk6g2t+GDgK8AoMWd
WdK1he4zkWsenEhq2Mu9Rq7M
=jS17
-----END PGP SIGNATURE-----


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

I do it for myself - I want/need to know how, not that it is wrong

As you wish. Just don’t come whining here when you find out that you
receive dozens of flames from your users asking you WHY you did that and
HOW are they supposed to update their DLLs with the new ones.

After you run ./configure and make (but not make install) in all the three
packages, you’ll have to launch the linker manually (or write your own
makefile), by copying the linking lines from the original makefiles, with
all the attributes and .o files.

Guido Imperiale
@CRUSADER_KY---------------------
CRV?ADER/KY
CVI?SCIENTIA?IMPERIVM

http://www.crusaderky.da.ru

I asked HOW, not is it correct, am I lame or are you lame?

What would you think about someone insisting in an ML
to get a question answered that has got much more to
do with the man page of his linker than with the ML?

Ciao,
Eike