PDA

View Full Version : Cygwin Help needed!



Elven6
November 11th, 2006, 03:15
So I decided to install Cygwin and I got up till here http://www.dreamcast-scene.com/index.php/Main/MakingBinutils

Im stuck at this part:

Change to your BINUTILS directory


cd /gcc/binutils-2.14


When I enter in the cd /gcc/binutils-2.14 and it says it cannot find the directory or w/e. Well what I wanted to know is am I doing this right? Or do I have to add anything else into it?

fackue
November 11th, 2006, 05:22
You're missing it. You probably didn't download binutils. Binutils is only needed if your building your own toolchain, which can be fairly confusing if you're not experianced with programming (even some who are experianced). Anyway, I wrote a guide that was made from different information sources and it's very easy to follow... I haven't posted it anywhere yet since I'm waiting for freetype, which SDL_ttf apparently requires which is in KOS. Thanksgiving is comming up soon and my grandma is visiting soon so I'll be pretty busy with real life - I'll try to get a new ISO out when time permits. It'll be definately no larger then 150MB.

Elven6
November 11th, 2006, 17:43
No I got bin utils, I have everything needed.

fackue
November 11th, 2006, 21:06
Did you extract it?

Elven6
November 11th, 2006, 21:38
Of course I did, am I supposed to write in cd /gcc/binutils-2.14 or is cd just a typo?

Elven6
November 11th, 2006, 22:09
Hmm the guide is pretty confusing, mabye someone can help clear things up?

Change to your BINUTILS directory


cd /gcc/binutils-2.14


Configure your makefile so that it reflects your TARGET and DIRECTORIES


./configure --target=$target --prefix=$prefix


(this step may take quite some time, so enjoy the nice printouts and take a cup of coffee....... or two...)


Start the make-procedure including install


make all install


(as with the step above this may take some time... even some more than configuring)


Also to be able to use the binutils and compilers we have to add the directory to our path in either .profile or .bashrc add the following line: (this line puts both the binutils and gcc into your path)


PATH=/usr/local/dc/sh-elf/bin:$PATH


NOTE: If you used an other path in prefix, please add your own path to your .bashrc or .profile!

So does most of that mean PATH is supposed to be somethign I choose? If so what is a default selection?

XpspX
November 12th, 2006, 04:27
cd stands for create directory i believe (correct me if im wrong) But what i do know is that cd enters the folder put after it (i.e. cd XpspX) That would enter the folder XpspX in the 'Home' folder of cygwin.
If this didnt help then ignore my post :p

Elven6
November 12th, 2006, 19:28
What would cd be?

XpspX
November 12th, 2006, 19:47
Check my post -.-
It means 'create directory' and it enters the folder following 'cd'

fackue
November 12th, 2006, 21:26
It would be a lot easier to use a script to build your toolchain. Get dc-chain-0.1-gcc346 (http://stalin.thegypsy.com/) by Christin Henz.

Install a default Cygwin setup with these packages:
Devel
binutuils
bison
flex
gcc-core
gcc-g++
patchutils
subversion Libs
jpeg
libpng12
libpng12-devel Web
wget

Add the following to GCC pass 2's configure line (line 151 and 152). I added it directly before $(to_log): "--disable-libstdcxx-pch" inside dc-chain's Makefile, without quotes.

You will need to download KOS SVN and then set the variable entry inside the Makefile.

henzenmann
November 12th, 2006, 22:33
cd stands for create directory i believe (correct me if im wrong)

It is "change directory", but the explanation is of course correct :-)

@Elven: I suggest you check out some tutorial on how to use a UNIX shell (or even Windows command prompt) first.

henzenmann
November 12th, 2006, 22:44
It would be a lot easier to use a script to build your toolchain. Get dc-chain-0.1-gcc346 (http://stalin.thegypsy.com/) by Christin Henz.

BTW, this is now included in KOS, so no need for a seperate download :-)

http://cadcdev.svn.sourceforge.net/viewvc/cadcdev/kos/utils/dc-chain/

fackue
November 12th, 2006, 23:11
BTW, this is now included in KOS, so no need for a seperate download :-)

http://cadcdev.svn.sourceforge.net/viewvc/cadcdev/kos/utils/dc-chain/
Ah, that's right. I totally forgot about that.

Elven6
November 16th, 2006, 02:25
Could I do the samething using bloodshed with the DC add ons?

fackue
November 16th, 2006, 03:52
What do you mean add-ons? There's a tutorial on these boards somewhere (check the development forum) the walks you through configuring DevC++ with DC Dev ISO r2.

Elven6
November 16th, 2006, 14:32
With the DC libs, their on this site.

fackue
November 16th, 2006, 18:52
Probably old.

If you can hold tight for a week or so, I'll be releasing a new Dev ISO which will only be around 100MB (150MB smaller than the previous release).

I'll put a tutorial for setting up your own toolchain on the CD.

Elven6
November 16th, 2006, 22:57
heh no problem, hopefully the tutorial will be easy so we can increase development in the DC area.

fackue
November 17th, 2006, 01:08
If you wanna check out a test version of the ISO I mentioned, go here (http://www.dcemulation.com/phpBB/viewtopic.php?p=923103#923103). It has the tutorial in it, but I think it's a rough draft - it's been a few weeks since I've looked at it.

henzenmann
November 23rd, 2006, 02:01
Ah, that's right. I totally forgot about that.

Hmm, it turns out Dan checked in a broken version. I already sent a patch to the mailing list...