KDevelop/gcc linking to libraries I don't want with SDL

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1On December 29, 2001 05:22 pm, David Snopek wrote:

Not necessarily. The configure options control how SDL is built. If
you do --disable-shared --enable-static it will only build libSDL.a and
not libSDL.so. What you need to do is rebuild those dependancies as
static libraries (*.a) but with position independant compile (-fPIC) so
that you can still build libSDL.so. See the documentation for the
specific libraries in question for more information on how to do that.

One of the computers that had the problem (missing
dependencies) was a slackware box, and when the binary is build there
(regulary SDL install from source), it seems to be dynamically linked. I have
slackware on my server, so I’ll try building there to see if it works.

If I have to rebuild all these libraries to be dynamically linked, does that
mean that it’s linking the SDL code into the binaries?


Richard Garand - r i c h a r d @ g a r a n d n e t . n e t
(L)ICQ: 12190132 - http://www.garandnet.net
"In the beginning the Universe was created. This has made a lot of people very
angry and been widely regarded as a bad move." - Douglas Adams
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8MPJ6juZKnjxs0fMRAuKFAJsEv/WbV4oorp49qjVgKMzzJPmL3QCg8mUg
kQevaMRBeRxPwee1fd8AIOA=
=ut1Z
-----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1On December 29, 2001 05:22 pm, David Snopek wrote:

Not necessarily. The configure options control how SDL is built. If
you do --disable-shared --enable-static it will only build libSDL.a and
not libSDL.so. What you need to do is rebuild those dependancies as
static libraries (*.a) but with position independant compile (-fPIC) so
that you can still build libSDL.so. See the documentation for the
specific libraries in question for more information on how to do that.

Do you mean that I can’t build libSDL.so until I rebuild those libraries?


Richard Garand - r i c h a r d @ g a r a n d n e t . n e t
(L)ICQ: 12190132 - http://www.garandnet.net
"Inform all the troops that communications have completely broken down."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8MR22juZKnjxs0fMRAk7pAKDv+TOPnPVR3Mkc0SDaG3uX2qsZfwCfU8f/
sjPHWFB03ltVhkYlEQHID/U=
=dr6q
-----END PGP SIGNATURE-----

Personally, I find that using SDL_GL_LoadLibrary sidesteps brokenness on
the part of the various Linux distributions, which seem incapible of
reading the Linux OpenGL ABI and following it. The run-time benefit is
nice, too.On Mon, Dec 31, 2001 at 11:54:03AM -0800, Sam Lantinga wrote:

If I understand correctly, the only advantage of using SDL_GL_LoadLibrary
and SDL_GL_GetProcAdress is to have the choice of the GL library we want
to use, with a command line argument (–gllibrary in the case of Loki
games). Am I right ?

That’s right. It should be less necessary now, with more distributions
coming pre-configured with OpenGL hardware acceleration support.


Joseph Carter Intelligent backside at large

  • boren tosses matlab across the room and hopes it breaks into a number
    aproaching infinite peices

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20011231/87047c85/attachment.pgp

— Joseph Carter wrote:

Personally, I find that using SDL_GL_LoadLibrary
sidesteps brokenness on
the part of the various Linux distributions, which
seem incapible of
reading the Linux OpenGL ABI and following it.

Gosh, can’t even exlaim that enough… though I
suppose things will get better eventually… not to go
too far off the SDL list, but anyone know if NVIDIA’s
drivers will ever be distributed with any distro at
all? Some dumb garbage about having end users have to
FTP/compile it is just a real killer for many Linux/GL
games…

Alan__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

The boys at NVIDIA are almost completely ignorant of Linux in general, but
even THEY managed to follow the ABI. Why the dists who should know better
don’t is beyond me. Unfortunately, their drivers preclude modification
(even repackaging packaging them for non-RPM dists is a modification) and
third-party distribution. As a result, the answer is probably not anytime
soon.On Tue, Jan 01, 2002 at 04:02:44AM -0800, Alan Carr wrote:

Personally, I find that using SDL_GL_LoadLibrary
sidesteps brokenness on
the part of the various Linux distributions, which
seem incapible of
reading the Linux OpenGL ABI and following it.

Gosh, can’t even exlaim that enough… though I
suppose things will get better eventually… not to go
too far off the SDL list, but anyone know if NVIDIA’s
drivers will ever be distributed with any distro at
all? Some dumb garbage about having end users have to
FTP/compile it is just a real killer for many Linux/GL
games…


Joseph Carter glDisable (DX8_CRAP);

it’s 6am. I have been up 24 hours
Wake me up and risk life and limb.

  • Knghtbrd &; sleep
    Okay everyone, we wait 10 minutes and then start flooding Knghtbrd
    with ^G’s. Someone, hack root and cat /dev/urandom >/dev/dsp.

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020101/86760d6f/attachment.pgp

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

Not necessarily. The configure options control how SDL is built. If
you do --disable-shared --enable-static it will only build libSDL.a and
not libSDL.so. What you need to do is rebuild those dependancies as
static libraries (*.a) but with position independant compile (-fPIC) so
that you can still build libSDL.so. See the documentation for the
specific libraries in question for more information on how to do that.

Do you mean that I can’t build libSDL.so until I rebuild those libraries?

Yes, or more likely, just remove the .so versions of those libraries.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment> On December 29, 2001 05:22 pm, David Snopek wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1On December 28, 2001 02:33 pm, David Snopek wrote:

There are only two real (binary) solutions. (1) Build your binaries for
each distribution. Or (2) rebuild libasound, libesd, libXxf86dga, and
libXv statically so they are copied directly into SDL.
– David Snopek

I rebuild libasound and libesd statically with -fPIC and then rebuild the SDL
without the X libs, and after forcing KDevelop to run configure the
executable still has the same dependencies…


Richard Garand - r i c h a r d @ g a r a n d n e t . n e t
(L)ICQ: 12190132 - http://www.garandnet.net
"Windows XP (less popular than anthrax, there’s a testimonial for you)"
– The Register
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8SmnOjuZKnjxs0fMRAtnlAKCGiEHlh1vpyL4V0VeFU+OEPOL2vgCgiThV
Ddl7zZ4MagRkeqaeJwYL+IA=
=p3m2
-----END PGP SIGNATURE-----

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

There are only two real (binary) solutions. (1) Build your binaries for
each distribution. Or (2) rebuild libasound, libesd, libXxf86dga, and
libXv statically so they are copied directly into SDL.
– David Snopek

I rebuild libasound and libesd statically with -fPIC and then rebuild the SDL
without the X libs, and after forcing KDevelop to run configure the
executable still has the same dependencies…

By default, it will link with the .so files. Either remove them, or
examine the commands (gcc …) and make sure that the -static options are
correct and early in the command line.

MadsOn Sun, 20 Jan 2002, Richard Garand wrote:

On December 28, 2001 02:33 pm, David Snopek wrote:


Mads Bondo Dydensborg. @Mads_Bondo_Dydensbor
A series on the annoying idiosyncrasies of popular programs such as Windows,
Word and Excel features irritating or irritated animals. Word 97 Annoyances
sports a decidedly miffed opossum, while Windows 98 Annoyances gets a European
common toad, covered with warts.
- Elizabeth Weise, USA TODAY, on O’Reilly bookcovers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1On January 20, 2002 04:20 am, Mads Bondo Dydensborg wrote:

By default, it will link with the .so files. Either remove them, or
examine the commands (gcc …) and make sure that the -static options are
correct and early in the command line.

I added -static before -g and the first library in all makefiles, and it
didn’t solve the problem. Adding -static before -lesd and -lasound didn’t
help either. Is there any option I can add before -lSDL to fix this? (or
would this be set by whatever KDevelop calls that configures these libraries?)


Richard Garand - r i c h a r d @ g a r a n d n e t . n e t
(L)ICQ: 12190132 - http://www.garandnet.net
/"
\ / ASCII Ribbon Campaign
X Against HTML Mail
/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8SyOwjuZKnjxs0fMRAsPIAJ0VYeYH878/VRDj9B46BRMhQ6Pk0ACgtoQu
fbJs26DD+r5biZw9N2b5z/U=
=QGzn
-----END PGP SIGNATURE-----