| View previous topic :: View next topic |
| Author |
Message |
nuke13
Joined: 06 Jun 2007 Posts: 4
|
Posted: Wed Jun 06, 2007 1:29 am Post subject: Make in cygwin error, please help |
|
|
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: | 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: | 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: | 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: | | include $(PSPSDK)/usr/local/pspdev/psp/sdk/lib/build.mak |
and i got this error
| Code: | 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 |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Wed Jun 06, 2007 5:36 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
nuke13
Joined: 06 Jun 2007 Posts: 4
|
Posted: Wed Jun 06, 2007 8:09 am Post subject: |
|
|
This tutorial http://www.psp-programming.com/tutorials/c/lesson01-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 |
|
| Back to top |
|
 |
everlasting
Joined: 19 Mar 2007 Posts: 41
|
Posted: Wed Jun 06, 2007 11:09 am Post subject: |
|
|
| Are you sure you`ve edited properly cygwin.bat to setup the path? |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Wed Jun 06, 2007 1:11 pm Post subject: |
|
|
While far from 'the' tutorial, if you had read further you would have found the answer you seek:
http://www.psp-programming.com/tutorials/c/lesson01-3.htm
| Quote: | 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:
| Quote: | | 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... |
|
| Back to top |
|
 |
jsharrad
Joined: 20 Oct 2005 Posts: 102
|
Posted: Wed Jun 06, 2007 2:52 pm Post subject: |
|
|
| heh, it actually worked when he wrote it back in 2005, but noone's been maintaining it :) |
|
| Back to top |
|
 |
nuke13
Joined: 06 Jun 2007 Posts: 4
|
Posted: Sun Jun 10, 2007 1:32 am Post subject: |
|
|
I copied that just as it was writen and i get this error:
| Code: | $ make
/lib/build.mak:15: *** $(PSPSDK) is undefined. Use "PSPSDK := $(shell psp-confi
g --pspsdk-path)" in your Makefile. Stop. |
|
|
| Back to top |
|
 |
nuke13
Joined: 06 Jun 2007 Posts: 4
|
Posted: Sun Jun 10, 2007 3:26 am Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Sun Jun 10, 2007 4:23 am Post subject: |
|
|
Nice attitude.
Bye. |
|
| Back to top |
|
 |
|