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 

Setting up cygwin using Windows XP

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



Joined: 13 Jan 2005
Posts: 34

PostPosted: Thu Jan 13, 2005 12:59 am    Post subject: Setting up cygwin using Windows XP Reply with quote

I have been setting up cygwin over the last few days and finding some errors. Im following the tutorial from internalreality and the first thing I came across was the 'slashes' being different often.

ex. set PS2DEV=C:\cygwin/ps2dev
set PS2GCC=%PS2DEV%/gcc

I tried the test file that comes along with the ps2lib sample file and got an error. I got this fix by changing all the slashes to \ since thats windows and Linux uses /

Now I am getting more errors that will go to much to explain fully right now. What I want to know is has anyone else tried this tutorial successfully and is there any other options to compile source code or will it be easier for me to make a linux partition on my PC and stick with this routine.

Thanks.
Back to top
View user's profile Send private message
bbchazz



Joined: 13 Jan 2005
Posts: 34

PostPosted: Thu Jan 13, 2005 7:28 am    Post subject: Reply with quote

Can anyone point me in the right directing...to a tutorial, suggestions, other options...please.
Back to top
View user's profile Send private message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Thu Jan 13, 2005 8:22 am    Post subject: Reply with quote

Yes, people have successfully used that tutorial before. I have no idea what it's telling you to do, and I'm not a windows user, so I can't really help say what you are doing wrong ;) Sorry.


You might want to take a look at This thread, which just happens to be a sticky at the top of this same board...
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
bbchazz



Joined: 13 Jan 2005
Posts: 34

PostPosted: Thu Jan 13, 2005 8:55 am    Post subject: Reply with quote

Thanks,

I will give you a little more information when I get home from work after I run it again.

I have read that tutorial but I thought it was for people putting it on a linux system, I will post again when I can clarify whats going on..worse come to worse I will start from scratch and give it another whirl.
Back to top
View user's profile Send private message
misfire



Joined: 06 Sep 2004
Posts: 120
Location: Germany

PostPosted: Thu Jan 13, 2005 11:11 pm    Post subject: Reply with quote

With Cygwin installed, you can also use ooPo's toolchain autobuild script:
http://www.oopo.net/consoledev/

After installing I had to add some environment variables to my .bash_profile:

Code:
## PS2DEV SETTINGS
export PS2DEV="/usr/local/ps2dev"
export PS2SDK="$PS2DEV/ps2sdk"
export PATH="$PATH:$PS2DEV/bin:$PS2DEV/ee/bin:$PS2DEV/iop/bin:$PS2DEV/dvp/bin:$PS2SDK/bin"

Worked for me.
Back to top
View user's profile Send private message
bbchazz



Joined: 13 Jan 2005
Posts: 34

PostPosted: Fri Jan 14, 2005 6:24 am    Post subject: Reply with quote

Isn't the .bash_profile only available when using Linux?
Back to top
View user's profile Send private message
misfire



Joined: 06 Sep 2004
Posts: 120
Location: Germany

PostPosted: Fri Jan 14, 2005 6:37 am    Post subject: Reply with quote

Actually, this file comes with Cygwin:
e.g. D:\cygwin\home\misfire\.bash_profile
Back to top
View user's profile Send private message
bbchazz



Joined: 13 Jan 2005
Posts: 34

PostPosted: Sun Jan 16, 2005 3:56 am    Post subject: Reply with quote

Ok, everything looks to go just fine until it gets to the following point:

ee-gcc: C:cygwinps2devps2lib/ee/startup/crt0.o: No such file or directory
make: *** [pad.elf] Error 1

Now, I know what looks funny with that, the start of the directory has no slashes but I don't know where this line comes from to fix it.
Back to top
View user's profile Send private message
misfire



Joined: 06 Sep 2004
Posts: 120
Location: Germany

PostPosted: Tue Jan 18, 2005 7:24 pm    Post subject: Reply with quote

You have to set the PS2LIB environment variable under Win XP:
C:\cygwin\ps2dev\ps2lib
And take care of the backslashes.
Back to top
View user's profile Send private message
bbchazz



Joined: 13 Jan 2005
Posts: 34

PostPosted: Fri Jan 21, 2005 8:09 am    Post subject: Reply with quote

thanks for the help..i ended up using the toolchain to set up the env much easier.
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 -> PS2 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