gp32rich
Never been accused of being subtle
So I'm bored for Easter and wedding and stuff and decided it's about time I got a build environment going.
So I grabbed files as per any instructions I could find
20100611-i686-linux-armv7a-linux-gnueabi-toolchain-openpandora.tar.bz2 (from Rockthesmurf's guide around here)
SDL-devel-1.2.14-mingw32.tar.gz (pandorawiki ?)
and downloaded
devkitProUpdater-1.5.0.exe
I copied libs and includes into pandora/include & .../lib
set paths so: path c:\devkitPro\msys\bin;c:\devkitPro\devkitARM\bin;c:\windows;c:\windows\system32 <-- Yes! It's windows! It would beW98TurboC if I had my way <_<
Grabbed some source (twin-e) from the archive and pointed the makefile to my inc&lib dirs and ran make -fmakefile.panda
It failed. So I remembered some extra defines and -w's from rockthesmurfs tips. It failed.
Report follows
Line breaks [] added for non-scrolly clarity
Code around the error in SDL_stdinc.h is
If I'm reading this right - (x) on line 123 needs to be non-zero
So what extra flags do I need to set for sizeof(enum) to be int sized?
Have I got the wrong SDL?
Have I missed something really REALLY simple :rolleyes: <-- most likely
Cheers
Rich
So I grabbed files as per any instructions I could find
20100611-i686-linux-armv7a-linux-gnueabi-toolchain-openpandora.tar.bz2 (from Rockthesmurf's guide around here)
SDL-devel-1.2.14-mingw32.tar.gz (pandorawiki ?)
and downloaded
devkitProUpdater-1.5.0.exe
I copied libs and includes into pandora/include & .../lib
set paths so: path c:\devkitPro\msys\bin;c:\devkitPro\devkitARM\bin;c:\windows;c:\windows\system32 <-- Yes! It's windows! It would be
Grabbed some source (twin-e) from the archive and pointed the makefile to my inc&lib dirs and ran make -fmakefile.panda
It failed. So I remembered some extra defines and -w's from rockthesmurfs tips. It failed.
Report follows
Code:
C:\Users\Rich\Documents\source\pandora\twin-e\twin-e src>make -f makefile.panda
arm-eabi-gcc -Wall -O3 -Wextra -Wdeclaration-after-statement -fomit-frame-pointer -fsigned-char \
-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -DUNIX -Ic:/devkitpro/pandora/include/SDL \
-Ic:/devkitpro/pandora/include -Wno-deprecated -Wno-psabi -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ \
-D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -D__NEW__ -D__SGI_STL_INTERNAL_PAIR_H -D_PANDORA -DTCHAR=char \
-c actors.c -o actors.o
In file included from c:/devkitpro/pandora/include/SDL/SDL_main.h:26:0,
from c:/devkitpro/pandora/include/SDL/SDL.h:30,
from osystem.h:22,
from lba.h:200,
from actors.c:19:
c:/devkitpro/pandora/include/SDL/SDL_stdinc.h:151:1: error: size of array 'SDL_dummy_enum' is negative
make: *** [actors.o] Error 1
Code around the error in SDL_stdinc.h is
Code:
122:#define SDL_COMPILE_TIME_ASSERT(name, x) \
123: typedef int SDL_dummy_ ## name[(x) * 2 - 1]
...
146:typedef enum {
147: DUMMY_ENUM_VALUE
148:} SDL_DUMMY_ENUM;
149:
150:#ifndef __NDS__
151:SDL_COMPILE_TIME_ASSERT(enum, sizeof(SDL_DUMMY_ENUM) == sizeof(int));
152:#endif
So what extra flags do I need to set for sizeof(enum) to be int sized?
Have I got the wrong SDL?
Have I missed something really REALLY simple :rolleyes: <-- most likely
Cheers
Rich
Last edited by a moderator: