Linking question: why audio libs included in SDL_image lib

Hi There List.

I noticed something interesting:

When I run ldd on libSDL_image.so, some of the dependencies include the
FLAC, vorbis and ogg. Why?

Also, are there tools that would allow me to avoid having un-used libs be
linked into my executable? Feel free to instruct me as to why this is
possible, not possible, or not a worthy pursuit.

Thanks!

Christian

Ask the maintainer of the SDLimage package of your distribution. Or from
where have you got your library?

Christian Leger schrieb:> Hi There List.

I noticed something interesting:

When I run ldd on libSDL_image.so, some of the dependencies include
the FLAC, vorbis and ogg. Why?

Also, are there tools that would allow me to avoid having un-used libs
be linked into my executable? Feel free to instruct me as to why this
is possible, not possible, or not a worthy pursuit.

Thanks!

Christian


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

The installed SDL_image is the one that Ubuntu currently provides for 10.04.

ChristianOn Thu, Jun 24, 2010 at 4:18 PM, Christoph Nelles wrote:

Ask the maintainer of the SDLimage package of your distribution. Or from
where have you got your library?

Christian Leger schrieb:

Hi There List.

I noticed something interesting:

When I run ldd on libSDL_image.so, some of the dependencies include the
FLAC, vorbis and ogg. Why?

Also, are there tools that would allow me to avoid having un-used libs be
linked into my executable? Feel free to instruct me as to why this is
possible, not possible, or not a worthy pursuit.

Thanks!

Christian


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

OK I think it’s just because SDL itself has those dependencies, and ldd
reports that when called on SDL_image which depends on SDL.On Thu, Jun 24, 2010 at 4:25 PM, Christian Leger <@Christian_Leger>wrote:

The installed SDL_image is the one that Ubuntu currently provides for
10.04.

Christian

On Thu, Jun 24, 2010 at 4:18 PM, Christoph Nelles < evilazrael at evilazrael.de> wrote:

Ask the maintainer of the SDLimage package of your distribution. Or from
where have you got your library?

Christian Leger schrieb:

Hi There List.

I noticed something interesting:

When I run ldd on libSDL_image.so, some of the dependencies include the
FLAC, vorbis and ogg. Why?

Also, are there tools that would allow me to avoid having un-used libs be
linked into my executable? Feel free to instruct me as to why this is
possible, not possible, or not a worthy pursuit.

Thanks!

Christian


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I’m running 64 bit version of Ubuntu 10.4 64. The default installed
version of the LibSDL_image.so has all those dependencies. The version
in /usr/lib32/ has a different set, but does include some sound
libraries. And a version I build from source has no dependencies on
any sound files.

I guess that means I’m voting for this being something the Ubuntu
package maintainer is doing.

Bob PendletonOn Thu, Jun 24, 2010 at 3:15 PM, Christian Leger <chrism.leger at gmail.com> wrote:

Hi There List.

I noticed something interesting:

When I run ldd on libSDL_image.so, some of the dependencies include the
FLAC, vorbis and ogg. Why?

Also, are there tools that would allow me to avoid having un-used libs be
linked into my executable? Feel free to instruct me as to why this is
possible, not possible, or not a worthy pursuit.

Thanks!

Christian


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


±----------------------------------------------------------

I must admit, I’m surprised to find out that there would be such extraneous
dependency linking.

This actually makes me wonder about something I recently observed: the
smallest, most useless SDL+OpenGL app I can compile and run on my system has
a minimum size of 1.5% of my memory, which translate to 35mb!

Does anybody on this good Earth know why an app with no data declared or
defined besides what comes from SDL and OpenGL runtimes (nvidia’s headers
and driver) would take up 35mb?!? I sure would like to know. Right now I’m
guessing it might have to do with loading a bajillion libraries due to
dependencies built with ten kitchen sinks each.

ChristianOn Sat, Jun 26, 2010 at 5:44 PM, Bob Pendleton wrote:

I’m running 64 bit version of Ubuntu 10.4 64. The default installed
version of the LibSDL_image.so has all those dependencies. The version
in /usr/lib32/ has a different set, but does include some sound
libraries. And a version I build from source has no dependencies on
any sound files.

I guess that means I’m voting for this being something the Ubuntu
package maintainer is doing.

Bob Pendleton

On Thu, Jun 24, 2010 at 3:15 PM, Christian Leger <@Christian_Leger> wrote:

Hi There List.

I noticed something interesting:

When I run ldd on libSDL_image.so, some of the dependencies include the
FLAC, vorbis and ogg. Why?

Also, are there tools that would allow me to avoid having un-used libs be
linked into my executable? Feel free to instruct me as to why this is
possible, not possible, or not a worthy pursuit.

Thanks!

Christian


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


±----------------------------------------------------------


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hi,

i am just curious, how did you measure the memory consumption?Am 27.06.2010 00:37, schrieb Christian Leger:

I must admit, I’m surprised to find out that there would be such
extraneous dependency linking.

This actually makes me wonder about something I recently observed: the
smallest, most useless SDL+OpenGL app I can compile and run on my system
has a minimum size of 1.5% of my memory, which translate to 35mb!

Does anybody on this good Earth know why an app with no data declared or
defined besides what comes from SDL and OpenGL runtimes (nvidia’s
headers and driver) would take up 35mb?!? I sure would like to know.
Right now I’m guessing it might have to do with loading a bajillion
libraries due to dependencies built with ten kitchen sinks each.

Christian


Christoph Nelles

E-Mail : @Christoph_Nelles
Jabber : eazrael at evilazrael.net ICQ : 78819723

PGP-Key : ID 0x424FB55B on subkeys.pgp.net
or http://evilazrael.net/pgp.txt

Excellent point. I use the numbers reported by either the top commands. I
now remember that possibly this includes the space taken up by dynamic
libraries, which only get loaded once for the entire system, but get counted
by some apps for each program using them. Please let me know if there’s a
better way to check memory count. I don’t recall if ps reports different
numbers.

ChristianOn Sat, Jun 26, 2010 at 6:39 PM, Christoph Nelles wrote:

Hi,

i am just curious, how did you measure the memory consumption?

Am 27.06.2010 00:37, schrieb Christian Leger:

I must admit, I’m surprised to find out that there would be such
extraneous dependency linking.

This actually makes me wonder about something I recently observed: the
smallest, most useless SDL+OpenGL app I can compile and run on my system
has a minimum size of 1.5% of my memory, which translate to 35mb!

Does anybody on this good Earth know why an app with no data declared or
defined besides what comes from SDL and OpenGL runtimes (nvidia’s
headers and driver) would take up 35mb?!? I sure would like to know.
Right now I’m guessing it might have to do with loading a bajillion
libraries due to dependencies built with ten kitchen sinks each.

Christian


Christoph Nelles

E-Mail : evilazrael at evilazrael.de
Jabber : eazrael at evilazrael.net ICQ : 78819723

PGP-Key : ID 0x424FB55B on subkeys.pgp.net
or http://evilazrael.net/pgp.txt


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org