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 

make error

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
johnnytomcat



Joined: 08 Jul 2008
Posts: 3

PostPosted: Tue Jul 08, 2008 7:50 am    Post subject: make error Reply with quote

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
View user's profile Send private message Visit poster's website
pspZorba



Joined: 22 Sep 2007
Posts: 156
Location: NY

PostPosted: Tue Jul 08, 2008 12:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Tue Jul 08, 2008 1:10 pm    Post subject: Reply with quote

You don't have your environment variables set up properly.

You should have $PSPDEV set and added to your path.
Back to top
View user's profile Send private message Visit poster's website
johnnytomcat



Joined: 08 Jul 2008
Posts: 3

PostPosted: Tue Jul 08, 2008 5:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
israr



Joined: 08 Jul 2008
Posts: 5

PostPosted: Tue Jul 08, 2008 5:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
johnnytomcat



Joined: 08 Jul 2008
Posts: 3

PostPosted: Tue Jul 08, 2008 5:15 pm    Post subject: Reply with quote

Fixed it!!!

I had the filepath wrong


Thanks everyone for the help
Back to top
View user's profile Send private message Visit poster's website
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Tue Jul 08, 2008 5:50 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
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