How to Compile SDL under i586 Linux

HI All,
After having some success in getting SDL to compile under Windows I
noticed that I needed the following conditional defines to compile it
for Windows…
WIN32;BUILD_SDL;ENABLE_WINDIB;ENABLE_DIRECTX;HAVE_ALLOCA=1;HAVE_OPENGL

If I were to compile this under an Intel based Linux OS like Mandrake
what conditional defines would I need? Or is there a specific Make file
that compiles for Intel based versions of Linux.

Also under Mandrake how do I find the correct libSDL.so file so I can
perform an IMPLIB on it as well incase my compiled version is not
identical to Sam’s.

Thanks in advance.

Dominique Louis.–
http://www.DelphiGamer.com := for all your Object Pascal game
development needs;
http://www.delphi-jedi.org/Jedi:TEAM_SDL_HOME := Home of JEDI-SDL;
Cross-platform game development with Pascal, has never been easier.

Hi all,
Can anyone with some experience of building SDL on Linux, help me out
on this post from a few days ago?

Thanks,

Dominique.

Dominique Louis wrote:> HI All,

After having some success in getting SDL to compile under Windows I
noticed that I needed the following conditional defines to compile it
for Windows…
WIN32;BUILD_SDL;ENABLE_WINDIB;ENABLE_DIRECTX;HAVE_ALLOCA=1;HAVE_OPENGL

If I were to compile this under an Intel based Linux OS like Mandrake
what conditional defines would I need? Or is there a specific Make file
that compiles for Intel based versions of Linux.

Also under Mandrake how do I find the correct libSDL.so file so I can
perform an IMPLIB on it as well incase my compiled version is not
identical to Sam’s.

Thanks in advance.

Dominique Louis.


http://www.DelphiGamer.com := for all your Object Pascal game
development needs;
http://www.delphi-jedi.org/Jedi:TEAM_SDL_HOME := Home of JEDI-SDL;
Cross-platform game development with Pascal, has never been easier.

It should be as easy as :

./autogen.sh && ./configure && make && su -c ‘make
install && /sbin/ldconfig’

Don’t know about the actual #defines, but I’m sure
looking at the output of cinfigure should help.

-Loren

— Dominique Louis
wrote:

Hi all,
Can anyone with some experience of building SDL
on Linux, help me out
on this post from a few days ago?

Thanks,

Dominique.

Dominique Louis wrote:

HI All,
After having some success in getting SDL to
compile under Windows I
noticed that I needed the following conditional
defines to compile it
for Windows…

WIN32;BUILD_SDL;ENABLE_WINDIB;ENABLE_DIRECTX;HAVE_ALLOCA=1;HAVE_OPENGL> >

If I were to compile this under an Intel based
Linux OS like Mandrake
what conditional defines would I need? Or is there
a specific Make file
that compiles for Intel based versions of Linux.

Also under Mandrake how do I find the correct
libSDL.so file so I can
perform an IMPLIB on it as well incase my compiled
version is not
identical to Sam’s.

Thanks in advance.

Dominique Louis.


http://www.DelphiGamer.com := for all your Object
Pascal game
development needs;
http://www.delphi-jedi.org/Jedi:TEAM_SDL_HOME :=
Home of JEDI-SDL;
Cross-platform game development with Pascal, has
never been easier.


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


Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

Hi All,
I am still wondering if there is anyone who can help me with this.

I have all the demos ( SDL, SDL_image, SDL_mixer, SDL_net, SDL_ttf and
even SDL_sound ) working under Linux, as they link directly with the
shared object, but I cannot for the life of me get the correct project
settings to get it to compile libSDL.so under Mandrake 8.1.

If you can spare a few minutes to answer this question it would be
greatly appreciated. Which Linux specific files should I include in the
project?

Thanks,

Dominique.

Dominique Louis wrote:> Hi all,

Can anyone with some experience of building SDL on Linux, help me out
on this post from a few days ago?

Thanks,

Dominique.

Dominique Louis wrote:

HI All,
After having some success in getting SDL to compile under Windows I
noticed that I needed the following conditional defines to compile it
for Windows…
WIN32;BUILD_SDL;ENABLE_WINDIB;ENABLE_DIRECTX;HAVE_ALLOCA=1;HAVE_OPENGL

If I were to compile this under an Intel based Linux OS like Mandrake
what conditional defines would I need? Or is there a specific Make
file that compiles for Intel based versions of Linux.

Also under Mandrake how do I find the correct libSDL.so file so I can
perform an IMPLIB on it as well incase my compiled version is not
identical to Sam’s.

Thanks in advance.

Dominique Louis.


http://www.DelphiGamer.com := for all your Object Pascal game
development needs;
http://www.delphi-jedi.org/Jedi:TEAM_SDL_HOME := Home of JEDI-SDL;
Cross-platform game development with Pascal, has never been easier.

Which project settings? Do you use a specific IDE?
I am a bit uncertain what you want to do.

If you just want to compile libSDL yourself, use the common way:
./configure
make
make install

The configure script should set all conditional defines and save them in the
Makefile.On Saturday 13 July 2002 00:57, Dominique Louis wrote:

I have all the demos ( SDL, SDL_image, SDL_mixer, SDL_net, SDL_ttf and
even SDL_sound ) working under Linux, as they link directly with the
shared object, but I cannot for the life of me get the correct project
settings to get it to compile libSDL.so under Mandrake 8.1.


Johannes Schmidt

< http://libufo.sourceforge.net > Your widget set for OpenGL

Hi Johannes,
I just needed the list of conditional defines that would allow me to
compile it under Mandrake 8.1 as well as the correct *.c files that
would make it work under X11. If you say that all that information can
be found in the configure script I will look in there, or should I look
in the make file? Is the configure script intelligent enough to work out
which OS I am running and what UI I have and set up things accordingly?

If you haven’t already noticed I am an extreme newbie with Linux
configuration and make files.

Thanks,

Dominique.

Johannes Schmidt wrote:> On Saturday 13 July 2002 00:57, Dominique Louis wrote:

I have all the demos ( SDL, SDL_image, SDL_mixer, SDL_net, SDL_ttf and
even SDL_sound ) working under Linux, as they link directly with the
shared object, but I cannot for the life of me get the correct project
settings to get it to compile libSDL.so under Mandrake 8.1.

Which project settings? Do you use a specific IDE?
I am a bit uncertain what you want to do.

If you just want to compile libSDL yourself, use the common way:
./configure
make
make install

The configure script should set all conditional defines and save them in the
Makefile.

The configure script is part of the GNU autotools.
It creates the Makefiles from Makefile.in files.
It should determine all necessary system information to create valid
Makefiles.
You can specify lots of configure options (./configure --help returns a
list of available options) but the default values should work.

You can find more information on this topic in the internet by searching for
"GNU autotools".

For compiling GNU autotool’ed projects on Unix like platforms, you can almost
always execute:
./configure
make

and for installing (as root):
make installOn Monday 15 July 2002 14:06, Dominique Louis wrote:

Hi Johannes,
I just needed the list of conditional defines that would allow me to
compile it under Mandrake 8.1 as well as the correct *.c files that
would make it work under X11. If you say that all that information can
be found in the configure script I will look in there, or should I look
in the make file?
Is the configure script intelligent enough to work out
which OS I am running and what UI I have and set up things accordingly?


Johannes Schmidt

< http://libufo.sourceforge.net > Your widget set for OpenGL

Dominique Louis wrote:

Is the configure script intelligent enough to
work out which OS I am running and what UI I have and set up things
accordingly?

thats the way it should be. if there is something vital missing, it will
tell you so. you could have a look at the output of ./configure --help
for some intresting features.

Get the source rpms. Rebuild them with “rpm --rebuild --target i586
sdl-whatever.src.rpm”. This is absolutely the best way to do this on
Mandrake. (Or use i686 instead of i586, if you prefer.)On Mon, Jul 15, 2002 at 01:06:31PM +0100, Dominique Louis wrote:

Hi Johannes,
I just needed the list of conditional defines that would allow me to
compile it under Mandrake 8.1 as well as the correct *.c files that
would make it work under X11. If you say that all that information can
be found in the configure script I will look in there, or should I look
in the make file? Is the configure script intelligent enough to work out
which OS I am running and what UI I have and set up things accordingly?


Matthew Miller @Matthew_Miller http://www.mattdm.org/
Boston University Linux ------> http://linux.bu.edu/

allo Dominique,

I am using Mandrake 8.1, 8.2 and rehat7.3 to do my SDL-project.
I am also using Kylix 1.0 2.0 and also OpenEditiion. The project so far
compiled well and the shared-lib is libSDL-1.2.so.0 and this is pointing :-

  1. to libSDL-1.2.so.0.0.2 in ML8.1
  2. to libSDL-1.2.so.0.0.3 in ML8.2
  3. to libSDL-1.2.so.0.0.3 in redhat7.3

for my case using Kylix, there is an interface file in Pascal, that works
like a macro that translate and map the function calls to the actual C
library.

as for my experience with ML8.1 it is not so linux compliant some how my
current mpg_audio works.

if fact the samples that U sent me did not, why not send your project over
and let me test compiling with my systems.

ciao====
daniel

----- Original Message -----
From: dominique@savagesoftware.com.au (Dominique Louis)
To:
Sent: Saturday, July 13, 2002 6:57 AM
Subject: Re: [SDL] How to Compile SDL under i586 Linux…

Hi All,
I am still wondering if there is anyone who can help me with this.

I have all the demos ( SDL, SDL_image, SDL_mixer, SDL_net, SDL_ttf and
even SDL_sound ) working under Linux, as they link directly with the
shared object, but I cannot for the life of me get the correct project
settings to get it to compile libSDL.so under Mandrake 8.1.

If you can spare a few minutes to answer this question it would be
greatly appreciated. Which Linux specific files should I include in the
project?

Thanks,

Dominique.

Dominique Louis wrote:

Hi all,
Can anyone with some experience of building SDL on Linux, help me out
on this post from a few days ago?

Thanks,

Dominique.

Dominique Louis wrote:

HI All,
After having some success in getting SDL to compile under Windows I
noticed that I needed the following conditional defines to compile it
for Windows…
WIN32;BUILD_SDL;ENABLE_WINDIB;ENABLE_DIRECTX;HAVE_ALLOCA=1;HAVE_OPENGL

If I were to compile this under an Intel based Linux OS like Mandrake
what conditional defines would I need? Or is there a specific Make
file that compiles for Intel based versions of Linux.

Also under Mandrake how do I find the correct libSDL.so file so I can
perform an IMPLIB on it as well incase my compiled version is not
identical to Sam’s.

Thanks in advance.

Dominique Louis.


http://www.DelphiGamer.com := for all your Object Pascal game
development needs;
http://www.delphi-jedi.org/Jedi:TEAM_SDL_HOME := Home of JEDI-SDL;
Cross-platform game development with Pascal, has never been easier.


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