Page 1 of 1

Need with compiler errors

Posted: Mon Nov 21, 2005 1:13 pm
by zao420
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: Select all

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>

Posted: Mon Nov 21, 2005 9:21 pm
by evilo
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

Posted: Tue Nov 22, 2005 11:37 am
by zao420
do you happen to have a sample i can compile to test my install

Posted: Tue Nov 22, 2005 6:29 pm
by evilo
just look in the $(PS2SDK)/samples/ directory..

it's full of samples !

good luck :p

gsDriver::ResetMBA()

Posted: Wed Nov 30, 2005 11:08 pm
by bzero
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.

Posted: Thu Dec 01, 2005 12:41 am
by evilo
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.

Let's start something opensource man

Posted: Thu Dec 01, 2005 1:29 am
by bzero
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? [email protected]

[]’s
Clebson
PS: I’m Brazilian and my English is poor, let me know if I don’t make myself clear.