| View previous topic :: View next topic |
| Author |
Message |
johnnytomcat
Joined: 08 Jul 2008 Posts: 3
|
Posted: Tue Jul 08, 2008 7:50 am Post subject: make error |
|
|
I installed cygwin and the psptoolchain and reinstalled a bunch
but i always get the same error
| Code: |
make: psp-config: Command not found
Makefile:12: /lib/build.mak: No such file or directory
make: *** No rule to make target '/lib/build.mak'. Stop.
|
i checked the folder and i dont have this file, where can i get it
also here is the make file im using to run the test
| Code: |
TARGET = hello
OBJS = main.o
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Hello World
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
|
|
|
| Back to top |
|
 |
pspZorba
Joined: 22 Sep 2007 Posts: 156 Location: NY
|
Posted: Tue Jul 08, 2008 12:23 pm Post subject: |
|
|
are you sure you are looking in the good /lib there are several.
the good one should be like:
\cygwin\usr\local\pspdev\psp\sdk\lib
if you find the file, then your error probably comes from the fact you didn't setup correctly the PSPSDK variable
if you don't find it ... that's weird enough to reinstall the toolchain
btw in a cygwin command window try this command:
find / -iname "build.mak"
it can be a little bit long but it will find you this damned file ;-) _________________ --pspZorba--
NO to K1.5 ! |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Tue Jul 08, 2008 1:10 pm Post subject: |
|
|
You don't have your environment variables set up properly.
You should have $PSPDEV set and added to your path. |
|
| Back to top |
|
 |
johnnytomcat
Joined: 08 Jul 2008 Posts: 3
|
Posted: Tue Jul 08, 2008 5:01 pm Post subject: |
|
|
I did find the file and the PSPSDK var was wrong but when i changed it the
the right path i still get the same error
so i added the full path to the make file
and i still get the error
| Code: |
$make
Makefile:12: C:\usr\local\pspdev\psp\sdk\lib\build.mak: No such file or directory
make: *** No Rule to make target 'C:\usr\local\pspdev\psp\sdk\lib\build.mak'. Stop.
|
here is my make file
| Code: |
TARGET = hello
OBJS = main.o
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Hello World
PSPSDK=$(shell psp-config --pspsdk-path)
include C:\usr\local\pspdev\psp\sdk\lib\build.mak
|
Here is my login script also
| Code: | @echo off
C:
chdir C:\cygwin\bin
set PSPDEV=C:\cygwin\usr\local\pspdev\psp\sdk
set PATH=$PATH:$PSPDEV/bin
bash --login -i
|
any ideas? |
|
| Back to top |
|
 |
israr
Joined: 08 Jul 2008 Posts: 5
|
Posted: Tue Jul 08, 2008 5:11 pm Post subject: |
|
|
can you find psp-config.exe at path C:\cygwin\usr\local\pspdev\bin?This file should be present in your path.
If it is not present, try setting PSPSDK variable manually in your makefile.
| Code: |
PSPSDK=C:/cygwin/usr/local/pspdev/psp/sdk
|
or
| Code: |
PSPSDK=/cygdrive/c/cygwin/usr/local/pspdev/psp/sdk
|
|
|
| Back to top |
|
 |
johnnytomcat
Joined: 08 Jul 2008 Posts: 3
|
Posted: Tue Jul 08, 2008 5:15 pm Post subject: |
|
|
Fixed it!!!
I had the filepath wrong
Thanks everyone for the help |
|
| Back to top |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Tue Jul 08, 2008 5:50 pm Post subject: |
|
|
| Quote: |
include C:\usr\local\pspdev\psp\sdk\lib\build.mak
|
try this
include $(PSPSDK)/lib/build.mak ? switch the / if it errors.. as im confused by cygwin.
Wally |
|
| Back to top |
|
 |
|