Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ Compiling the server ➜ Help with compiling cygwin...without the filename extensions!

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

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2  3 4  

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #30 on Sun 14 Aug 2005 02:45 AM (UTC)
Message
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

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by MUDlover   (25 posts)  Bio
Date Reply #31 on Sun 14 Aug 2005 02:53 AM (UTC)
Message
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
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #32 on Sun 14 Aug 2005 02:54 AM (UTC)
Message
Like notepad? I don't fully understand what it is. What text does it have in it?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by MUDlover   (25 posts)  Bio
Date Reply #33 on Sun 14 Aug 2005 03:02 AM (UTC)
Message
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;

Top

Posted by MUDlover   (25 posts)  Bio
Date Reply #34 on Sun 14 Aug 2005 03:02 AM (UTC)
Message
Thats only part of it...
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #35 on Sun 14 Aug 2005 03:06 AM (UTC)
Message
Er? That's cygwin.bat? It should be running a .bat file, not opening it to view it.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by MUDlover   (25 posts)  Bio
Date Reply #36 on Sun 14 Aug 2005 03:07 AM (UTC)
Message
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
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #37 on Sun 14 Aug 2005 03:17 AM (UTC)
Message
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.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by MUDlover   (25 posts)  Bio
Date Reply #38 on Sun 14 Aug 2005 08:30 PM (UTC)
Message
Ok I tried to use tar...but it said stdin: not in gzip format! I dunno how to do that...
Top

Posted by MUDlover   (25 posts)  Bio
Date Reply #39 on Sun 14 Aug 2005 08:50 PM (UTC)
Message
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?
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #40 on Sun 14 Aug 2005 09:29 PM (UTC)
Message
Can you paste some of the errors here? What directory are you in?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by MUDlover   (25 posts)  Bio
Date Reply #41 on Sun 14 Aug 2005 09:59 PM (UTC)

Amended on Sun 14 Aug 2005 10:04 PM (UTC) by MUDlover

Message
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$
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #42 on Sun 14 Aug 2005 10:03 PM (UTC)
Message
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.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by MUDlover   (25 posts)  Bio
Date Reply #43 on Sun 14 Aug 2005 10:05 PM (UTC)

Amended on Sun 14 Aug 2005 10:08 PM (UTC) by MUDlover

Message
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/
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #44 on Sun 14 Aug 2005 10:26 PM (UTC)
Message
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.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


130,952 views.

This is page 3, subject is 4 pages long:  [Previous page]  1  2  3 4  [Next page]

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.