Cannot modify Makfile.minimal

Hi,
Can anyone help in debugging this problem here.
I have tried do the following steps

1.Download arm linux cross platform compile toolchains from URL:

http://www.codesourcery.com/gnu_toolchains/arm/download.html

Windows:
http://www.codesourcery.com/gnu_toolchains/arm/portal/package3400/public/arm-none-linux-gnueabi/arm-2008q3-41-arm-none-linux-gnueabi.exe

Linux:
http://www.codesourcery.com/gnu_toolchains/arm/portal/package3399/public/arm-none-linux-gnueabi/arm-2008q3-41-arm-none-linux-gnueabi.bin

after install the gnu arm linux toolchains, set the dir “bin” to your path;

2.If you use windows, pls install cygwin(http://www.cygwin.com), if you use
linux, ignore this step;

3.Download SDL 1.2.13 source from http://www.libsdl.org, and un-zip it to a
dir;

4.Change the Makefile.minimal as follows:

But changing Makefile.minimal does not seem to have any effect.

As I wanted to change the top lines of the Makefile.minimal to the
following:

Makefile to build the SDL library

INCLUDE = -I./include
CFLAGS = -g -O2 $(INCLUDE) -static
CC = arm-none-linux-gnueabi-gcc
AR = arm-none-linux-gnueabi-ar
RANLIB = arm-none-linux-gnueabi-ranlib

once i run the make command after ./configure, I still see gcc commands but
not arm-none-linux-gcc commands.

Can anyone please help me in this.

Thanks,
Mark

You don’t need to use configure with Makefile.minimal, just do:
make -f Makefile.minimalOn Mon, Sep 21, 2009 at 7:45 PM, Mark wrote:

Hi,
Can anyone help in debugging this problem here.
I have tried do the following steps

1.Download arm linux cross platform compile toolchains from URL:

http://www.codesourcery.com/gnu_toolchains/arm/download.html

Windows:
http://www.codesourcery.com/gnu_toolchains/arm/portal/package3400/public/arm-none-linux-gnueabi/arm-2008q3-41-arm-none-linux-gnueabi.exe

Linux:
http://www.codesourcery.com/gnu_toolchains/arm/portal/package3399/public/arm-none-linux-gnueabi/arm-2008q3-41-arm-none-linux-gnueabi.bin

after install the gnu arm linux toolchains, set the dir “bin” to your path;

2.If you use windows, pls install cygwin(http://www.cygwin.com), if you
use linux, ignore this step;

3.Download SDL 1.2.13 source from http://www.libsdl.org, and un-zip it to
a dir;

4.Change the Makefile.minimal as follows:

But changing Makefile.minimal does not seem to have any effect.

As I wanted to change the top lines of the Makefile.minimal to the
following:

Makefile to build the SDL library

INCLUDE = -I./include
CFLAGS = -g -O2 $(INCLUDE) -static
CC = arm-none-linux-gnueabi-gcc
AR = arm-none-linux-gnueabi-ar
RANLIB = arm-none-linux-gnueabi-ranlib

once i run the make command after ./configure, I still see gcc commands but
not arm-none-linux-gcc commands.

Can anyone please help me in this.

Thanks,
Mark


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

Hi,

Help needed to solve this problem.–
It worked.
I further continued with the following:

Downloaded TinySDL from
http://www.kyb.tuebingen.mpg.de/bu/people/gf/software/, TinySDGL:
http://www.kyb.tuebingen.mpg.de/bu/people/gf/software/TinySDGL.zip, and
un-zip TinySDGL to the same dir as you un-zip SDL;

For compiling TinySDGL, changed makeinclude as follows:

#####################################################################

C compiler

linux / Windows MinGW

CC= arm-none-linux-gnueabi-gcc
AR = arm-none-linux-gnueabi-ar
RANLIB = arm-none-linux-gnueabi-ranlib
CFLAGS = -g -Wall -O2 -w -static
LFLAGS = -s -static

#####################################################################

SDL configuration (for the examples only)

UI_LIBS = -L…/…/SDL-1.2.13 -lSDL
UI_INCLUDES = -I…/…/SDL-1.2.13/include

#####################################################################

OpenGL configuration (for the examples only)

use TinySDGL

GL_LIBS= -L…/lib -lTinySDGL
GL_INCLUDES= -I…/include
GL_DEPS= …/lib/libTinySDGL.a

use Mesa

#GL_LIBS= -lMesaGL
#GL_INCLUDES=
#GL_DEPS=

use OpenGL

#GL_LIBS= -lGL
#GL_INCLUDES=
#GL_DEPS=

####################################################################

Compile and link control

DIRS= src examples

When I run make, I see the following errors:

arm-none-linux-gnueabi-gcc -s -static gears.o -o gears -L…/lib
-lTinySDGL -L…/…/SDL-1.2.13
-lSDL -lm

…/…/SDL-1.2.13/libSDL.a(SDL_audio.o):(.rodata+0x50): undefined reference
to `DISKAUD_bootstrap’

…/…/SDL-1.2.13/libSDL.a(SDL_audio.o):(.rodata+0x54): undefined reference
to `DUMMYAUD_bootstrap’

…/…/SDL-1.2.13/libSDL.a(SDL_cdrom.o): In function `SDL_CDROMQuit’:

/home/bala/SDL-1.2.13/src/cdrom/SDL_cdrom.c:339: undefined reference to
`SDL_SYS_CDQuit’

…/…/SDL-1.2.13/libSDL.a(SDL_cdrom.o): In function `SDL_CDROMInit’:

/home/bala/SDL-1.2.13/src/cdrom/SDL_cdrom.c:56: undefined reference to
`SDL_SYS_CDInit’

…/…/SDL-1.2.13/libSDL.a(SDL_joystick.o): In function `SDL_JoystickUpdate’:

/home/bala/SDL-1.2.13/src/joystick/SDL_joystick.c:540: undefined reference
to `SDL_SYS_JoystickUpdate’

…/…/SDL-1.2.13/libSDL.a(SDL_joystick.o): In function `SDL_JoystickQuit’:

/home/bala/SDL-1.2.13/src/joystick/SDL_joystick.c:409: undefined reference
to `SDL_SYS_JoystickQuit’

…/…/SDL-1.2.13/libSDL.a(SDL_joystick.o): In function `SDL_JoystickClose’:

/home/bala/SDL-1.2.13/src/joystick/SDL_joystick.c:371: undefined reference
to `SDL_SYS_JoystickClose’

…/…/SDL-1.2.13/libSDL.a(SDL_joystick.o): In function `SDL_JoystickOpen’:

/home/bala/SDL-1.2.13/src/joystick/SDL_joystick.c:118: undefined reference
to `SDL_SYS_JoystickOpen’

…/…/SDL-1.2.13/libSDL.a(SDL_joystick.o): In function `SDL_JoystickName’:

/home/bala/SDL-1.2.13/src/joystick/SDL_joystick.c:83: undefined reference to
`SDL_SYS_JoystickName’

…/…/SDL-1.2.13/libSDL.a(SDL_joystick.o): In function `SDL_JoystickInit’:

/home/bala/SDL-1.2.13/src/joystick/SDL_joystick.c:49: undefined reference to
`SDL_SYS_JoystickInit’

…/…/SDL-1.2.13/libSDL.a(SDL_video.o):(.rodata+0x4): undefined reference to
`DUMMY_bootstrap’

collect2: ld returned 1 exit status

Can u please help on this.

Thanks

On Tue, Sep 22, 2009 at 3:31 PM, Sam Lantinga wrote:

You don’t need to use configure with Makefile.minimal, just do:
make -f Makefile.minimal

On Mon, Sep 21, 2009 at 7:45 PM, Mark <@Mark3> wrote:

Hi,
Can anyone help in debugging this problem here.
I have tried do the following steps

1.Download arm linux cross platform compile toolchains from URL:

http://www.codesourcery.com/gnu_toolchains/arm/download.html

Windows:
http://www.codesourcery.com/gnu_toolchains/arm/portal/package3400/public/arm-none-linux-gnueabi/arm-2008q3-41-arm-none-linux-gnueabi.exe

Linux:
http://www.codesourcery.com/gnu_toolchains/arm/portal/package3399/public/arm-none-linux-gnueabi/arm-2008q3-41-arm-none-linux-gnueabi.bin

after install the gnu arm linux toolchains, set the dir “bin” to your
path;

2.If you use windows, pls install cygwin(http://www.cygwin.com), if you
use linux, ignore this step;

3.Download SDL 1.2.13 source from http://www.libsdl.org, and un-zip it to
a dir;

4.Change the Makefile.minimal as follows:

But changing Makefile.minimal does not seem to have any effect.

As I wanted to change the top lines of the Makefile.minimal to the
following:

Makefile to build the SDL library

INCLUDE = -I./include
CFLAGS = -g -O2 $(INCLUDE) -static
CC = arm-none-linux-gnueabi-gcc
AR = arm-none-linux-gnueabi-ar
RANLIB = arm-none-linux-gnueabi-ranlib

once i run the make command after ./configure, I still see gcc commands
but not arm-none-linux-gcc commands.

Can anyone please help me in this.

Thanks,
Mark


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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

Make sure you copy include/SDL_config_minimal.h to include/SDL_config.h
before building with Makefile.minimalOn Tue, Sep 22, 2009 at 4:17 PM, Mark wrote:

Hi,

Help needed to solve this problem.

It worked.
I further continued with the following:

Downloaded TinySDL from
http://www.kyb.tuebingen.mpg.de/bu/people/gf/software/, TinySDGL:
http://www.kyb.tuebingen.mpg.de/bu/people/gf/software/TinySDGL.zip, and
un-zip TinySDGL to the same dir as you un-zip SDL;

For compiling TinySDGL, changed makeinclude as follows:

#####################################################################

C compiler

linux / Windows MinGW

CC= arm-none-linux-gnueabi-gcc
AR = arm-none-linux-gnueabi-ar
RANLIB = arm-none-linux-gnueabi-ranlib
CFLAGS = -g -Wall -O2 -w -static
LFLAGS = -s -static

#####################################################################

SDL configuration (for the examples only)

UI_LIBS = -L…/…/SDL-1.2.13 -lSDL
UI_INCLUDES = -I…/…/SDL-1.2.13/include

#####################################################################

OpenGL configuration (for the examples only)

use TinySDGL

GL_LIBS= -L…/lib -lTinySDGL
GL_INCLUDES= -I…/include
GL_DEPS= …/lib/libTinySDGL.a

use Mesa

#GL_LIBS= -lMesaGL
#GL_INCLUDES=
#GL_DEPS=

use OpenGL

#GL_LIBS= -lGL
#GL_INCLUDES=
#GL_DEPS=

####################################################################

Compile and link control

DIRS= src examples

When I run make, I see the following errors:

arm-none-linux-gnueabi-gcc -s -static gears.o -o gears -L…/lib -lTinySDGL
-L…/…/SDL-1.2.13 -lSDL -lm

…/…/SDL-1.2.13/libSDL.a(SDL_audio.o):(.rodata+0x50): undefined reference
to `DISKAUD_bootstrap’

…/…/SDL-1.2.13/libSDL.a(SDL_audio.o):(.rodata+0x54): undefined reference
to `DUMMYAUD_bootstrap’

…/…/SDL-1.2.13/libSDL.a(SDL_cdrom.o): In function `SDL_CDROMQuit’:

/home/bala/SDL-1.2.13/src/cdrom/SDL_cdrom.c:339: undefined reference to
`SDL_SYS_CDQuit’

…/…/SDL-1.2.13/libSDL.a(SDL_cdrom.o): In function `SDL_CDROMInit’:

/home/bala/SDL-1.2.13/src/cdrom/SDL_cdrom.c:56: undefined reference to
`SDL_SYS_CDInit’

…/…/SDL-1.2.13/libSDL.a(SDL_joystick.o): In function
`SDL_JoystickUpdate’:

/home/bala/SDL-1.2.13/src/joystick/SDL_joystick.c:540: undefined reference
to `SDL_SYS_JoystickUpdate’

…/…/SDL-1.2.13/libSDL.a(SDL_joystick.o): In function `SDL_JoystickQuit’:

/home/bala/SDL-1.2.13/src/joystick/SDL_joystick.c:409: undefined reference
to `SDL_SYS_JoystickQuit’

…/…/SDL-1.2.13/libSDL.a(SDL_joystick.o): In function `SDL_JoystickClose’:

/home/bala/SDL-1.2.13/src/joystick/SDL_joystick.c:371: undefined reference
to `SDL_SYS_JoystickClose’

…/…/SDL-1.2.13/libSDL.a(SDL_joystick.o): In function `SDL_JoystickOpen’:

/home/bala/SDL-1.2.13/src/joystick/SDL_joystick.c:118: undefined reference
to `SDL_SYS_JoystickOpen’

…/…/SDL-1.2.13/libSDL.a(SDL_joystick.o): In function `SDL_JoystickName’:

/home/bala/SDL-1.2.13/src/joystick/SDL_joystick.c:83: undefined reference
to `SDL_SYS_JoystickName’

…/…/SDL-1.2.13/libSDL.a(SDL_joystick.o): In function `SDL_JoystickInit’:

/home/bala/SDL-1.2.13/src/joystick/SDL_joystick.c:49: undefined reference
to `SDL_SYS_JoystickInit’

…/…/SDL-1.2.13/libSDL.a(SDL_video.o):(.rodata+0x4): undefined reference
to `DUMMY_bootstrap’

collect2: ld returned 1 exit status

Can u please help on this.

Thanks

On Tue, Sep 22, 2009 at 3:31 PM, Sam Lantinga <@slouken> wrote:

You don’t need to use configure with Makefile.minimal, just do:
make -f Makefile.minimal

On Mon, Sep 21, 2009 at 7:45 PM, Mark wrote:

Hi,
Can anyone help in debugging this problem here.
I have tried do the following steps

1.Download arm linux cross platform compile toolchains from URL:

http://www.codesourcery.com/gnu_toolchains/arm/download.html

Windows:
http://www.codesourcery.com/gnu_toolchains/arm/portal/package3400/public/arm-none-linux-gnueabi/arm-2008q3-41-arm-none-linux-gnueabi.exe

Linux:
http://www.codesourcery.com/gnu_toolchains/arm/portal/package3399/public/arm-none-linux-gnueabi/arm-2008q3-41-arm-none-linux-gnueabi.bin

after install the gnu arm linux toolchains, set the dir “bin” to your
path;

2.If you use windows, pls install cygwin(http://www.cygwin.com), if you
use linux, ignore this step;

3.Download SDL 1.2.13 source from http://www.libsdl.org, and un-zip it
to a dir;

4.Change the Makefile.minimal as follows:

But changing Makefile.minimal does not seem to have any effect.

As I wanted to change the top lines of the Makefile.minimal to the
following:

Makefile to build the SDL library

INCLUDE = -I./include
CFLAGS = -g -O2 $(INCLUDE) -static
CC = arm-none-linux-gnueabi-gcc
AR = arm-none-linux-gnueabi-ar
RANLIB = arm-none-linux-gnueabi-ranlib

once i run the make command after ./configure, I still see gcc commands
but not arm-none-linux-gcc commands.

Can anyone please help me in this.

Thanks,
Mark


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC