Make in cygwin error, please help

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

Moderators: cheriff, TyRaNiD

Post Reply
nuke13
Posts: 4
Joined: Wed Jun 06, 2007 1:19 am

Make in cygwin error, please help

Post by nuke13 »

Hi all,

So i have been following the tutorial for programign on the psp, the next step said type "make" in cygwin, and well this happend:

Code: Select all

Tom@toms ~/projects/helloworld
$ make
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.
So i understand from this that i cant find the file build.mak, well that would make sence because i cant find it in that directory either.

Here is my makefile:

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
Ok so i did a search and found that the file that it wanted was at this path:

C:\cygwin\usr\local\pspdev\psp\sdk\lib\build.mak

So because i am a n00b i copied over the files from
C:\cygwin\usr\local\pspdev\psp\sdk\lib\build.mak to /lib/.

I then got this error:

Code: Select all

Tom@toms ~/projects/helloworld
$ make
make: psp-config: Command not found
make: psp-config: Command not found
/lib/build.mak:15: *** $(PSPSDK) is undefined.  Use "PSPSDK := $(shell psp-confi
g --pspsdk-path)" in your Makefile.  Stop.

I then changed the makefile so that the last line said

Code: Select all

include $(PSPSDK)/usr/local/pspdev/psp/sdk/lib/build.mak
and i got this error

Code: Select all

Tom@toms ~/projects/helloworld
$ make
make: psp-config: Command not found
make: psp-config: Command not found
/usr/local/pspdev/psp/sdk/lib/build.mak:15: *** $(PSPSDK) is undefined.  Use "PS
PSDK := $(shell psp-config --pspsdk-path)" in your Makefile.  Stop.
And thats as far as my gues work went to trying to fix the problem, please help.

Thanks
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Which tutorial was this?

Did you miss the part where it said to set up your environment?

Try this:

export PSPDEV=/usr/local/pspdev
export PATH=$PATH:$PSPDEV/bin

What that set, the makefile should be able to find the psp-config program.
nuke13
Posts: 4
Joined: Wed Jun 06, 2007 1:19 am

Post by nuke13 »

This tutorial http://www.psp-programming.com/tutorial ... on01-2.htm

and i have set up the enviroment, like it said.

where do i put:

export PSPDEV=/usr/local/pspdev
export PATH=$PATH:$PSPDEV/bin

I put it in the makefile and i got the same error
everlasting
Posts: 41
Joined: Mon Mar 19, 2007 6:27 pm

Post by everlasting »

Are you sure you`ve edited properly cygwin.bat to setup the path?
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

While far from 'the' tutorial, if you had read further you would have found the answer you seek:

http://www.psp-programming.com/tutorial ... on01-3.htm
We have to tell CYGWIN where it can find the PSPSDK (which the toolchain just installed) and the toolchain. To do this, we need to change "C:/cygwin/cygwin.bat" to include the paths. So, close CYGWIN, and navigate Explorer to "C:/cygwin" and right click on cygwin.bat. Select "Edit" and a Notepad window should appear with the following (you'll need to replace all instances of "C:" with "D:" or "E:" or "_:" if you installed CYGWIN on a drive other than your "C:" drive):

@echo off

C:
chdir C:\cygwin\bin

bash --login -i

Change this to:
@echo off

C:
chdir C:\cygwin\bin

set path=%path%;C:/cygwin/usr/local/pspdev/bin
set PSPSDK=C:/cygwin/usr/local/pspdev
bash --login -i
Also, I notice it has:
If you have enjoyed this tutorial and have a spare buck or two, please consider donating to the author. Or, if you have a website, link to this tutorial series (helping spread the word means more homebrew for all!).
Must be nice to have no qualms about asking for money just for writing some incomplete, out of date and incorrect documentation.

Yes sir, it must be nice...
jsharrad
Posts: 100
Joined: Thu Oct 20, 2005 3:06 am

Post by jsharrad »

heh, it actually worked when he wrote it back in 2005, but noone's been maintaining it :)
nuke13
Posts: 4
Joined: Wed Jun 06, 2007 1:19 am

Post by nuke13 »

I copied that just as it was writen and i get this error:

Code: Select all

$ make
/lib/build.mak:15: *** $(PSPSDK) is undefined.  Use "PSPSDK := $(shell psp-confi
g --pspsdk-path)" in your Makefile.  Stop.
nuke13
Posts: 4
Joined: Wed Jun 06, 2007 1:19 am

Post by nuke13 »

No more help need. i have given up on the psp, if there aint a half decent comiler out that works "out the box" i aint wasting my time scripting for the psp
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

Nice attitude.

Bye.
Post Reply