Installing SDL_gfx under Mac OS 10.4.8

Hello,

I successfully installed SDL as follows:

wget http://www.libsdl.org/release/SDL-1.2.11.tar.gz
tar -xzvf SDL-1.2.11.tar.gz
cd SDL-1.2.11
./configure
make
sudo make install

Then I tried to install SDL_gfx as follows:

wget http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-2.0.15.tar.gz
tar -xzvf SDL_gfx-2.0.15.tar.gz
cd SDL_gfx-2.0.15
./configure
make

everything goes well until the make gets to compiling SDL_imageFilter.c:

gcc -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION=""
-DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE=“SDL_gfx”
-DVERSION=“2.0.15” -DBUILD_DLL -I. -I. -g -O2 -DUSE_MMX
-I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -MT SDL_imageFilter.lo
-MD -MP -MF .deps/SDL_imageFilter.Tpo -c SDL_imageFilter.c -o SDL_imageFilter.o

this causes a bunch of errors:

/var/tmp//cc4apJvQ.s:23:Invalid mnemonic ‘pusha’
/var/tmp//cc4apJvQ.s:24:Invalid mnemonic ‘mov’
/var/tmp//cc4apJvQ.s:25:Invalid mnemonic ‘cpuid’

/var/tmp//cc4apJvQ.s:6029:Invalid mnemonic 'mov’
make: *** [SDL_imageFilter.lo] Error 1

Here is what I am running:

GNU Make 3.80
gcc version 4.0.1 (Apple Computer, Inc. build 5250)

Any help on installing SDL_gfx would be appreciated.

Thanks,

Vadim
@Vadim_Bulitko

[…]

Then I tried to install SDL_gfx as follows:

wget
http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-2.0.15.tar.gz
tar -xzvf SDL_gfx-2.0.15.tar.gz
cd SDL_gfx-2.0.15
./configure
make

everything goes well until the make gets to compiling
SDL_imageFilter.c:

gcc -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION=""

-DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE=“SDL_gfx”
-DVERSION=“2.0.15” -DBUILD_DLL -I. -I. -g -O2 -DUSE_MMX
-I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -MT
SDL_imageFilter.lo
-MD -MP -MF .deps/SDL_imageFilter.Tpo -c SDL_imageFilter.c -o
SDL_imageFilter.o

this causes a bunch of errors:

/var/tmp//cc4apJvQ.s:23:Invalid mnemonic ‘pusha’
/var/tmp//cc4apJvQ.s:24:Invalid mnemonic ‘mov’
/var/tmp//cc4apJvQ.s:25:Invalid mnemonic ‘cpuid’

/var/tmp//cc4apJvQ.s:6029:Invalid mnemonic 'mov’
make: *** [SDL_imageFilter.lo] Error 1

Looks like it’s trying to throw in some x86 assembly language…

The -DUSE_MMX switch above suggests it’s trying to build with MMX SIMD
extensions, which are x86 specific. (The PPC SIMD extensions are
called AltiVec.)

There seems to be PPC packages of SDL_gfx, so it should be possible to
make it build somehow, but I suspect it’ll be using plain C
fallbacks. You probably have to disable SIMD/asm optimizations
manually by means of a switch for ./configure. Try
./configure --help
and see if there are any clues.

//David Olofson - Programmer, Composer, Open Source Advocate

.------- http://olofson.net - Games, SDL examples -------.
| http://zeespace.net - 2.5D rendering engine |
| http://audiality.org - Music/audio engine |
| http://eel.olofson.net - Real time scripting |
’-- http://www.reologica.se - Rheology instrumentation --'On Wednesday 10 January 2007 00:21, Vadim Bulitko wrote: