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 in cygwin error, please help

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



Joined: 06 Jun 2007
Posts: 4

PostPosted: Wed Jun 06, 2007 1:29 am    Post subject: Make in cygwin error, please help Reply with quote

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


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Wed Jun 06, 2007 5:36 am    Post subject: Reply with quote

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



Joined: 06 Jun 2007
Posts: 4

PostPosted: Wed Jun 06, 2007 8:09 am    Post subject: Reply with quote

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



Joined: 19 Mar 2007
Posts: 41

PostPosted: Wed Jun 06, 2007 11:09 am    Post subject: Reply with quote

Are you sure you`ve edited properly cygwin.bat to setup the path?
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Wed Jun 06, 2007 1:11 pm    Post subject: Reply with quote

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



Joined: 20 Oct 2005
Posts: 102

PostPosted: Wed Jun 06, 2007 2:52 pm    Post subject: Reply with quote

heh, it actually worked when he wrote it back in 2005, but noone's been maintaining it :)
Back to top
View user's profile Send private message
nuke13



Joined: 06 Jun 2007
Posts: 4

PostPosted: Sun Jun 10, 2007 1:32 am    Post subject: Reply with quote

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



Joined: 06 Jun 2007
Posts: 4

PostPosted: Sun Jun 10, 2007 3:26 am    Post subject: Reply with quote

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



Joined: 10 May 2006
Posts: 376

PostPosted: Sun Jun 10, 2007 4:23 am    Post subject: Reply with quote

Nice attitude.

Bye.
Back to top
View user's profile Send private message
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