psp-gcc Command not found??
psp-gcc Command not found??
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 :)
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 :)
Re: psp-gcc Command not found??
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!
Re: psp-gcc Command not found??
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??
This is my makefile file:
I beleave there is not anything that I have to change in this 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 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??
Gives me no output at all... (No error or whatever)
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
From the tutorial you linked to:
Did you do this?
Code: Select all
6. edit start.bat so it contains:
- set path=%path%;c:\pspdev\bin
- set PSPSDK=C:\PSPDev\psp\sdk
- cmd
Tnx but that doesn't seems to work for me.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.
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...
This is my Start.bat:
And my makefile:
Code: Select all
set path=%path%;c:\PSPDev\bin
set PSPSDK=C:\PSPDev\psp\sdk
cmd
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
change it toJohnVID wrote:This is my Start.bat:Code: Select all
set path=%path%;c:\PSPDev\bin set PSPSDK=C:\PSPDev\psp\sdk cmd
set PSPSDK=C:/PSPDev/psp/sdk
Lego of my Ago!
I tried changing the start.bat into this:
Instead of this:
Now the error code is:
Same error only /'s instead of \'s and /'s
Code: Select all
set path=%path%;c:\PSPDev\bin
set PSPSDK=C:/PSPDev/psp/sdk
cmd
Code: Select all
set path=%path%;c:\PSPDev\bin
set PSPSDK=C:\PSPDev\psp\sdk
cmd
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
I got cygwin installed but I'm not using it because Cable16 did not refer to it:ooPo wrote:Isn't there a cygwin icon you should be double-clicking on instead of running cmd?
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
I see your problem... you did:
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.
But, in cable16, it says to do: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
If you look at the path's of removing "PSPSDK=", you see that you removed it from the wrong directory.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
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!
I first tried the SDKTest but it gave me the same problem as Hello world.Agoln wrote:I see your problem... you did:
But, in cable16, it says to do: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 enterIf you look at the path's of removing "PSPSDK=", you see that you removed it from the wrong directory.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
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.
From both the makefile files I have removed the "PSPSDK=$(shell psp-config --pspsdk-path)" line.
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:
(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]
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
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!
I don't know if I had to run make again after what you said but it said "nothin to be done for all"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:(make sure that the psp-gcc's have one tab before the command).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
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]
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"JohnVID wrote:I don't know if I had to run make again after what you said but it said "nothin to be done for all"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:(make sure that the psp-gcc's have one tab before the command).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
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]
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 :)
I tried these:Agoln wrote:then try just copying and pasting the psp-gcc commands right into the cmd box.
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
But no eboot is created...