DevC++?

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
Lumar
Posts: 3
Joined: Fri Mar 02, 2007 7:55 am

DevC++?

Post 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.
Lumar
Posts: 3
Joined: Fri Mar 02, 2007 7:55 am

Re: DevC++?

Post by Lumar »

Ok, I have downloaded both the PS2SDK and Cygwin. How can I actually compile my .cpp file into .elf?
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post 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).
cosmito
Posts: 307
Joined: Sun Mar 04, 2007 4:26 am
Location: Portugal
Contact:

Post 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 :)
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post 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...
Lumar
Posts: 3
Joined: Fri Mar 02, 2007 7:55 am

Post 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...
sneeze
Posts: 15
Joined: Fri Mar 03, 2006 4:31 am

Post 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
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post 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.
sneeze
Posts: 15
Joined: Fri Mar 03, 2006 4:31 am

Post 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
Post Reply