nethack-el-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nethack-el-devel] Troubles


From: Faux_Pseudo
Subject: [Nethack-el-devel] Troubles
Date: Tue, 1 Apr 2003 13:34:57 -0800
User-agent: Mutt/1.4i

The system:
gnu emacs 21.1.1 compiled without X
gcc 2.95.3
Linux 2.4.5 i686
nethack-el: 20030310-341
nethack: 3.4.1


First the problems I have fixed to get as far as I did.

1) In the enh-341.patch I have changed "../win/lisp/winlisp.c" to 
   "../lisp/winlisp.c"
2) I changed all referances of '#include "winlisp.c"' to  
   '#include "../include/winlisp.c"'.
3) Copied nethack-3.4.1/winlisp.h to nethack-3.4.1/include/winlisp.h
4) applied following patch for non emacs use:

--- nethack-3.4.1/src/Makefile  Mon Mar 31 21:37:50 2003
+++ nethack-3.4.1/src/Makefile  Mon Mar 31 21:39:34 2003
@@ -220,8 +220,8 @@
 # WINTTYLIB = -ltermcap
 # WINTTYLIB = -lcurses
 # WINTTYLIB = -lcurses16
-# WINTTYLIB = -lncurses
-WINTTYLIB = -ltermlib
+ WINTTYLIB = -lncurses
+# WINTTYLIB = -ltermlib
 #
 # libraries for X11
 # If USE_XPM is defined in config.h, you will also need -lXpm here.


I tried to do a "make depend" in nethack-3.4.1/src/ as listed in the
nethack-el INSTALL file.  This failed as the make file looks for
things like ../src/monst.c or some such thing when we are in src.

So we skip that and go up one level and do a make and a make install
and I can now play nethack 3.4.1 in the console without problem.

So I move over to ~/nethack_el-20030310-341 and set 
"EMACS = /usr/local/bin/emacs" and do a "make all"
sudo cp *elc /usr/local/share/emacs/21.1/lisp/

pop the following into .emacs
(autoload 'nethack "nethack" "Play Nethack." t)
(setq nethack-program "/usr/games/nethack")

Load up emacs for the first tine in a long time (I run in server mode)
and do the "M-x nethack<return>" and nothing happens.  Well thats what
it look like anyway.  A C-x C-b tells me there is a  "*  *nh-output*
1384  Fundamental" to show me that /something/ did happen.  

Now something tells me that that should not say fundamental.  But I
switch over anyway and find one very ugly attempt of nethack trying to
load into a Fundamental buffer. ie: 
For the sake of us all:  Go bravely with Anhur!--More--

So did I miss anything?  Was something not included in the INSTALL
file that should have been?  Or is this some bug that means I won't be
able to play nethack-el until I finally learn enough C to write hello
world without it failing because I forgot to include a ";" or messed
up my printf statement?

Every bug we kill makes us stronger.

-- 
 .-'))  http://asciipr0n.com/fp   ('-.  | The man who can't spell a word
' ..-  .:" )  New content  ( ":.  -.. ' | more than one way lacks 
 ((,,_;'.;'     10 / 30     ';. ';_,,)) | creativity.
       ((_.;'*Faux_Pseudo*':._))        | -- W.C. Fields




reply via email to

[Prev in Thread] Current Thread [Next in Thread]