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 

Need with compiler errors

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



Joined: 21 Nov 2005
Posts: 2

PostPosted: Mon Nov 21, 2005 1:13 pm    Post subject: Need with compiler errors Reply with quote

I am just looking into deving for the ps2. i have just set up the env for it and trying to compile some sample code. the below is a the pgen emulator. i also get this error with other code as well. is there something i setup wrong?

thanks for any help.

Code:
D:\john\psx\ps2dev\pgen-source>make -f "Makefile"
rm -f build/*.o
make -C z80
make[1]: Entering directory `D:/john/psx/ps2dev/pgen-source/z80'
ee-gcc -D_EE -mips3 -mcpu=r5900 -fshort-double -mlong64 -mhard-float -O3 -EL -Wall -fno-exceptions -I. -I../cpu68k -I../gui -I../hdr -I../ps2 -I../lib -I../unzip -I../zlib -fno-builtin -I../sound -I..
/z80 -I/common/include -I/ee/include -I/home/Administrator/source/ps2/lib/gslib/source -I/ee/libfileXio -I/common/include -I/ee/include -I/common/include -ID:/john/psx/ps2dev/sbv-1.0-lite/include -c z
80.c -o z80.o
/cygdrive/d/john/psx/ps2dev/ee/bin/../lib/gcc-lib/ee/3.2.2/../../../../ee/bin/as: unrecognized option `-mcpu=r5900'
make[1]: *** [z80.o] Error 1
make[1]: Leaving directory `D:/john/psx/ps2dev/pgen-source/z80'
make: *** [make-dirs] Error 2

D:\john\psx\ps2dev\pgen-source>
Back to top
View user's profile Send private message Visit poster's website
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Mon Nov 21, 2005 9:21 pm    Post subject: Reply with quote

PGEN code is completely "outdated" comparing to the last toolchain.

OR you setup your environement using PS2LIB (that was used to develop PGEN), OR you upgrade PGEN sources & makefiles to compile with the PS2SDK (that I recommend you). Furthermore, some stuff like (for i.e.) C++ hacks has been made at that time, and they are not anymore needed with the last SDK (so a complete source review is also needed)

Check the makefile example in the PS2SDK, you'll see the difference with the ones from PGEN.

good luck,
Evilo
Back to top
View user's profile Send private message Visit poster's website
zao420



Joined: 21 Nov 2005
Posts: 2

PostPosted: Tue Nov 22, 2005 11:37 am    Post subject: Reply with quote

do you happen to have a sample i can compile to test my install
Back to top
View user's profile Send private message Visit poster's website
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Tue Nov 22, 2005 6:29 pm    Post subject: Reply with quote

just look in the $(PS2SDK)/samples/ directory..

it's full of samples !

good luck :p
Back to top
View user's profile Send private message Visit poster's website
bzero



Joined: 30 Nov 2005
Posts: 2

PostPosted: Wed Nov 30, 2005 11:08 pm    Post subject: gsDriver::ResetMBA() Reply with quote

in the current gslib(0.51 and 0.50) there is no such method.
I put a comment in this line just to compile, but someone knows what happened with this method or maybe what it does.
Back to top
View user's profile Send private message
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Thu Dec 01, 2005 12:41 am    Post subject: Reply with quote

good point, I noticed that also..

but note that PGEN can easily live without it ;)

Note also that I wanted to make a PGEN "free" EVO version (an open-source version at least equivalent to the datel one,) and so I remade a newer version of PGEN full compatible with the PS2SDK + some enhancements like newer IRXs, zlib, patched cdvd, removed sjpcm for audsrv, usb_mass support, updated z80 core (working on it currently), etc...

anyway once compiled with GCC 3.2.2, my version is a bit slower that the official one, and to come back to your remark, apart of compiler flags (where the problem is certainly), I also really think that PGEN was using a NON official release of gslib... but we will never know.
Back to top
View user's profile Send private message Visit poster's website
bzero



Joined: 30 Nov 2005
Posts: 2

PostPosted: Thu Dec 01, 2005 1:29 am    Post subject: Let's start something opensource man Reply with quote

I was doing exactly this man. Yesterday I re-create all make files to new compile with the new PS2SDK.
Look there is a pgen project in sourceforge, it is empty now. But I don’t know perhaps you can send a mail to Sjeep. and keep it alive ;)

Can you send me your version? cderivan@gmail.com

[]’s
Clebson
PS: I’m Brazilian and my English is poor, let me know if I don’t make myself clear.
Back to top
View user's profile Send private message
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