forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Environment setup

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
KaylaKaze



Joined: 05 May 2004
Posts: 75
Location: NC, USA

PostPosted: Fri Jun 04, 2004 2:53 pm    Post subject: Environment setup Reply with quote

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:
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.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Fri Jun 04, 2004 2:58 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
KaylaKaze



Joined: 05 May 2004
Posts: 75
Location: NC, USA

PostPosted: Fri Jun 04, 2004 3:10 pm    Post subject: Reply with quote

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:
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
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
t0mb0la



Joined: 20 Jan 2004
Posts: 24
Location: Seattle WA, USA

PostPosted: Fri Jun 04, 2004 4:15 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
KaylaKaze



Joined: 05 May 2004
Posts: 75
Location: NC, USA

PostPosted: Fri Jun 04, 2004 9:59 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group