About building static SDL linked binary and configure scripts

Hi all, as I’m near to release my first game done with SDL,
I have some questions to ask…

First : It is a good idea to distribute a binary package of the game ?
(for people who don’t want to get SDL just to play a game…)
and how is that done ? (i’ve tried -static with the following lib links: -lSDL -lpthread -L
/usr/X11/lib -lX11 -lSM
but it still need other lib …) Anyway i think the compiled binary will be too big…

Second: How is, a simple configure script that check for SDL in the system , done ?

Thanks–

  • @G.Gabriele ---------------+
    | Linux |
    ±--------------- the free philosophy -+

Hi all, as I’m near to release my first game done with SDL,
I have some questions to ask…

First : It is a good idea to distribute a binary package of the game ?
(for people who don’t want to get SDL just to play a game…)
and how is that done ? (i’ve tried -static with the following lib links: -lSDL -lpthread -L
/usr/X11/lib -lX11 -lSM
but it still need other lib …) Anyway i think the compiled binary will be too big…

Second: How is, a simple configure script that check for SDL in the system , done ?

Look at the test programs in the SDL distribution.
In particular, look at test/Makefile.am and test/configure.in

Someday I’ll write this into the FAQ.

See ya!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec