| View previous topic :: View next topic |
| Author |
Message |
JohnVID
Joined: 08 Jul 2005 Posts: 27
|
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Fri Jul 08, 2005 11:37 pm Post subject: Re: psp-gcc Command not found?? |
|
|
| 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 |
|
 |
JohnVID
Joined: 08 Jul 2005 Posts: 27
|
Posted: Fri Jul 08, 2005 11:47 pm Post subject: Re: psp-gcc Command not found?? |
|
|
| 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 |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Fri Jul 08, 2005 11:49 pm Post subject: |
|
|
open up the file in that directory called "Makefile" and change the information in that file. _________________ Lego of my Ago! |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Fri Jul 08, 2005 11:50 pm Post subject: |
|
|
| Set up your path properly. |
|
| Back to top |
|
 |
JohnVID
Joined: 08 Jul 2005 Posts: 27
|
Posted: Fri Jul 08, 2005 11:55 pm Post subject: |
|
|
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 |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Sat Jul 09, 2005 12:01 am Post subject: |
|
|
Set up your path so that it uses /'s instead of \'s. _________________ Lego of my Ago! |
|
| Back to top |
|
 |
JohnVID
Joined: 08 Jul 2005 Posts: 27
|
Posted: Sat Jul 09, 2005 12:14 am Post subject: |
|
|
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 |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Sat Jul 09, 2005 12:24 am Post subject: |
|
|
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 |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Sat Jul 09, 2005 12:47 am Post subject: |
|
|
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 |
|
 |
JohnVID
Joined: 08 Jul 2005 Posts: 27
|
Posted: Sat Jul 09, 2005 12:50 am Post subject: |
|
|
| 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 |
|
 |
JohnVID
Joined: 08 Jul 2005 Posts: 27
|
Posted: Sat Jul 09, 2005 12:53 am Post subject: |
|
|
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 |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Sat Jul 09, 2005 1:04 am Post subject: |
|
|
| 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 |
|
 |
JohnVID
Joined: 08 Jul 2005 Posts: 27
|
Posted: Sat Jul 09, 2005 1:06 am Post subject: |
|
|
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 |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Sat Jul 09, 2005 1:09 am Post subject: |
|
|
If you browse out to c:\pspdev\bin, is there a psp-gcc file there? _________________ Lego of my Ago! |
|
| Back to top |
|
 |
JohnVID
Joined: 08 Jul 2005 Posts: 27
|
Posted: Sat Jul 09, 2005 1:11 am Post subject: |
|
|
| 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 |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Sat Jul 09, 2005 1:14 am Post subject: |
|
|
| Quote: | | make: psp-gcc: Command not found |
I reiterate that it is a path problem.
Are you running start.bat? |
|
| Back to top |
|
 |
JohnVID
Joined: 08 Jul 2005 Posts: 27
|
Posted: Sat Jul 09, 2005 1:19 am Post subject: |
|
|
| 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 |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Sat Jul 09, 2005 1:26 am Post subject: |
|
|
| Isn't there a cygwin icon you should be double-clicking on instead of running cmd? |
|
| Back to top |
|
 |
JohnVID
Joined: 08 Jul 2005 Posts: 27
|
Posted: Sat Jul 09, 2005 1:30 am Post subject: |
|
|
| 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 |
|
 |
JohnVID
Joined: 08 Jul 2005 Posts: 27
|
Posted: Sat Jul 09, 2005 1:50 am Post subject: |
|
|
| So everyone is out of ideas? |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Sat Jul 09, 2005 2:09 am Post subject: |
|
|
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 |
|
 |
JohnVID
Joined: 08 Jul 2005 Posts: 27
|
Posted: Sat Jul 09, 2005 2:16 am Post subject: |
|
|
| 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 |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Sat Jul 09, 2005 2:19 am Post subject: |
|
|
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 |
|
 |
JohnVID
Joined: 08 Jul 2005 Posts: 27
|
Posted: Sat Jul 09, 2005 2:25 am Post subject: |
|
|
| 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 |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Sat Jul 09, 2005 2:36 am Post subject: |
|
|
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 |
|
 |
JohnVID
Joined: 08 Jul 2005 Posts: 27
|
Posted: Sat Jul 09, 2005 2:45 am Post subject: |
|
|
| 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 |
|
 |
JohnVID
Joined: 08 Jul 2005 Posts: 27
|
Posted: Sat Jul 09, 2005 2:49 am Post subject: |
|
|
| 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 |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Sat Jul 09, 2005 2:55 am Post subject: |
|
|
then try just copying and pasting the psp-gcc commands right into the cmd box. _________________ Lego of my Ago! |
|
| Back to top |
|
 |
JohnVID
Joined: 08 Jul 2005 Posts: 27
|
Posted: Sat Jul 09, 2005 3:05 am Post subject: |
|
|
| 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 |
|
 |
|