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 

psp-gcc Command not found??
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
JohnVID



Joined: 08 Jul 2005
Posts: 27

PostPosted: Fri Jul 08, 2005 11:35 pm    Post subject: psp-gcc Command not found?? Reply with quote

I used Cable16s Walkthrough

http://forums.ps2dev.org/viewtopic.php?t=2422&highlight=compile+psp+windows&sid=b392eb5b8f6402791bd86a89b9d2b4c4

But stumbled on the next error:

psp-gcc -I. -IC:\PSPDev\psp\sdk/include -O2 -G0 -Wall -c -o hellopsp.o hellopsp.c
make: psp-gcc: Command not found
make: *** [hellopsp.o] Error 127


Does anyone know how to fix this problem??

I'm using a Windows machine :)
Back to top
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Fri Jul 08, 2005 11:37 pm    Post subject: Re: psp-gcc Command not found?? Reply with quote

JohnVID wrote:
[color=blue]psp-gcc -I. -IC:\PSPDev\psp\sdk/include -O2 -G0 -Wall -c -o hellopsp.o hellopsp.c


You have a few slashes the wrong way.

Try: -I"C:\PSPDev\psp\sdk\include"

but not \sdk/include.

(and make sure you use the quotes past the -I)

*edit*
and make sure that you have it: -c hellopsp.c

after you do that, call the command again, only with -o [some output file] hellopsp.o

EDIT AGAIN*

Here, i'll just post you the command:

psp-gcc -I. -I"C:\PSPDev\psp\sdk\include" -O2 -G0 -Wall -c hellopsp.c
psp-gcc -I. -I"C:\PSPDev\psp\sdk\include" -O2 -G0 -Wall -o out hellopsp.o
_________________
Lego of my Ago!
Back to top
View user's profile Send private message AIM Address
JohnVID



Joined: 08 Jul 2005
Posts: 27

PostPosted: Fri Jul 08, 2005 11:47 pm    Post subject: Re: psp-gcc Command not found?? Reply with quote

Agoln wrote:
JohnVID wrote:
[color=blue]psp-gcc -I. -IC:\PSPDev\psp\sdk/include -O2 -G0 -Wall -c -o hellopsp.o hellopsp.c


You have a few slashes the wrong way.

Try: -I"C:\PSPDev\psp\sdk\include"

but not \sdk/include.

(and make sure you use the quotes past the -I)

*edit*
and make sure that you have it: -c hellopsp.c

after you do that, call the command again, only with -o [some output file] hellopsp.o

EDIT AGAIN*

Here, i'll just post you the command:

psp-gcc -I. -I"C:\PSPDev\psp\sdk\include" -O2 -G0 -Wall -c hellopsp.c
psp-gcc -I. -I"C:\PSPDev\psp\sdk\include" -O2 -G0 -Wall -o out hellopsp.o


Tnx for responding so quickly but I use the Cable16 method and I can't change the / because the comand is given by a program named make.exe.

Anyone??
Back to top
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Fri Jul 08, 2005 11:49 pm    Post subject: Reply with quote

open up the file in that directory called "Makefile" and change the information in that file.
_________________
Lego of my Ago!
Back to top
View user's profile Send private message AIM Address
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri Jul 08, 2005 11:50 pm    Post subject: Reply with quote

Set up your path properly.
Back to top
View user's profile Send private message Visit poster's website
JohnVID



Joined: 08 Jul 2005
Posts: 27

PostPosted: Fri Jul 08, 2005 11:55 pm    Post subject: Reply with quote

This is my makefile file:

Code:
TARGET = hellopsp
OBJS = hellopsp.o pg.o

INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

LIBDIR =
LDFLAGS =

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Hello World PSP Test

include $(PSPSDK)/lib/build.mak


I beleave there is not anything that I have to change in this file...
Back to top
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Sat Jul 09, 2005 12:01 am    Post subject: Reply with quote

Set up your path so that it uses /'s instead of \'s.
_________________
Lego of my Ago!
Back to top
View user's profile Send private message AIM Address
JohnVID



Joined: 08 Jul 2005
Posts: 27

PostPosted: Sat Jul 09, 2005 12:14 am    Post subject: Reply with quote

I can't change the "/" or "\"
It's all been executed by a file called make.exe :(

Anyone knows the solution?


Or how can I manually run the command??

Code:
C:\PSPdev\psp\sdk\samples\hellopsp>psp-gcc -I.
-IC:\PSPDev\psp\sdk\include -O2 -G0 -Wall -c -o hellopsp.o hellopsp.c

Gives me no output at all... (No error or whatever)
Back to top
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Sat Jul 09, 2005 12:24 am    Post subject: Reply with quote

right-click on my computer, go to properties. Go to the advanded tab and click on "enviroment variables".

if you see an entry called PSPSDK anywhere, change that so that it uses /'s instead of \'s.

If you do not see it, add it, but just use /'s instead of \'s.
_________________
Lego of my Ago!
Back to top
View user's profile Send private message AIM Address
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sat Jul 09, 2005 12:47 am    Post subject: Reply with quote

From the tutorial you linked to:

Code:
6. edit start.bat so it contains:
- set path=%path%;c:\pspdev\bin
- set PSPSDK=C:\PSPDev\psp\sdk
- cmd

Did you do this?
Back to top
View user's profile Send private message Visit poster's website
JohnVID



Joined: 08 Jul 2005
Posts: 27

PostPosted: Sat Jul 09, 2005 12:50 am    Post subject: Reply with quote

Agoln wrote:
right-click on my computer, go to properties. Go to the advanded tab and click on "enviroment variables".

if you see an entry called PSPSDK anywhere, change that so that it uses /'s instead of \'s.

If you do not see it, add it, but just use /'s instead of \'s.


Tnx but that doesn't seems to work for me.

It wasn't there so I added it like PSPSDK "C:/PSPDev/Bin"
But the error is still the same :(

although the "/" sound a little strange to me...
Back to top
View user's profile Send private message
JohnVID



Joined: 08 Jul 2005
Posts: 27

PostPosted: Sat Jul 09, 2005 12:53 am    Post subject: Reply with quote

This is my Start.bat:
Code:
set path=%path%;c:\PSPDev\bin
set PSPSDK=C:\PSPDev\psp\sdk
cmd


And my makefile:
Code:
TARGET = hellopsp
OBJS = hellopsp.o pg.o

INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

LIBDIR =
LDFLAGS =

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Hello World PSP Test

include $(PSPSDK)/lib/build.mak
Back to top
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Sat Jul 09, 2005 1:04 am    Post subject: Reply with quote

JohnVID wrote:
This is my Start.bat:
Code:
set path=%path%;c:\PSPDev\bin
set PSPSDK=C:\PSPDev\psp\sdk
cmd



change it to

set PSPSDK=C:/PSPDev/psp/sdk
_________________
Lego of my Ago!
Back to top
View user's profile Send private message AIM Address
JohnVID



Joined: 08 Jul 2005
Posts: 27

PostPosted: Sat Jul 09, 2005 1:06 am    Post subject: Reply with quote

I tried changing the start.bat into this:
Code:
set path=%path%;c:\PSPDev\bin
set PSPSDK=C:/PSPDev/psp/sdk
cmd

Instead of this:
Code:
set path=%path%;c:\PSPDev\bin
set PSPSDK=C:\PSPDev\psp\sdk
cmd


Now the error code is:
Code:
C:\PSPdev\psp\sdk\samples\hellopsp>make
psp-gcc -I. -IC:/PSPDev/psp/sdk/include -O2 -G0 -Wall   -c -o hellopsp.o hellopsp.c
make: psp-gcc: Command not found
make: *** [hellopsp.o] Error 127


Same error only /'s instead of \'s and /'s
Back to top
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Sat Jul 09, 2005 1:09 am    Post subject: Reply with quote

If you browse out to c:\pspdev\bin, is there a psp-gcc file there?
_________________
Lego of my Ago!
Back to top
View user's profile Send private message AIM Address
JohnVID



Joined: 08 Jul 2005
Posts: 27

PostPosted: Sat Jul 09, 2005 1:11 am    Post subject: Reply with quote

Agoln wrote:
If you browse out to c:\pspdev\bin, is there a psp-gcc file there?

Yess there is:
psp-gcc-4.0.0
psp-gcc.exe
psp-gccbug
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sat Jul 09, 2005 1:14 am    Post subject: Reply with quote

Quote:
make: psp-gcc: Command not found

I reiterate that it is a path problem.

Are you running start.bat?
Back to top
View user's profile Send private message Visit poster's website
JohnVID



Joined: 08 Jul 2005
Posts: 27

PostPosted: Sat Jul 09, 2005 1:19 am    Post subject: Reply with quote

ooPo wrote:
Quote:
make: psp-gcc: Command not found

I reiterate that it is a path problem.

Are you running start.bat?

What I do in exact order is:
1. run "cmd"
2. change dir to c:\pspdev
3. execute "start.bat"
4. change dir to "c:\pspdev\psp\sdk\samples\hellopsp"
5. type in "make" and push the enter
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sat Jul 09, 2005 1:26 am    Post subject: Reply with quote

Isn't there a cygwin icon you should be double-clicking on instead of running cmd?
Back to top
View user's profile Send private message Visit poster's website
JohnVID



Joined: 08 Jul 2005
Posts: 27

PostPosted: Sat Jul 09, 2005 1:30 am    Post subject: Reply with quote

ooPo wrote:
Isn't there a cygwin icon you should be double-clicking on instead of running cmd?

I got cygwin installed but I'm not using it because Cable16 did not refer to it:
Quote:
Compiling the sdktest example ----------
1. open C:\PSPDev\psp\sdk\samples\sdktest\Makefile, and remove the " PSPSDK=$(shell psp-config --pspsdk-path) " line.
2. run start.bat inside c:\PSPDev
3. inside the newly-opened CMD navigate to C:\PSPDev\psp\sdk\samples\sdktest
4. type make, and you should get a EBOOT.PBP inside C:\PSPDev\psp\sdk\samples\sdktest
Back to top
View user's profile Send private message
JohnVID



Joined: 08 Jul 2005
Posts: 27

PostPosted: Sat Jul 09, 2005 1:50 am    Post subject: Reply with quote

So everyone is out of ideas?
Back to top
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Sat Jul 09, 2005 2:09 am    Post subject: Reply with quote

If you open cmd, and you just type "psp-gcc" do you get a "no input file" error, or a "command not found" error?
_________________
Lego of my Ago!
Back to top
View user's profile Send private message AIM Address
JohnVID



Joined: 08 Jul 2005
Posts: 27

PostPosted: Sat Jul 09, 2005 2:16 am    Post subject: Reply with quote

Agoln wrote:
If you open cmd, and you just type "psp-gcc" do you get a "no input file" error, or a "command not found" error?

I get a "PSP-gcc: No input files" error
Back to top
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Sat Jul 09, 2005 2:19 am    Post subject: Reply with quote

I see your problem... you did:

Quote:
What I do in exact order is:
1. run "cmd"
2. change dir to c:\pspdev
3. execute "start.bat"
4. change dir to "c:\pspdev\psp\sdk\samples\hellopsp"
5. type in "make" and push the enter


But, in cable16, it says to do:
Quote:
Compiling the sdktest example ----------
1. open C:\PSPDev\psp\sdk\samples\sdktest\Makefile, and remove the " PSPSDK=$(shell psp-config --pspsdk-path) " line.
2. run start.bat inside c:\PSPDev
3. inside the newly-opened CMD navigate to C:\PSPDev\psp\sdk\samples\sdktest
4. type make, and you should get a EBOOT.PBP inside C:\PSPDev\psp\sdk\samples\sdktest


If you look at the path's of removing "PSPSDK=", you see that you removed it from the wrong directory.

re-open the Makefile in the \hellopsp folder, and remove the line that say's "PSPSDK=". Re-run the start.bat, and then try it.
_________________
Lego of my Ago!
Back to top
View user's profile Send private message AIM Address
JohnVID



Joined: 08 Jul 2005
Posts: 27

PostPosted: Sat Jul 09, 2005 2:25 am    Post subject: Reply with quote

Agoln wrote:
I see your problem... you did:

Quote:
What I do in exact order is:
1. run "cmd"
2. change dir to c:\pspdev
3. execute "start.bat"
4. change dir to "c:\pspdev\psp\sdk\samples\hellopsp"
5. type in "make" and push the enter


But, in cable16, it says to do:
Quote:
Compiling the sdktest example ----------
1. open C:\PSPDev\psp\sdk\samples\sdktest\Makefile, and remove the " PSPSDK=$(shell psp-config --pspsdk-path) " line.
2. run start.bat inside c:\PSPDev
3. inside the newly-opened CMD navigate to C:\PSPDev\psp\sdk\samples\sdktest
4. type make, and you should get a EBOOT.PBP inside C:\PSPDev\psp\sdk\samples\sdktest


If you look at the path's of removing "PSPSDK=", you see that you removed it from the wrong directory.

re-open the Makefile in the \hellopsp folder, and remove the line that say's "PSPSDK=". Re-run the start.bat, and then try it.


I first tried the SDKTest but it gave me the same problem as Hello world.
From both the makefile files I have removed the "PSPSDK=$(shell psp-config --pspsdk-path)" line.
Back to top
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Sat Jul 09, 2005 2:36 am    Post subject: Reply with quote

Well, then I have one last idea.

rename the Makefile to something like Makefile.backup.

Make a new file and name it Makefile.

In the new Makefile, enter this:
Code:

all:
psp-gcc -I. -I"C:\PSPDev\psp\sdk\include" -O2 -G0 -Wall -c hellopsp.c
psp-gcc -I. -I"C:\PSPDev\psp\sdk\include" -O2 -G0 -Wall -o out hellopsp.o


(make sure that the psp-gcc's have one tab before the command).

After that, you should have an elf, then you can do:

elf2pbp out

and you'll have yourslef and EBOOT.PBP

See if that works for you.[/code]
_________________
Lego of my Ago!
Back to top
View user's profile Send private message AIM Address
JohnVID



Joined: 08 Jul 2005
Posts: 27

PostPosted: Sat Jul 09, 2005 2:45 am    Post subject: Reply with quote

Agoln wrote:
Well, then I have one last idea.

rename the Makefile to something like Makefile.backup.

Make a new file and name it Makefile.

In the new Makefile, enter this:
Code:

all:
psp-gcc -I. -I"C:\PSPDev\psp\sdk\include" -O2 -G0 -Wall -c hellopsp.c
psp-gcc -I. -I"C:\PSPDev\psp\sdk\include" -O2 -G0 -Wall -o out hellopsp.o


(make sure that the psp-gcc's have one tab before the command).

After that, you should have an elf, then you can do:

elf2pbp out

and you'll have yourslef and EBOOT.PBP

See if that works for you.[/code]


I don't know if I had to run make again after what you said but it said "nothin to be done for all"
and elf2pbp is included in this package but it seems he can't find it in psp\bin, but it is there...

Tnx to all the people that are trying with me :)
Back to top
View user's profile Send private message
JohnVID



Joined: 08 Jul 2005
Posts: 27

PostPosted: Sat Jul 09, 2005 2:49 am    Post subject: Reply with quote

JohnVID wrote:
Agoln wrote:
Well, then I have one last idea.

rename the Makefile to something like Makefile.backup.

Make a new file and name it Makefile.

In the new Makefile, enter this:
Code:

all:
psp-gcc -I. -I"C:\PSPDev\psp\sdk\include" -O2 -G0 -Wall -c hellopsp.c
psp-gcc -I. -I"C:\PSPDev\psp\sdk\include" -O2 -G0 -Wall -o out hellopsp.o


(make sure that the psp-gcc's have one tab before the command).

After that, you should have an elf, then you can do:

elf2pbp out

and you'll have yourslef and EBOOT.PBP

See if that works for you.[/code]


I don't know if I had to run make again after what you said but it said "nothin to be done for all"
and elf2pbp is included in this package but it seems he can't find it in psp\bin, but it is there...

Tnx to all the people that are trying with me :)


The Elf2PBP gives me the following error: "error opening out"
Back to top
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Sat Jul 09, 2005 2:55 am    Post subject: Reply with quote

then try just copying and pasting the psp-gcc commands right into the cmd box.
_________________
Lego of my Ago!
Back to top
View user's profile Send private message AIM Address
JohnVID



Joined: 08 Jul 2005
Posts: 27

PostPosted: Sat Jul 09, 2005 3:05 am    Post subject: Reply with quote

Agoln wrote:
then try just copying and pasting the psp-gcc commands right into the cmd box.

I tried these:
Code:
psp-gcc -I. -I"C:\PSPDev\psp\sdk\include" -O2 -G0 -Wall -c hellopsp.c
psp-gcc -I. -I"C:\PSPDev\psp\sdk\include" -O2 -G0 -Wall -o out hellopsp.o

They give no error nor anything else, is that a good thing??
But no eboot is created...
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 -> PSP Development All times are GMT + 10 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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