Page 1 of 1
DevC++?
Posted: Fri Mar 02, 2007 8:04 am
by Lumar
Hi, I'm new in this whole PS2 programming thing. Sorry for my bad English.
I'm trying to compile the simple PS2 elf program in dev c++, but it won't work.
Compiler gives me an error:
CreateProcess((null), ee-g++ -D_EE -O2 -G0 -Wall -I/ee/include -I/common/include -I. -c hw.cpp -o hw.o, ...) failed.
The system cannot find the file specified.
Here is my makefile:
Code: Select all
EE_BIN = hello.elf
EE_OBJS = hw.o
EE_LIBS = -ldebug
all: $(EE_BIN)
clean:
rm -f *.elf *.o *.a
include $ C:\Makefile.pref
include $ C:\Makefile.eeglobal
Both of this makefile paths are set correctly.
Re: DevC++?
Posted: Wed Mar 07, 2007 5:39 am
by Lumar
Ok, I have downloaded both the PS2SDK and Cygwin. How can I actually compile my .cpp file into .elf?
Posted: Wed Mar 07, 2007 5:50 am
by J.F.
Did you install the PS2 toolchain? If not, look for threads on doing that. Most beginner setup info is in threads already, many times over. If you just ask again, you probably won't get an answer (at least not one worth repeating).
Posted: Tue Apr 17, 2007 10:55 pm
by cosmito
If you haven't build the toolchain, make sure you have the gcc34 and g++34 and not the latest gcc... I've just found here
http://forums.ps2dev.org/viewtopic.php?t=6995
that the PS2 toolchain wont compile under gcc4.x .
How to downgrade the gcc ? Well, good question. I'm also going to try it :)
Posted: Wed Apr 18, 2007 5:20 am
by J.F.
Us linux users are fortunate in that most linux distros keep one version of gcc 3.x in the repo for programs that won't compile with 4.x. While 4.x will be the default gcc, you can easily install the older version from the repo. No idea how cygwin or mingw do it...
Posted: Wed Apr 18, 2007 5:57 am
by Lumar
Thank you all for help. Yes, I have downloaded the toolchain script, but I guess my gcc is newer version because it won't compile without errors.
So I downloaded the precompiled stuff (just for now).
When I try to compile something under DevC++ it fails, but when doing the same thing from command line, it compiles alright. Maybe the paths are wrong...
Posted: Wed Apr 18, 2007 6:24 am
by sneeze
But it _is_ possible to compile the toolchain on GCC4
Just get the patches from
http://forums.ps2dev.org/viewtopic.php?t=7561
Posted: Thu Apr 19, 2007 4:50 am
by J.F.
Until the new code is committed, it's easier to just use gcc 3.x rather than mess with all the patches.
Posted: Thu Apr 19, 2007 7:10 am
by sneeze
If you have a svn account, feel free to replace the gcc-3.2.2.patch file in svn with the one I've provided :P