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 

Problem with the PSPToolchain....

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



Joined: 11 May 2007
Posts: 4
Location: Dallas, Texas

PostPosted: Fri May 11, 2007 7:52 am    Post subject: Problem with the PSPToolchain.... Reply with quote

After spending a few days reading many different tutorials, googling, and searching forums I am brought down to making a new topic to ask for help... If this has been answered before I'm very sorry, I swear I searched for hours on end. So here it goes....

I'm using Cygwin Version 1.5.24-2 (The newest Version) with ALL packages installed.
Windows XP (No service pack 2)
And I've tried both the Psptoolchain from the ps2dev.org main page
and the script from oopo.net

I'll try to summarize a few of my problems, One tutorial told me to use svn update to grab the newest toolchain from a repository. Any svn program I use be it the Cygwin version or RapidSVN both tell me I have malformed files, Dir-Prop-Base and Dir-Props specifically.

Another tutorial told me to edit toolchain.sh and find and replace all instances of "gmake" with "make" and "gpatch" with "patch.
I tried that... When I go to run ./toolchain.sh I get the following...

./toolchain.sh: Line 3: $'\r': Command Not Found
./toolchain.sh: Line 36: syntax error: unexpected end of file

I also added the following lines to Cygwin.Bat. Most tutorials say to do it AFTER toolchain.sh is done, But I had less errors if I did it before...

set path=%path%;D:/cygwin/usr/local/pspdev/bin
set PSPSDK=D:/cygwin/usr/local/pspdev

I hope this is enough info and that I haven't left anything out. This has been driving me crazy for a few days now. I'll take any suggestions I just want to start coding for the PSP. Thanks a bunch guys. BTW This is my first post in these forums, Hopefully I can be a active member of the PSP scene.
Back to top
View user's profile Send private message
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Fri May 11, 2007 8:11 am    Post subject: Reply with quote

Quote:
./toolchain.sh: Line 3: $'\r': Command Not Found

This tells me you grabbed the files with svn for Windows instead of svn from cygwin and all the text and source files have got the wrong (Windows) line endings (instead of unix ones).

Jim
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
FuzzyGiggler



Joined: 11 May 2007
Posts: 4
Location: Dallas, Texas

PostPosted: Fri May 11, 2007 8:23 am    Post subject: Reply with quote

Both of the Svns gave me the impression that they didn't download a thing. How could I go about correcting that? I have a passing knowledge of Linux, Just enough to get me by... I tried browsing through toolchain.sh figuring the
errors were only on two lines but that was fruitless =P

Is there anyway that I could bypass using svn in general and just get the updated toolchain from an http download? Or is my toolchain.sh fixable?

Thanks in advance.
Back to top
View user's profile Send private message
FuzzyGiggler



Joined: 11 May 2007
Posts: 4
Location: Dallas, Texas

PostPosted: Fri May 11, 2007 9:12 am    Post subject: Reply with quote

Aha! I fixed my own problem, All the tutorials I read said use Winrar to extract the contents of the toolchain to the cygwin\home\user directory. Apparently this dosn't work (At least for me) I had to download the tgz file directly to cygwin\home\"user" directory and use the command

tar -xf psptoolchain-20060120.tgz

That made the psptoolchain directory but this time my svn files weren't malformed. I used svn update, worked fine, then ./toolchain.sh and the script is running fine while we speak. Sorry to waste anyones time, I didn't find this solution anywhere else. Maybe someone else will read this and benefit from it like I did. Thanks!
Back to top
View user's profile Send private message
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Fri May 11, 2007 9:50 pm    Post subject: Reply with quote

All I ever do is svn co toolchain.sh and then run it, it will grab everything else it needs.

Jim
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
FuzzyGiggler



Joined: 11 May 2007
Posts: 4
Location: Dallas, Texas

PostPosted: Sat May 12, 2007 11:34 am    Post subject: Reply with quote

Everytime I'd try to use svn to update it would tell me my .svn files were malformed. Probably by Winrar somehow. *Shrug*
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