Help croos-compiling SDL_gfx-2.0.20 for ARM

Hi all

I need croos-compiling SDL_gfx-2.0.20 for ARM

My compiler is armv5l-linux-gcc

located in:
/opt/timesys/toolchains/armv5l-linux/bin/armv5l-linux-gcc

My PATH is:
#echo $PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/timesys/toolchains/armv5l-linux/bin:/opt/timesys/toolchains/armv5l-linux/include:/opt/timesys/toolchains/armv5l-linux/lib:/opt/timesys/toolchains/armv5l-linux/libexec

root at francisco-desktop:/opt/SDL_library/SDL_gfx-2.0.20#

step 1)

./configure --host=armv5l-linux --prefix=/opt/SDL_library/compiled

configure: WARNING: If you wanted to set the --build type, don’t use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type… i686-pc-linux-gnu
checking host system type… armv5l-unknown-linux-gnu
checking target system type… armv5l-unknown-linux-gnu
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p



checking for an ANSI C-conforming const… yes
checking for X… no
checking for sdl-config… /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.0… cross compiling; assumed OK…
yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating SDL_gfx.pc
config.status: executing depfiles commands
root at francisco-desktop:/opt/SDL_library/SDL_gfx-2.0.20#

step 2)

make

/tmp/cc1Xrnka.s:4947: Error: bad instruction pmullw %mm3,%mm1' /tmp/cc1Xrnka.s:4948: Error: bad instructionpmullw %mm4,%mm2’



/tmp/cc1Xrnka.s:5640: Error: register expected, not ‘(%esp),%ebx’ – mov (%esp),%ebx' /tmp/cc1Xrnka.s:5641: Error: register expected, not '%ebx,%esp' --mov %ebx,%esp’
make: *** [SDL_imageFilter.lo] Error 1 [Crying or Very sad]

I croos compiling SDL-1.2.14 (basic libraries SDL)in the same way and this worked perfectly

Thanks for any suggestions. :smiley:

Show please ./configure --help of SDL_gfx

Cheers

In data mercoled? 24 marzo 2010 22:22:25, francisco ha scritto:
: > Hi all>

I need croos-compiling SDL_gfx-2.0.20 for ARM

My compiler is armv5l-linux-gcc

located in:
/opt/timesys/toolchains/armv5l-linux/bin/armv5l-linux-gcc

My PATH is:
#echo $PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/op
t/timesys/toolchains/armv5l-linux/bin:/opt/timesys/toolchains/armv5l-linux/
include:/opt/timesys/toolchains/armv5l-linux/lib:/opt/timesys/toolchains/ar
mv5l-linux/libexec

root at francisco-desktop:/opt/SDL_library/SDL_gfx-2.0.20#

step 1)

./configure --host=armv5l-linux --prefix=/opt/SDL_library/compiled

configure: WARNING: If you wanted to set the --build type, don’t use
–host. If a cross compiler is detected then cross compile mode will be
used. checking build system type… i686-pc-linux-gnu
checking host system type… armv5l-unknown-linux-gnu
checking target system type… armv5l-unknown-linux-gnu
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p



checking for an ANSI C-conforming const… yes
checking for X… no
checking for sdl-config… /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.0… cross compiling; assumed OK…
yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating SDL_gfx.pc
config.status: executing depfiles commands
root at francisco-desktop:/opt/SDL_library/SDL_gfx-2.0.20#

step 2)

make

/tmp/cc1Xrnka.s:4947: Error: bad instruction pmullw %mm3,%mm1' /tmp/cc1Xrnka.s:4948: Error: bad instructionpmullw %mm4,%mm2’



/tmp/cc1Xrnka.s:5640: Error: register expected, not ‘(%esp),%ebx’ – mov (%esp),%ebx' /tmp/cc1Xrnka.s:5641: Error: register expected, not '%ebx,%esp' --mov %ebx,%esp’ make: *** [SDL_imageFilter.lo] Error 1
[Crying or Very sad]

I croos compiling SDL-1.2.14 (basic libraries SDL)in the same way and this
worked perfectly

Thanks for any suggestions. :smiley:


Fabio Giovagnini

Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919