Help with Cygwin please...

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

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
The Tjalian
Posts: 18
Joined: Sun Aug 06, 2006 10:19 am

Help with Cygwin please...

Post by The Tjalian »

Hey all. I've finally decided to get serious about programming on the PSP, to see what it can do, see what I can do on it, etc. I'm doing programming at Uni, and now I know my fair share of rookie game programming, I want to try my hand at PSP game development.

I've followed this tutorial which tells me how to set up Cygwin. I've installed all of the default packages, typed in these two commands in the command prompt:

echo "export PSPDEV=/usr/local/pspdev" >> ~/.bashrc
echo "export PATH=\$PATH:\$PSPDEV/bin" >> ~/.bashrc

and now I've been told to enter these commands:

svn co svn://svn.ps2dev.org/psp/trunk/psptoolchain
cd psptoolchain
./toolchain.sh

Only problem is, cygwin says svn isn't a recognised command. Are there any suggestions as to why it isn't a recognised command, and how to fix this issue?

Thanks.
Image
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Post by PiCkDaT »

I had the same problem, I'm in the works of fixing it now. The problem I believe is that I downloaded an already built Cygwin and it didn't have all the subversion and automake etc. So I think you may have downloaded the same package I did. I found this helpful.

http://www.devsgen.com/index.php?option ... mitstart=8

Number 1 is installing Cygwin(what I'm doing right now).
Number 2 is the toolchain.
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
User avatar
The Tjalian
Posts: 18
Joined: Sun Aug 06, 2006 10:19 am

Post by The Tjalian »

Thanks for the reply :)

I'll try that now, thanks! :)
Image
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Post by PiCkDaT »

By the way.. it takes a long ass time.
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
User avatar
The Tjalian
Posts: 18
Joined: Sun Aug 06, 2006 10:19 am

Post by The Tjalian »

Tell me something I don't know! Thank god I'm grabbing the files from my own Country!

It also helps I have a 10MB connection, hehe.
Image
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Post by PiCkDaT »

It downloads 400 meg for Cygwin. After that it takes about 20-30 minutes to install Cygwin. Then once you get it set up and checkout the toolchain from the svn and install it, it takes another several hours. What I did was installed Cygwin and then tried the toolchain but it gave me errors about 30 minutes into the install so I just put in the pre-compiled toolchain I had before in and it works fine :) just gotta update the PSPSDK.
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
User avatar
The Tjalian
Posts: 18
Joined: Sun Aug 06, 2006 10:19 am

Post by The Tjalian »

Guh, yet ANOTHER error. Damn this is annoying lol.

Image

I've now made the directory /usr/local/pspdev/r but it doesn't make any difference. I've also added a blank file called r in /pspdev/ too, that doesn't work.

Any suggestions?
Image
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Your line endings in toolchain.sh got messed up. Make sure it has Unix line endings.
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Post by PiCkDaT »

add this to cygwin.bat above bash --login. except change it to your directory.. mine was F:/ Im running windows


set path=%path%;F:/cygwin/usr/local/pspdev/bin
set PSPDEV=/usr/local/pspdev
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
User avatar
The Tjalian
Posts: 18
Joined: Sun Aug 06, 2006 10:19 am

Post by The Tjalian »

PiCkDaT wrote:add this to cygwin.bat above bash --login. except change it to your directory.. mine was F:/ Im running windows


set path=%path%;F:/cygwin/usr/local/pspdev/bin
set PSPDEV=/usr/local/pspdev
Ah, I added that to .bash_profile instead :P (It said to do so in the new tutorial posted in this thread).

Anyway, it's actually installing now, and shouldn't hopefully run into errors. Thanks all! You've been really helpful, I appreciate it :)
Image
User avatar
The Tjalian
Posts: 18
Joined: Sun Aug 06, 2006 10:19 am

Post by The Tjalian »

Ok, now I'm severely fucked off.

2 bloody hours into the installation, I come across this error:

Image

Once again, any suggestions? I don't understand why I'm getting so many errors. Are all cygwin installations like this?
Image
hibbyware
Posts: 78
Joined: Wed Mar 28, 2007 10:29 am

Post by hibbyware »

The PSPSDK has installed fine but psplinkusb never,

Type this in to cygwin after that error comes up make sure your already in the psptoolchain folder,

Code: Select all

cd build/psplinkusb/

make && make release
This will build psplinkusb but you don't have to do this so only do it if you want to use psplinkusb,
cloudhunter
Posts: 86
Joined: Thu Aug 17, 2006 3:27 am

Post by cloudhunter »

The Tjalian wrote:Ok, now I'm severely fucked off.

2 bloody hours into the installation, I come across this error:
I too was a bit pissed when I saw this error - but then realised that there was no problem. All I did to fix it was to install libusb, then installed all the steps after that.

Cloudy
:)
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Post by PiCkDaT »

ouch, well at least your toolchain installed.. after you get that done all you gotta do is install the SDK.. which btw isnt hard.

now all you gotta do is

svn co svn://svn.ps2dev.org/psp/trunk/pspsdk/
cd pspsdk
make
make install

all done :)
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

His SDK is installed fine.

As was already said, it's just the psplinkusb install which failed.
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Post by PiCkDaT »

IWN the SDK come's seperate from the toolchain doesn't it? ...
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
User avatar
The Tjalian
Posts: 18
Joined: Sun Aug 06, 2006 10:19 am

Post by The Tjalian »

Ok, so I followed hibbyware's advice (thanks for that), what do I need to do after that, or is that it?

By the way, what do you mean my SDK is installed? I thought I only installed the toolchain? I haven't got PSPSDK yet, or have I? I wanna confirm the SDK comes seperate from the toolchain before I install the SDK.

If this SDK *is* installed, where will it be in the cygwin folder?
Image
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Post by PiCkDaT »

I think its in cgywin/usr/local/pspsdk .. I could be wrong.. I'm not currently at my computer I'm at a friends. If its not there just do the commands I said above.
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
User avatar
The Tjalian
Posts: 18
Joined: Sun Aug 06, 2006 10:19 am

Post by The Tjalian »

Fantastic, cheers.
Image
Post Reply