psp-gcc Command not found??

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

JohnVID
Posts: 27
Joined: Fri Jul 08, 2005 10:25 pm

psp-gcc Command not found??

Post by JohnVID »

I used Cable16s Walkthrough

http://forums.ps2dev.org/viewtopic.php? ... 89b9d2b4c4

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 :)
User avatar
Agoln
Posts: 326
Joined: Wed Jun 08, 2005 3:14 am
Location: Fort Wayne, IN

Re: psp-gcc Command not found??

Post by Agoln »

JohnVID wrote: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!
JohnVID
Posts: 27
Joined: Fri Jul 08, 2005 10:25 pm

Re: psp-gcc Command not found??

Post by JohnVID »

Agoln wrote:
JohnVID wrote: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??
User avatar
Agoln
Posts: 326
Joined: Wed Jun 08, 2005 3:14 am
Location: Fort Wayne, IN

Post by Agoln »

open up the file in that directory called "Makefile" and change the information in that file.
Lego of my Ago!
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Set up your path properly.
JohnVID
Posts: 27
Joined: Fri Jul 08, 2005 10:25 pm

Post by JohnVID »

This is my makefile file:

Code: Select all

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...
User avatar
Agoln
Posts: 326
Joined: Wed Jun 08, 2005 3:14 am
Location: Fort Wayne, IN

Post by Agoln »

Set up your path so that it uses /'s instead of \'s.
Lego of my Ago!
JohnVID
Posts: 27
Joined: Fri Jul 08, 2005 10:25 pm

Post by JohnVID »

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: Select all

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)
User avatar
Agoln
Posts: 326
Joined: Wed Jun 08, 2005 3:14 am
Location: Fort Wayne, IN

Post by Agoln »

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!
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

From the tutorial you linked to:

Code: Select all

6. edit start.bat so it contains:
- set path=%path%;c:\pspdev\bin
- set PSPSDK=C:\PSPDev\psp\sdk
- cmd
Did you do this?
JohnVID
Posts: 27
Joined: Fri Jul 08, 2005 10:25 pm

Post by JohnVID »

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...
JohnVID
Posts: 27
Joined: Fri Jul 08, 2005 10:25 pm

Post by JohnVID »

This is my Start.bat:

Code: Select all

set path=%path%;c:\PSPDev\bin
set PSPSDK=C:\PSPDev\psp\sdk
cmd
And my makefile:

Code: Select all

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
User avatar
Agoln
Posts: 326
Joined: Wed Jun 08, 2005 3:14 am
Location: Fort Wayne, IN

Post by Agoln »

JohnVID wrote:This is my Start.bat:

Code: Select all

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!
JohnVID
Posts: 27
Joined: Fri Jul 08, 2005 10:25 pm

Post by JohnVID »

I tried changing the start.bat into this:

Code: Select all

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

Code: Select all

set path=%path%;c:\PSPDev\bin
set PSPSDK=C:\PSPDev\psp\sdk
cmd
Now the error code is:

Code: Select all

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
User avatar
Agoln
Posts: 326
Joined: Wed Jun 08, 2005 3:14 am
Location: Fort Wayne, IN

Post by Agoln »

If you browse out to c:\pspdev\bin, is there a psp-gcc file there?
Lego of my Ago!
JohnVID
Posts: 27
Joined: Fri Jul 08, 2005 10:25 pm

Post by JohnVID »

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
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

make: psp-gcc: Command not found
I reiterate that it is a path problem.

Are you running start.bat?
JohnVID
Posts: 27
Joined: Fri Jul 08, 2005 10:25 pm

Post by JohnVID »

ooPo wrote:
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
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Isn't there a cygwin icon you should be double-clicking on instead of running cmd?
JohnVID
Posts: 27
Joined: Fri Jul 08, 2005 10:25 pm

Post by JohnVID »

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:
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
JohnVID
Posts: 27
Joined: Fri Jul 08, 2005 10:25 pm

Post by JohnVID »

So everyone is out of ideas?
User avatar
Agoln
Posts: 326
Joined: Wed Jun 08, 2005 3:14 am
Location: Fort Wayne, IN

Post by Agoln »

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!
JohnVID
Posts: 27
Joined: Fri Jul 08, 2005 10:25 pm

Post by JohnVID »

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
User avatar
Agoln
Posts: 326
Joined: Wed Jun 08, 2005 3:14 am
Location: Fort Wayne, IN

Post by Agoln »

I see your problem... you did:
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:
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!
JohnVID
Posts: 27
Joined: Fri Jul 08, 2005 10:25 pm

Post by JohnVID »

Agoln wrote:I see your problem... you did:
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:
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.
User avatar
Agoln
Posts: 326
Joined: Wed Jun 08, 2005 3:14 am
Location: Fort Wayne, IN

Post by Agoln »

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: Select all

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!
JohnVID
Posts: 27
Joined: Fri Jul 08, 2005 10:25 pm

Post by JohnVID »

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: Select all

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 :)
JohnVID
Posts: 27
Joined: Fri Jul 08, 2005 10:25 pm

Post by JohnVID »

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: Select all

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"
User avatar
Agoln
Posts: 326
Joined: Wed Jun 08, 2005 3:14 am
Location: Fort Wayne, IN

Post by Agoln »

then try just copying and pasting the psp-gcc commands right into the cmd box.
Lego of my Ago!
JohnVID
Posts: 27
Joined: Fri Jul 08, 2005 10:25 pm

Post by JohnVID »

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

Code: Select 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
They give no error nor anything else, is that a good thing??
But no eboot is created...
Post Reply