Hello,
I am trying to cross-compile the SDL for ARM. I need it to run spcaview on
my embedded platform.
These are the command I gave
./configure --build arm --host arm-linux
make
I get the following error.
Please help.
arm-linux-gcc -DPACKAGE_NAME="" -DPACKAGE_TARNAME=""
-DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT=""
-DPACKAGE=“SDL” -DVERSION=“1.2.9” -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I. -I. -g -O2 -Wall
-DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_DLOPEN -DOSS_SUPPORT
-DARTSC_SUPPORT -DARTSC_DYNAMIC=libartsc.so.0 -I/usr/include/kde/artsc
-pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DESD_SUPPORT
-DESD_DYNAMIC=“libesd.so.0” -I/usr/X11R6/include -DENABLE_X11 -DXTHREADS
-I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE
-DDEFAULT_DGAMOUSE -DXFREE86_XV -DHAVE_XINERAMA -Isrc/video -DENABLE_DGA
-DENABLE_FBCON -DUSE_INPUT_EVENTS -D_REENTRANT -DSDL_USE_PTHREADS
-DHAVE_SIGACTION -DHAVE_LINUX_VERSION_H -I…/…/…/include
-I…/…/…/include/SDL -I…/…/…/src -I…/…/…/src/main/linux
-I…/…/…/src/audio -I…/…/…/src/video
-I…/…/…/src/video/XFree86/extensions -I…/…/…/src/events
-I…/…/…/src/joystick -I…/…/…/src/cdrom -I…/…/…/src/thread
-I…/…/…/src/timer -I…/…/…/src/endian -I…/…/…/src/file
-I…/…/…/src/thread -MT SDL_esdaudio.lo -MD -MP -MF .deps/SDL_esdaudio.Tpo
-c SDL_esdaudio.c -fPIC -DPIC -o .libs/SDL_esdaudio.o
SDL_esdaudio.c:39:17: esd.h: No such file or directory
SDL_esdaudio.c:74: error: parse error before "format"
SDL_esdaudio.c:80: warning: dereferencing type-punned pointer will break
strict-aliasing rules
SDL_esdaudio.c:81: warning: dereferencing type-punned pointer will break
strict-aliasing rules
SDL_esdaudio.c:82: warning: dereferencing type-punned pointer will break
strict-aliasing rules
SDL_esdaudio.c: In function ESD_OpenAudio': SDL_esdaudio.c:284: error:
esd_format_t’ undeclared (first use in this
function)
SDL_esdaudio.c:284: error: (Each undeclared identifier is reported only once
SDL_esdaudio.c:284: error: for each function it appears in.)
SDL_esdaudio.c:284: error: parse error before "format"
SDL_esdaudio.c:287: error: format' undeclared (first use in this function) SDL_esdaudio.c:287: error:
ESD_STREAM’ undeclared (first use in this
function)
SDL_esdaudio.c:287: error: ESD_PLAY' undeclared (first use in this function) SDL_esdaudio.c:290: error:
ESD_BITS8’ undeclared (first use in this
function)
SDL_esdaudio.c:293: error: ESD_BITS16' undeclared (first use in this function) SDL_esdaudio.c:300: error:
ESD_MONO’ undeclared (first use in this
function)
SDL_esdaudio.c:302: error: ESD_STEREO' undeclared (first use in this function) make[3]: *** [SDL_esdaudio.lo] Error 1 make[3]: Leaving directory
/home/sidd/src/SDL-1.2.9/src/audio/esd’
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory /home/sidd/src/SDL-1.2.9/src/audio' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
/home/sidd/src/SDL-1.2.9/src’
make: *** [all-recursive] Error 1