| View previous topic :: View next topic |
| Author |
Message |
Lumar
Joined: 02 Mar 2007 Posts: 3
|
Posted: Fri Mar 02, 2007 8:04 am Post subject: DevC++? |
|
|
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: |
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. |
|
| Back to top |
|
 |
Lumar
Joined: 02 Mar 2007 Posts: 3
|
Posted: Wed Mar 07, 2007 5:39 am Post subject: Re: DevC++? |
|
|
| Ok, I have downloaded both the PS2SDK and Cygwin. How can I actually compile my .cpp file into .elf? |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Wed Mar 07, 2007 5:50 am Post subject: |
|
|
| 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). |
|
| Back to top |
|
 |
cosmito
Joined: 04 Mar 2007 Posts: 314 Location: Portugal
|
Posted: Tue Apr 17, 2007 10:55 pm Post subject: |
|
|
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 :) |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Wed Apr 18, 2007 5:20 am Post subject: |
|
|
| 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... |
|
| Back to top |
|
 |
Lumar
Joined: 02 Mar 2007 Posts: 3
|
Posted: Wed Apr 18, 2007 5:57 am Post subject: |
|
|
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... |
|
| Back to top |
|
 |
sneeze
Joined: 03 Mar 2006 Posts: 15
|
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Thu Apr 19, 2007 4:50 am Post subject: |
|
|
| Until the new code is committed, it's easier to just use gcc 3.x rather than mess with all the patches. |
|
| Back to top |
|
 |
sneeze
Joined: 03 Mar 2006 Posts: 15
|
Posted: Thu Apr 19, 2007 7:10 am Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
|