Help with compiling cygwin...without the filename extensions!

Posted by MUDlover on Sun 14 Aug 2005 12:30 AM — 47 posts, 137,685 views.

#0
Um...I think I got an old version of cygwin...but I just updated...But ok I read your Compile tutorial but i recently downloaded SWFotE off the downloads page and it was called swfotefuss11[1] how would I compile that? also my bash doesn't do some of the commands you mention in How to Compile...So I am desperate for help! HELP ME NICK





Chasing me is like chasing your bra in the ocean....
USA #1
If some of the commands don't work, it means you didn't get the right Cygwin packages.

Is the swfotefuss11 file a tar/zip/compressed file? If so you'll need to extract it first.
#2
Well hmm Should I get all the bash files then? Nope its just called SWfotefuss11[1]

and well I found a folder with ls.exe but when I dbl click it a black screen pops up and dissappears...heh...But today I had an old swr10 binary and got that working...But still I need to get this to work
Amended on Sun 14 Aug 2005 01:21 AM by MUDlover
USA #3
You're not supposed to double click ls.exe ... you're supposed to type it from the Cygwin prompt. In fact you're supposed to do almost everything in Nick's guide from the Cygwin prompt. Could you be a little more precise about what you're doing and what is not working?
#4
Well I just am new and all and what you mean by Cygwin prompt? is that bash or somethin? I just dunno how to compile the file swfotefuss11[1] and I cant use ls...tar...you know the basics
USA #5
Cygwin prompt is the command prompt. See:
http://en.wikipedia.org/wiki/Command_prompt

Can you show me the link to swfotefuss11?
#6
Its on this site...Oh and so All I have to do is run cmd.exe into the command prompt eh? I'll try it out
USA #7
No, cmd.exe is the Windows prompt. You want to run the Cygwin one. It should be on your desktop, that's where mine was after it installed.

You mean this download?
Quote:
http://www.gammon.com.au/files/smaug/swfote11fuss.tgz - 1.37 Mb - SW:FotE FUSS SMAUG Source, area files, classes, races, force, planets, ships, space directories, system directory etc.


I downloaded it, it has a file extension.
Amended on Sun 14 Aug 2005 01:55 AM by Zeno
#8
Somehow...I do not have the Cygwin one...I mean when I used the cmd.exe it and then ran ls.exe it showed the files like it was supposed to in the how to compile tutorial and yea thats the file
Amended on Sun 14 Aug 2005 01:58 AM by MUDlover
USA #9
You have to find the main Cygwin file to run. I don't know where it is, but you should have specified where to install.
#10
What would it be called? Cygwin.exe? I unno
USA #11
The one on my desktop points to:
C:\cygwin\cygwin.bat
#12
Well...thats strange...I have no cygwin.bat file...it must be an old version...any way i could possibly get it now? And its an extension? whats it say fer you?
USA #13
Just re-download Cygwin with all the packages, that's what I did.

What do you mean what's it say?
#14
Well I just got a cygwin.bat file and I'm getting todo.pl which it needs it says...So... I mean what does the swfote file say for you? mine says swfotefuss11[1] you? I'll see if this todo.pl file works
USA #15
Mine is swfote11fuss.tgz, are you sure it's just not hiding the extension?
#16
Ok I got the todo.pl its like a todo list but the cygwin.bat file wouldn't do anything without it...all it does is gimme this big text screen...oh and cmd.exe does run the ls.exe showing the files and everything...so any suggestions besides reinstalling? Because I got my friend doing that on his computer which I'm gonna see if that works later...but still help me here
USA #17
"big text screen"? That would be what you're looking for. That's the Cygwin prompt.
#18
Lol hey I just renamed the file and I could extract it...but now how would i be able to make it executable?
USA #19
What? Why do you want it executable? It's a compressed archive. Extract it.
#20
No...I extracted it all...How do i run it now
USA #21
Did you compile it yet? Read over the docs.
#22
Thats my question lol how DO I compile it?
USA #23
Read the guides.

http://www.gammon.com.au/smaug/howtocompile.htm
#24
Ok...But my bash keeps saying create a tmp folder now! I dunno where to put it
Amended on Sun 14 Aug 2005 02:36 AM by MUDlover
#25
Also...I see a startup file just named startup...What should I do with that?
USA #26
I don't know about the tmp thing...

You run the startup after everything is compiled.
#27
But...Ok this is really hard to explain...but Is there anyway for you to help me with bash? Because the compile guide is kinda hard to understand with all that yippy wippy commands and I dunno how I would run the startup...it doesn't have an extension or anything. Like...Why wont exec command work?
Amended on Sun 14 Aug 2005 02:39 AM by MUDlover
USA #28
Don't do anything outside of Cygwin. It doesn't matter if it has an extension or not. It's a script. The guide is the best way to start out.
#29
Ok I dunno how to exactly use make
USA #30
The guide tells you exactly how to use it...
Quote:
Usually you can use make by changing directories to the directory with the source in it (ie. the .c files) and then just typing:


make
#31
Well, what i mean by big text screen is like notepad...not bash/telnet/dos...So...I mean theres sites that let you download it so i'll go try that out quick
USA #32
Like notepad? I don't fully understand what it is. What text does it have in it?
#33
You know like a text editor...
# Manage the to-do list.

use warnings;
use strict;
use Getopt::Long;
use Pod::Usage;
use Win32API::Registry qw(:Func :SE_);
my %reg;
use Win32::TieRegistry (Delimiter => '/', TiedHash => \%reg);
use Win32::NetResource; # for get_drive_path

# Location of the "to do" list.
my $todo = 'c:\\todo.txt';

# Your usual option-processing sludge.
my %opts;
GetOptions (\%opts, 'help', 'man', 'go')
or pod2usage (2);

(exists $opts{'help'})
and pod2usage (0);
(exists $opts{'man'})
and pod2usage ('-exitstatus' => 0, -verbose => 2);

sub stop () {
while (1) {
sleep 3600;
}
}

sub reboot ($) {
my ($timeout) = @_;
AllowPriv (SE_SHUTDOWN_NAME, 1)
or die "Unable to AllowPriv SE_SHUTDOWN_NAME: $^E";

print "$0 is bouncing the system\n";
InitiateSystemShutdown ('', "$0: Rebooting...", $timeout, 1, 1)
or die "Unable to InitiateSystemShutdown: $^E";
stop ();
}

# Read a file. Return an empty list if file does not exist.
sub read_file ($) {
my ($file) = @_;

-e $file
or return ();

open FILE, $file
or die "Unable to open $file for reading: $^E";
my @ret = <FILE>;
close FILE
or die "Unable to close $file: $^E";
map { chomp } @ret;

# Cull empty lines
return grep { /./ } @ret;
}

# Write some lines to a file.
sub write_file ($@) {
my ($file, @lines) = @_;

if (scalar @lines > 0) {
my $tmp = "$file.tmp.$$";
open TMP, ">$tmp"
or die "Unable to open $tmp for writing: $^E";
foreach my $line (@lines) {
print TMP "$line\n";
}
close TMP
or die "Unable to close $tmp: $^E";

rename $tmp, $file
or die "Unable to rename $tmp to $file: $^E";
}
else {
# When file becomes empty, remove it.
unlink $file
or die "Unable to unlink $file: $^E";
}
}


# Push one or more commands onto the to-do list.
sub push_todo (@) {
my @new_cmds = @_;

my @old_cmds = read_file ($todo);
write_file ($todo, @new_cmds, @old_cmds);
}

# Pop the next command off of the to-do list. With arg, just peek at
# the next command; do not really pop it off.
sub pop_todo (;$) {
my ($peek) = @_;
my @cmds = read_file ($todo);

scalar @cmds > 0
or return undef;

my $ret = shift @cmds;

#34
Thats only part of it...
USA #35
Er? That's cygwin.bat? It should be running a .bat file, not opening it to view it.
#36
Well I'm gonna go to bed...I found a 2003 version...it actually has the bat files and desktop icons...oh well...Hey help me tommorow I'll be on...Night and thanks
USA #37
You seem to have not followed the guide closely enough. I would start over and follow Nick's guide to the letter if I were you. Don't skip steps because you think you know them. Do it all by the letter. That you're dealing with todo.pl (whatever the hell that is) shows that you're doing something very, very strange.
#38
Ok I tried to use tar...but it said stdin: not in gzip format! I dunno how to do that...
#39
Well I did the make command and stuff but I got a WHOLE bunch of errors...like cannot find /sys/times.h. So I dunno how to get that to work...so can ya help?
USA #40
Can you paste some of the errors here? What directory are you in?
#41
make -s swr
o/11.o
11.c:41: math.h: No such file or directory
11.c:42: sys/types.h: No such file or directory
11.c:43: ctype.h: No such file or directory
11.c:44: stdio.h: No such file or directory
11.c:45: string.h: No such file or directory
11.c:46: time.h: No such file or directory
In file included from 11.c:47:
mud.h:39: stdlib.h: No such file or directory
In file included from /cygdrive/c/cygwin/latest/gcc/usr/bin/../lib/gcc-lib/i686-
pc-cygwin/2.95.2-6/include/limits.h:11,
from mud.h:40,
from 11.c:47:
/cygdrive/c/cygwin/latest/gcc/usr/bin/../lib/gcc-lib/i686-pc-cygwin/2.95.2-6/inc
lude/syslimits.h:7: No include path in which to find limits.h
In file included from 11.c:47:
mud.h:41: sys/cdefs.h: No such file or directory
mud.h:42: sys/time.h: No such file or directory
mud.h:43: math.h: No such file or directory
make[1]: *** [o/11.o] Error 1
make: *** [all] Error 2
BASH-2.04$
Amended on Sun 14 Aug 2005 10:04 PM by MUDlover
USA #42
Right click in Cygwin, click on Mark, highlight what you want, and then hit enter. Please try to read manuals first so you know how to do, without needing to ask.
#43
make -s swr
o/11.o
11.c:41: math.h: No such file or directory
11.c:42: sys/types.h: No such file or directory
11.c:43: ctype.h: No such file or directory
11.c:44: stdio.h: No such file or directory
11.c:45: string.h: No such file or directory
11.c:46: time.h: No such file or directory
In file included from 11.c:47:
mud.h:39: stdlib.h: No such file or directory
In file included from /cygdrive/c/cygwin/latest/gcc/usr/bin/../lib/gcc-lib/i686-
pc-cygwin/2.95.2-6/include/limits.h:11,
from mud.h:40,
from 11.c:47:
/cygdrive/c/cygwin/latest/gcc/usr/bin/../lib/gcc-lib/i686-pc-cygwin/2.95.2-6/inc
lude/syslimits.h:7: No include path in which to find limits.h
In file included from 11.c:47:
mud.h:41: sys/cdefs.h: No such file or directory
mud.h:42: sys/time.h: No such file or directory
mud.h:43: math.h: No such file or directory
make[1]: *** [o/11.o] Error 1
make: *** [all] Error 2
BASH-2.04$



there ya go and i'm in the swfote/src/
Amended on Sun 14 Aug 2005 10:08 PM by MUDlover
USA #44
Looks like you didn't set up Cygwin correctly since header files are missing and/or include directories aren't set up correctly. Uninstall Cygwin and install it again, following the guide to the letter.
#45
But I can find those files...I mean they are there..like i found all of those but dunno where to put em
USA #46
Just because you can find the files doesn't mean Cygwin can. I'd so as Ksilyan suggested, reinstall Cygwin and follow the guides word by word.