PDA

View Full Version : compiling nethack for gnome (question about config.h)


TeeAhr1
October 27th, 2006, 09:11 PM
(cross-posting from general help)

I don't know if anyone else has noticed that the new nethack-gnome package is broken (crashes after character select). Anyway, I must have my fix, so I'm attempting to compile the source. Here's my question.

I'm editing the config.h file, and here's the part where I'm confused:
/*
* Define the default window system. This should be one that is compiled
* into your system (see defines above). Known window systems are:
*
* tty, X11, mac, amii, BeOS, Qt, Gem, Gnome
*/

/* MAC also means MAC windows */
#ifdef MAC
# ifndef AUX
# define DEFAULT_WINDOW_SYS "mac"
# endif
#endif

/* Amiga supports AMII_GRAPHICS and/or TTY_GRAPHICS */
#ifdef AMIGA
# define AMII_GRAPHICS /* (optional) */
# define DEFAULT_WINDOW_SYS "amii" /* "amii", "amitile" or "tty" */
#endif

Followed by several more definitions, one of which is gnome. How do I choose that as the default? Do I delete all the other defs from the config file? Plz advise, anyone who's done this...

best,
p.

jpkotta
October 27th, 2006, 10:04 PM
I've never compiled nethack, but generally, config.h is automatically generated by the configure script. Did you ./configure && make
or just "make"?

TeeAhr1
October 27th, 2006, 10:17 PM
Because the nethack source tarball has so many config options between different platforms and window managers, there's a lot of hand editing required. dl the source if you want to check it out: http://www.nethack.org/v343/download-src.html

The upside is that it comes with decent documentation, the downside is I suck at this. I've never done anything more complicated than ./configure, make, make install... :confused:

But I'm committed to the cause, I'm gonna keep poking at it...

no angel
November 21st, 2006, 01:13 AM
Fix here: https://launchpad.net/distros/ubuntu/+source/nethack/+bug/55563

TeeAhr1
November 21st, 2006, 12:53 PM
W00T!! I'll try this as soon as I get home, thx!

-p.

EDIT: It works if I run it from the terminal, but when I set my launcher to run export XLIB_SKIP_ARGB_VISUALS=1 && nethack-gnome it spits out "failed to execute child process export" Did I make a mistake?