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 

DevC++?

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



Joined: 02 Mar 2007
Posts: 3

PostPosted: Fri Mar 02, 2007 8:04 am    Post subject: DevC++? Reply with quote

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
View user's profile Send private message
Lumar



Joined: 02 Mar 2007
Posts: 3

PostPosted: Wed Mar 07, 2007 5:39 am    Post subject: Re: DevC++? Reply with quote

Ok, I have downloaded both the PS2SDK and Cygwin. How can I actually compile my .cpp file into .elf?
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Mar 07, 2007 5:50 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
cosmito



Joined: 04 Mar 2007
Posts: 314
Location: Portugal

PostPosted: Tue Apr 17, 2007 10:55 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Apr 18, 2007 5:20 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Lumar



Joined: 02 Mar 2007
Posts: 3

PostPosted: Wed Apr 18, 2007 5:57 am    Post subject: Reply with quote

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
View user's profile Send private message
sneeze



Joined: 03 Mar 2006
Posts: 15

PostPosted: Wed Apr 18, 2007 6:24 am    Post subject: Reply with quote

But it _is_ possible to compile the toolchain on GCC4

Just get the patches from
http://forums.ps2dev.org/viewtopic.php?t=7561
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Thu Apr 19, 2007 4:50 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
sneeze



Joined: 03 Mar 2006
Posts: 15

PostPosted: Thu Apr 19, 2007 7:10 am    Post subject: Reply with quote

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