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 

error compilation

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



Joined: 20 Apr 2008
Posts: 13

PostPosted: Sun Apr 20, 2008 10:31 pm    Post subject: error compilation Reply with quote

Hello,

I'm french, so sorry for my english.

I have a problem when i want to compile the hello world who is in ps2dev/ps2sdk/samples/hello.

I get this message :

Code:
ee-gcc -D_EE -02 -G0 -Wall -IC:/ps2dev/ps2sdk/ee/include -IC:ps2dev/ps2sdk/common/include -I.  -c -hello.c -o hello.o
make: ee-gcc: Command not found
make: *** [hello.o] Error 127


What is the problem ??

Thanks for your help.
Back to top
View user's profile Send private message
cosmito



Joined: 04 Mar 2007
Posts: 314
Location: Portugal

PostPosted: Mon Apr 21, 2008 1:49 am    Post subject: Reply with quote

Hello,

Have you done what's described at the readme of the ps2toolchain ?
Code:
 2) Add the following to your login script:

  export PS2DEV=/usr/local/ps2dev
  export PATH=$PATH:$PS2DEV/bin
  export PATH=$PATH:$PS2DEV/ee/bin
  export PATH=$PATH:$PS2DEV/iop/bin
  export PATH=$PATH:$PS2DEV/dvp/bin
  export PS2SDK=$PS2DEV/ps2sdk
  export PATH=$PATH:$PS2SDK/bin
Back to top
View user's profile Send private message Visit poster's website
pikajuju



Joined: 20 Apr 2008
Posts: 13

PostPosted: Mon Apr 21, 2008 2:05 am    Post subject: Reply with quote

I don't have this in my readme...

Where to put that you have written?

EDIT : i have this in my ps2dev.bat :

Code:
set PS2DEV=C:/ps2dev
set PS2SDK=%PS2DEV%/ps2sdk
set PATH=%PATH%;%PS2DEV%/bin;%PS2DEV%/ee/bin;%PS2DEV%/iop/bin;%PS2DEV%/dvp/bin;%PS2SDK%/bin


That's this which you talk ?
Back to top
View user's profile Send private message
cosmito



Joined: 04 Mar 2007
Posts: 314
Location: Portugal

PostPosted: Mon Apr 21, 2008 7:13 am    Post subject: Reply with quote

It seems you're using a pre-compiled sdk for windows... I was refering to the "you compile" toolchain for cygwin/linux.

Then in your case, yes, you should run this bat file at the command line and it should work.
Back to top
View user's profile Send private message Visit poster's website
pikajuju



Joined: 20 Apr 2008
Posts: 13

PostPosted: Mon Apr 21, 2008 8:24 pm    Post subject: Reply with quote

But it not work ! I have always the same error...
Back to top
View user's profile Send private message
ttguy



Joined: 30 Mar 2008
Posts: 8
Location: Australia

PostPosted: Mon Apr 21, 2008 10:36 pm    Post subject: Reply with quote

pikajuju wrote:
But it not work ! I have always the same error...


My suggestion is to try the "You Compile the toolchain" option from
http://lukasz.dk/playstation-2-programming/mingw-tutorial/ - Option 1:

I have just recently succeeded in doing this and have got the Hello World code to compile and run. Eg I got \local\ps2dev\ps2sdk\samples\cube to compile after running the instal described on the tutorial above without much trouble.
Back to top
View user's profile Send private message Visit poster's website
pikajuju



Joined: 20 Apr 2008
Posts: 13

PostPosted: Tue Apr 22, 2008 3:17 am    Post subject: Reply with quote

ttguy wrote:
pikajuju wrote:
But it not work ! I have always the same error...


My suggestion is to try the "You Compile the toolchain" option from
http://lukasz.dk/playstation-2-programming/mingw-tutorial/ - Option 1:

I have just recently succeeded in doing this and have got the Hello World code to compile and run. Eg I got \local\ps2dev\ps2sdk\samples\cube to compile after running the instal described on the tutorial above without much trouble.


He still displays the same error...
Back to top
View user's profile Send private message
pikajuju



Joined: 20 Apr 2008
Posts: 13

PostPosted: Tue Apr 22, 2008 9:28 pm    Post subject: Reply with quote

Nobody to help me ?
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Apr 23, 2008 5:56 am    Post subject: Reply with quote

You need to describe what you're doing, not just the results. The results are clear: you haven't set the environment variables for the toolchain. Now tell us what OS you're using, and how you are trying to run the toolchain.
Back to top
View user's profile Send private message AIM Address
pikajuju



Joined: 20 Apr 2008
Posts: 13

PostPosted: Thu Apr 24, 2008 2:40 am    Post subject: Reply with quote

J.F. wrote:
You need to describe what you're doing, not just the results. The results are clear: you haven't set the environment variables for the toolchain. Now tell us what OS you're using, and how you are trying to run the toolchain.


I have Windows XP.
I run cmd, i type "ps2dev.bat", then "make", and i get this :

Code:
ee-gcc -D_EE -02 -G0 -Wall -IC:/ps2dev/ps2sdk/ee/include -IC:ps2dev/ps2sdk/common/include -I.  -c -hello.c -o hello.o
make: ee-gcc: Command not found
make: *** [hello.o] Error 127
Back to top
View user's profile Send private message
Lukasz



Joined: 19 Jan 2004
Posts: 248
Location: Denmark

PostPosted: Thu Apr 24, 2008 5:45 am    Post subject: Reply with quote

What would help greatly in locating your problem would be if you could search your file system for ee-gcc.exe and see if its located in C:\ps2dev\ee\bin.

I noticed that you have slash '/' instead for backslash '\' in the paths in your ps2dev.bat, you might want to try changing the slashes to backslashes.
_________________
Lukasz.dk
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Thu Apr 24, 2008 6:23 am    Post subject: Reply with quote

You can't just enter the envvar commands into the Windows command shell. As the linked tutorial says, msys requires you to add them to the msys login.

Quote:
First thing you need to do is to add the PS2Dev enviroment variables your MSYS login script. This is done by adding the following to etc/profile in the MSYS directory. Use an editor which supports Unix file format like Crimson Editor (Preferences -> File -> Save in Unix format) to edit the file.

export PS2DEV=/usr/local/ps2dev
export PATH=$PATH:$PS2DEV/bin
export PATH=$PATH:$PS2DEV/ee/bin
export PATH=$PATH:$PS2DEV/iop/bin
export PATH=$PATH:$PS2DEV/dvp/bin
export PS2SDK=$PS2DEV/ps2sdk
export PATH=$PATH:$PS2SDK/bin


I THINK that you can just use the exports in the cygwin shell if you use cygwin, but I'm not 100% certain on that.
Back to top
View user's profile Send private message AIM Address
pikajuju



Joined: 20 Apr 2008
Posts: 13

PostPosted: Fri Apr 25, 2008 1:12 am    Post subject: Reply with quote

Lukasz wrote:
What would help greatly in locating your problem would be if you could search your file system for ee-gcc.exe and see if its located in C:\ps2dev\ee\bin.

I noticed that you have slash '/' instead for backslash '\' in the paths in your ps2dev.bat, you might want to try changing the slashes to backslashes.


Yes, i have ee-gcc.exe in C:\ps2dev\ee\bin

I type just "make" in ps2dev.bat ! so i can't change '/' in '\'


J.F. wrote:
You can't just enter the envvar commands into the Windows command shell. As the linked tutorial says, msys requires you to add them to the msys login.

Quote:

First thing you need to do is to add the PS2Dev enviroment variables your MSYS login script. This is done by adding the following to etc/profile in the MSYS directory. Use an editor which supports Unix file format like Crimson Editor (Preferences -> File -> Save in Unix format) to edit the file.

export PS2DEV=/usr/local/ps2dev
export PATH=$PATH:$PS2DEV/bin
export PATH=$PATH:$PS2DEV/ee/bin
export PATH=$PATH:$PS2DEV/iop/bin
export PATH=$PATH:$PS2DEV/dvp/bin
export PS2SDK=$PS2DEV/ps2sdk
export PATH=$PATH:$PS2SDK/bin



I THINK that you can just use the exports in the cygwin shell if you use cygwin, but I'm not 100% certain on that.


I have already do this. But it not work, i get the same error.
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