Newbie PS2SDK build question
Posted: Tue Aug 03, 2004 8:28 am
Pardon for the newbie build question. I grabbed the PS2SDK v1.0 Alpha yesterday. Couldn't use the scr_printf() function, and the suggested fix in forum was to include debug.h (which is only available in the current CVS tree). So I just downloaded Cygwin (installed GCC 3.3.1-3) on my WinXP machine, synced down the sources from cvs.ps2dev.org. Set up my env variables as
Attempted to make from %PS2SDKSRC% and got
Running a make from within C:\ps2sdksrc\ps2sdk\iop\dev9\dev9
Looking for stddef.h on in the ps2 related directory, I got
Does that mean, I need to add the C:\ps2dev\gcc\iop\lib\gcc-lib\iop\2.8.1-ps2dev\include to the C:\ps2sdksrc\ps2sdk\iop\Rules.make? Or my environment is still not set up properly? Thanks for any clues you can toss my way.
Code: Select all
PS2GCC=c:\ps2dev\gcc
PS2SDKSRC=c:\ps2sdksrc\ps2sdk
Code: Select all
make -C tools
make[1]: Entering directory `/cygdrive/c/ps2sdksrc/ps2sdk/tools'
make -C bin2s
make[2]: Entering directory `/cygdrive/c/ps2sdksrc/ps2sdk/tools/bin2s'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/cygdrive/c/ps2sdksrc/ps2sdk/tools/bin2s'
make[1]: Leaving directory `/cygdrive/c/ps2sdksrc/ps2sdk/tools'
make -C iop
make[1]: Entering directory `/cygdrive/c/ps2sdksrc/ps2sdk/iop'
make -C kernel
make[2]: Entering directory `/cygdrive/c/ps2sdksrc/ps2sdk/iop/kernel'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/cygdrive/c/ps2sdksrc/ps2sdk/iop/kernel'
make -C dev9
make[2]: Entering directory `/cygdrive/c/ps2sdksrc/ps2sdk/iop/dev9'
make -C dev9
make[3]: Entering directory `/cygdrive/c/ps2sdksrc/ps2sdk/iop/dev9/dev9'
iop-gcc -O2 -G0 -c -Ic:\ps2sdksrc\ps2sdk/iop/kernel/include -Ic:\ps2sdksrc\ps2sdk/common/include -Iinclude -Wall -fno-builtin-printf src/ps2dev9.c -o obj/ps2dev9.o
cpp: -lang-c: linker input file unused because linking not done
In file included from c:/ps2sdksrc/ps2sdk/iop/kernel/include/types.h:13,
from src/ps2dev9.c:13:
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/stddef.h:0: warning: unrecognized text at end of #line
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/stddef.h:157: warning: unrecognized text at end of #line
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/stddef.h:219: warning: unrecognized text at end of #line
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/stddef.h:331: warning: unrecognized text at end of #line
as: unrecognized option `-G0'
make[3]: *** [obj/ps2dev9.o] Error 1
make[3]: Leaving directory `/cygdrive/c/ps2sdksrc/ps2sdk/iop/dev9/dev9'
make[2]: *** [all-dev9] Error 2
make[2]: Leaving directory `/cygdrive/c/ps2sdksrc/ps2sdk/iop/dev9'
make[1]: *** [all-dev9] Error 2
make[1]: Leaving directory `/cygdrive/c/ps2sdksrc/ps2sdk/iop'
make: *** [all-iop] Error 2
Code: Select all
mkdir obj/
mkdir bin/
iop-gcc -O2 -G0 -c -Ic:\ps2sdksrc\ps2sdk/iop/kernel/include -Ic:\ps2sdksrc\ps2sdk/common/include -Iinclude -Wall -fno-builtin-printf src/ps2dev9.c -o obj/ps2dev9.o
In file included from src/ps2dev9.c:13:
c:\ps2sdksrc\ps2sdk/iop/kernel/include/types.h:13: stddef.h: No such file or directory
make: *** [obj/ps2dev9.o] Error 1
Code: Select all
C:\ps2dev\gcc\ee\lib\gcc-lib\ee\3.2.2\include\stddef.h
C:\ps2dev\gcc\ee\lib\gcc-lib\ee\3.2.2\include\gcc\ginclude\stddef.h
C:\ps2dev\gcc\iop\lib\gcc-lib\iop\2.8.1-ps2dev\include\stddef.h