cygwin has started playing up ahhhh

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
reaper2k2
DC Developer
DC Developer
Posts: 2648
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Sun Mar 24, 2002 7:48 pm
Has thanked: 0
Been thanked: 0
Contact:

cygwin has started playing up ahhhh

Post by reaper2k2 »

well i set it up followed how to from 4 sites and it still fails


it will not build kos wish some one would make a one file working ide

like msvc or dev c this monster is why lots of programers are not doing much for dc no doubt i cant install linux yet ........


very disapointed in the whole dev system and the how to's on the sites are incomplete or just dont work with the files you can download..

if i ever get this to work ill zip it all in one big file and host it some were......

It's fustrating because i want to start porting some simple c game's ive written and cant how annoying

ive tryed the four major sites scaned both dc sites forums it works for some people and fails for people im one it will not work for

when i type make i get make command not found ....

ive set it up like both sites say pointed the enviro-dc.sh file cd to the kos dir type make nothing type dir shows the dir any ways ......

back to JS and pc dev only again if some one can really write a working faq how to the world would love you .........

any way's im asking for help please a one file working cygwin .zip would be great ..... if thats asking to much sorry but the struggle to get just a compiler to work is a bit much i would of never learnt a thing if msvc was like this i still be trying to build a compile lol
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *

http://r2k2gate.topcities.com *dev site and my releases*
Image
Im' a Commodorian are you?
clessoulis
DCEmu Uncool Newbie
DCEmu Uncool Newbie
Posts: 2718
Joined: Tue Apr 09, 2002 8:09 pm
Location: On top of the World
Has thanked: 0
Been thanked: 0

Post by clessoulis »

You could always use Dreamlib or whatever its called if KOS doesnt work for you. Mite wanna talk with DNR or Toastman about KOS tho if you need help.
DNR the current kickass dc programer. Thanks
for the emulator I've been waiting 2 years for.

Thanks to Reaper2k2 also for showing interest into WSC emulation.

Selfbooting for Noobs
reaper2k2
DC Developer
DC Developer
Posts: 2648
Joined: Sun Mar 24, 2002 7:48 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by reaper2k2 »

Yeah just a bit dissapointed it was almost a 6 hour download after following every think over and over i get cant find make command

IM running winxp pro

It's funny i have no problem with dev c++ or msvc

if i had a working compiler for dc i could start programing simple things then move up learning what i have to change in c to get it to work in kos

was very hopefull in starting this today

i downloaded way back a one file working cygwin it worked first time

i had to reinstall winxp and its never worked again.....

makes me sad i tell you
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *

http://r2k2gate.topcities.com *dev site and my releases*
Image
Im' a Commodorian are you?
Sanchez
DCEmu Ex-Admin
DCEmu Ex-Admin
Posts: 1098
Joined: Wed Oct 17, 2001 7:44 pm
Has thanked: 0
Been thanked: 0

Post by Sanchez »

Argh....

I understand some of the frustration at building a toolchain, but this isn't meant to be the easiest thing in the world....

I've never had a problem with the tutorials on hangar-eleven, save one very minor exception. Beyond that, IT'S FREE! Do you realize how much work goes into writing a compiler, much less writing a cross-compiler? For all the features and the general level of quality, the whole gcc chain is pretty damn good for the price. If you want something better, buy the devkit.

As for Cygwin, yeah, it sucks. But a ton of people have developed using it. Beyond that, install Linux and build the chain. If you don't know how, learn.

I don't like stating the obvious, but sheesh. Believe me, there are many undocumented things in computers that are FAR FAR worse...
"This is worse than when the Raccoon got in the copier!"
reaper2k2
DC Developer
DC Developer
Posts: 2648
Joined: Sun Mar 24, 2002 7:48 pm
Has thanked: 0
Been thanked: 0
Contact:

yeah i know

Post by reaper2k2 »

yeah i know

sorry for going off a bit it just got me so dam fustrated

the problem is its really hairpulling stuff ........

i just cant get over the fact if i could get it working today


i could have one of my simple games working in a few days.....

i know the work that goes into any think programing looks like im going to have to know it backwards .....
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *

http://r2k2gate.topcities.com *dev site and my releases*
Image
Im' a Commodorian are you?
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5666
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Post by BlueCrab »

Have you tried getting MSYS and using the Dev-C++ compiler with it? I had no trouble with MSYS and the MinGW compiler (which is in Dev-C++)

Just make sure that you use either GCC 3.0.4 or 3.0.3 (3.1, 3.1.1, 3.2 break stuff) and Binutils 2.11.2 (Binutils 2.12 + break sound in KOS).

Also, what exactly is the KOS build failing with? What messages does it spew at you?

Edit: well there is one problem using KOS on MinGW, but I have a solution for that.
User avatar
toastman
Iron Fist of Justice
Iron Fist of Justice
Posts: 4933
Joined: Sat Nov 10, 2001 3:08 am
Location: New Orleans
Has thanked: 0
Been thanked: 0
Contact:

Post by toastman »

clessoulis wrote:You could always use Dreamlib or whatever its called if KOS doesnt work for you. Mite wanna talk with DNR or Toastman about KOS tho if you need help.
I appreciate the vote of confidence, but I don't do cygwin.
I could never get a cygwin setup to work fully, so I dual boot Win98 and Red Hat 7.2 now. I've never had a problem with either the toolchain or KOS using a Linux distro (Slackware, Mandrake, or Red Hat)
No signature.
reaper2k2
DC Developer
DC Developer
Posts: 2648
Joined: Sun Mar 24, 2002 7:48 pm
Has thanked: 0
Been thanked: 0
Contact:

hey

Post by reaper2k2 »

i do use dev c++ is there a complete faq on how to use it to get kos to work with it......

i need it to be able to make a working bin elf for dc

ive got it half working cygwin now its saying missing genrofs.o

error thats it after i type make
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *

http://r2k2gate.topcities.com *dev site and my releases*
Image
Im' a Commodorian are you?
ShadowofBob
ShadowOfBob
ShadowOfBob
Posts: 1203
Joined: Tue Mar 12, 2002 6:04 pm
Location: Boulder, CO
Has thanked: 0
Been thanked: 0

Post by ShadowofBob »

I tried to do this a while back on my own but couldn't figure out how. Where did you find this tutorial?
HyperG
DC Developer
DC Developer
Posts: 434
Joined: Sat Mar 23, 2002 6:57 pm
Location: U S A
Has thanked: 0
Been thanked: 0
Contact:

Post by HyperG »

DC development on linux is of course, much better then using cygwin. When I got Mandrake 8 (i believe, this was a while back) up and running, it was much better to get the environment up and going for Dreamcast development. It was much faster to compile as well. Soon after a bit though my 40 gig crashed so I haven't installed linux since then.

From my understanding, it appears you forgot to get the package for make. Normally I just check mark every package. Wish krypt was around to list what you exactly need from the cygwin distro so you don't have to end up downloading the whole thing. Long ago he was going to make some sort of cygwin installer or something. Don't know where he's ended up lately.
If you think typing 'make' is hard, forget coding.
If you can't figure out the commands to DC-Tool, forget coding.
If you think coding is as easy as typing printf("Hello World\n"); , shoot yourself.
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5666
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Post by BlueCrab »

Okey doke, I'll make complete tutorial for getting KOS to work with Dev-C++, as soon as my computer finishes downloading it!

Edit: I have a preliminary version of this tutorial available at this website address: http://vmudomain.tripod.com/kosmsys.html Please tell me if this fails for you and what you got when it failed.
ShadowofBob
ShadowOfBob
ShadowOfBob
Posts: 1203
Joined: Tue Mar 12, 2002 6:04 pm
Location: Boulder, CO
Has thanked: 0
Been thanked: 0

Post by ShadowofBob »

I get this when I get to this step:

cp gcc/makefile /tmp/makefile

$ cp gcc/makefile /tmp/makefile
cp: cannot stat `gcc/makefile': No such file or directory

Also tried:
cp /gcc/makefile /tmp/makefile

$ cp /gcc/makefile /tmp/makefile
cp: cannot stat `/gcc/makefile': No such file or directory
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5666
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Post by BlueCrab »

were you in the build-sh-gcc directory, and if so did you run the configure command first? I don't know why it would fail otherwise.

The tutorial I put up is actually an adaptation of a script I wrote, if you all would rather just use the script, I can put it back up on my website later on. What do you think?
ShadowofBob
ShadowOfBob
ShadowOfBob
Posts: 1203
Joined: Tue Mar 12, 2002 6:04 pm
Location: Boulder, CO
Has thanked: 0
Been thanked: 0

Post by ShadowofBob »

It's pretty good so far. Do you think you could just put up an automated script to do all those commands in MSYS? Also how do you set it up with Dev-C++.
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5666
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Post by BlueCrab »

I'll work out a few bugs in my script then I'll put it up.
And to tell you the truth, I don't know how to do it with dev-c++ yet, so, when I get some time (i.e. maybe this weekend) I'll work that out. Thanks for your input. Oh and BTW the script in its current state requires the MSYS-DTK (for cvs) package and wget (I don't know where you can get this, i'll look into it). Later.

Edit: It doesn't requre the wget program if you have downloaded the gcc, binutils, and newlib files already, and it doesn't require MSYS-DTK if you have the KOS sources already.

Edit II: Ok, I put the script up here: http://vmudomain.tripod.com/build-toolchain.sh
Now here's how to use it without MSYS-DTK or wget:
Complete the setup steps of my previously posted tutorial for MSYS and Dev-C++.
Download the sources of the misc tools (i.e. kos, gcc, binutils, and newlib).
Put this script where the tarballs for gcc, binutils and newlib are.
Run "./build-toolchain.sh unpack"
then "./build-toolchain.sh dc_arm"
then "./build-toolchain.sh dc_sh"
then "cp kos-1.1.8.tar.gz /cross/dc/sh-elf"
and finally "./build-toolchain.sh dc_kos"

Be Warned: The "./build-toolchain.sh dc_sh" part may fail on your system, since it attempts to build the c++ compiler. In the best case it will actually build it, but it takes ~6-12 hours on my computer (400Mhz PII, 128MB PC133 SDRAM, Windows 98)
I hope that this works because it is basically the same way I made my compilers, and they work pretty well. Good Luck, and tell me if anything else fails! Thanks.
reaper2k2
DC Developer
DC Developer
Posts: 2648
Joined: Sun Mar 24, 2002 7:48 pm
Has thanked: 0
Been thanked: 0
Contact:

ok

Post by reaper2k2 »

Thanks for your replys and skill im going to try it today .... ill get back to you
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *

http://r2k2gate.topcities.com *dev site and my releases*
Image
Im' a Commodorian are you?
Post Reply