make error

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

Moderators: cheriff, TyRaNiD

Post Reply
johnnytomcat
Posts: 3
Joined: Tue Jul 08, 2008 7:43 am
Contact:

make error

Post by johnnytomcat »

I installed cygwin and the psptoolchain and reinstalled a bunch

but i always get the same error

Code: Select all

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

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
pspZorba
Posts: 156
Joined: Sat Sep 22, 2007 11:45 am
Location: NY

Post by pspZorba »

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

Post by ooPo »

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

You should have $PSPDEV set and added to your path.
johnnytomcat
Posts: 3
Joined: Tue Jul 08, 2008 7:43 am
Contact:

Post by johnnytomcat »

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

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

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

@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?
israr
Posts: 5
Joined: Tue Jul 08, 2008 3:15 pm

Post by israr »

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

PSPSDK=C:/cygwin/usr/local/pspdev/psp/sdk
or

Code: Select all

PSPSDK=/cygdrive/c/cygwin/usr/local/pspdev/psp/sdk
johnnytomcat
Posts: 3
Joined: Tue Jul 08, 2008 7:43 am
Contact:

Post by johnnytomcat »

Fixed it!!!

I had the filepath wrong


Thanks everyone for the help
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

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
Post Reply