Environment setup

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
KaylaKaze
Posts: 75
Joined: Wed May 05, 2004 3:25 pm
Location: NC, USA
Contact:

Environment setup

Post by KaylaKaze »

I've decided to start using the PS2SDK so that I can be using the latest sources but I'm not exactly sure of all the environment variables that should be being set. This is my current ps2env.bat

Code: Select all

set PS2GCC=f:\ps2dev\gcc

REM #################################################


set path=%path%;%ps2gcc%\share;%ps2gcc%\ee;%ps2gcc%\ee\bin;%ps2gcc%\iop;%ps2gcc%\iop\bin;%ps2gcc%\iop\lib\gcc-lib\iop\2.8.1-ps2dev;%ps2gcc%\sdk\bin
set PS2SDK=F:/ps2dev/ps2sdk
set PS2SDKSRC=F:/ps2dev/ps2sdk
set LIBHDD=F:/ps2dev/libhdd
set PS2DRV=F:/ps2dev/ps2sdk
set PS2LIB=F:/ps2dev/ps2lib
set PS2DEV=F:/ps2dev/
set PS2IP=F:/ps2dev/ps2ip
set PS2ETH=F:/ps2dev/ps2eth
set IOP_INCS=-IF:/ps2dev/gcc/iop/lib/gcc-lib/iop/2.8.1-ps2dev/include
Obviously this isn't right because ps2sdk still doesn't compile. Is anything wrong or is anything missing that should be there? Currently it screws up in the dev9 directory.
blackdroid
Posts: 564
Joined: Sat Jan 17, 2004 10:22 am
Location: Sweden
Contact:

Post by blackdroid »

PS2SDK and PS2SDKSRC should not point to the same directory, PS2SDK should point to a "release" dir, now granted that it will only matter once you actually do a "make release", if you could paste the error instead that might help.
Kung VU
KaylaKaze
Posts: 75
Joined: Wed May 05, 2004 3:25 pm
Location: NC, USA
Contact:

Post by KaylaKaze »

I was thinking of placing the error but I've been experimenting with settings and stuff and I still get errors just various ones. This is what I get with a straight, unmodified PS2SDK CVS d/l

Code: Select all

make[3]: Entering directory `/cygdrive/f/ps2dev/ps2sdk/iop/dev9/dev9'
echo "#include \"irx.h\"" > obj/build-exports.c
cat src/exports.tab >> obj/build-exports.c
iop-gcc  -O2 -G0 -c -IF:/ps2dev/gcc/iop/lib/gcc-lib/iop/2.8.1-ps2dev/include -IF
:/ps2dev/ps2sdk/iop/kernel/include -IF:/ps2dev/ps2sdk/common/include -Iinclude -
Wall -fno-builtin-printf -Isrc/ obj/build-exports.c -o obj/exports.o
obj/build-exports.c:2: parse error before `1'
obj/build-exports.c:4: parse error before `DECLARE_EXPORT'
obj/build-exports.c:5: parse error before `DECLARE_EXPORT'
obj/build-exports.c:6: parse error before `DECLARE_EXPORT'
obj/build-exports.c:9: parse error before `DECLARE_EXPORT'
obj/build-exports.c:10: parse error before `DECLARE_EXPORT'
obj/build-exports.c:11: parse error before `DECLARE_EXPORT'
obj/build-exports.c:12: parse error before `DECLARE_EXPORT'
obj/build-exports.c:13: parse error before `DECLARE_EXPORT'
obj/build-exports.c:14: parse error before `DECLARE_EXPORT'
obj/build-exports.c:15: parse error before `DECLARE_EXPORT'
obj/build-exports.c:16: parse error before `END_EXPORT_TABLE'
obj/build-exports.c:18: syntax error before `void'
make[3]: *** [obj/exports.o] Error 1
make[3]: Leaving directory `/cygdrive/f/ps2dev/ps2sdk/iop/dev9/dev9'
make[2]: *** [all-dev9] Error 2
make[2]: Leaving directory `/cygdrive/f/ps2dev/ps2sdk/iop/dev9'
make[1]: *** [all-dev9] Error 2
t0mb0la
Posts: 24
Joined: Tue Jan 20, 2004 5:31 pm
Location: Seattle WA, USA
Contact:

Post by t0mb0la »

Check if you have the file irx.h in F:/ps2dev/gcc/iop/lib/gcc-lib/iop/2.8.1-ps2dev/include. If you do, rename it to oldirx.h (or just delete it, you shouldn't need it). You really need to be including the irx.h which is included in ps2sdk, and chances are your compiler is finding the obsolete (?) version of this header in its own include path first.

It is probably worth doing 'make clean' before you try to build ps2sdk again. Also, I suspect there were a couple of other issues bulding ps2sdk with the toolchain you are using, although I don't remember exactly what and I could be wrong. Hopefully the above change will be enough to fix the errors you posted.
KaylaKaze
Posts: 75
Joined: Wed May 05, 2004 3:25 pm
Location: NC, USA
Contact:

Post by KaylaKaze »

I thought that was probably the problem but couldn't think of how to solve it without screwing up other stuff. So I've got it all compiled now. Thank you very much.

Also, the makefiles for a few... modules, I guess you could say, didn't have IOP_INCS= set so that it'd include what was in the envronment variable so stddef.h wasn't found for those few. I fixed that and it seems that they have compiled fine (just mentioning it in case the files on the CVS should be changed). These modules are iop/system/siftoo, iop/system/sio2log, and iop/tcpip/udptty.
Post Reply