Difference between revisions of "Forum:How do I run the graphical interface for NetHack4 on linux?"
Jump to navigation
Jump to search
Ray Chason (talk | contribs) |
(Ray Chason, those instructions are for the 10-year-old vanilla; explain how the build works for NetHack 4.) |
||
Line 8: | Line 8: | ||
:See also the [[X11]] article. | :See also the [[X11]] article. | ||
:There is also a Qt interface, but Debian no longer supports it, because Debian no longer includes Qt version 3.--[[User:Ray Chason|Ray Chason]] ([[User talk:Ray Chason|talk]]) 23:53, 16 November 2014 (UTC) | :There is also a Qt interface, but Debian no longer supports it, because Debian no longer includes Qt version 3.--[[User:Ray Chason|Ray Chason]] ([[User talk:Ray Chason|talk]]) 23:53, 16 November 2014 (UTC) | ||
+ | ::I think you're confusing the vanilla NetHack (3.4.3, etc.) with [[NetHack 4]] there. (And the graphical interfaces for vanilla NetHack on Linux suck; the Windows one is much better). [[User:Ais523|Ais523]] ([[User talk:Ais523|talk]]) | ||
+ | |||
+ | Here's how you build NetHack 4 on Linux: | ||
+ | |||
+ | * Install the relevant development tools and dependencies. On Debian derivatives (Ubuntu, Linux Mint, etc.), you can do this with the command <code>sudo apt-get install build-essential bison flex libz-dev libsdl2-dev libpng-dev</code>. Other distributions will have a similar command, but the details will be different. | ||
+ | * Download the NetHack 4 source. [https://gitorious.org/nitrohack/ais523/archive/nicehack.tar.gz This link] will give you the latest development version, which might or might not be broken in various ways. (Once we iron out all the bugs, I'll have a binary package available for download, so that these steps will be unnecessary.) | ||
+ | * Extract the archive to a new directory (from the command line, this is <code>tar xvf path-to-file.tar.gz`; you can also typically do it using an "Extract All" command or the like via the GUI). | ||
+ | * In the command line, switch to that directory (<code>cd path/to/directory</code>) then type: <code>mkdir build; cd build; ../aimake -i ~/nethack4 ..</code> | ||
+ | * After about 10 minutes processing, the build process should install NetHack 4 in the <code>nethack4</code> subdirectory of your home directory. The graphical version is called <code>nethack4-sdl</code>. | ||
+ | |||
+ | Once I've got the latest round of bugs ironed out, there'll be a link you can click on and have all this done automatically, but for the time being, you'll have to do it the long way round. [[User:Ais523|Ais523]] ([[User talk:Ais523|talk]]) |
Latest revision as of 17:26, 17 November 2014
Title is self explanatory, new to nethack.--Crimson2877 (talk) 04:49, 15 November 2014 (UTC)
- Much depends on your distribution. For Debian and its derivatives (Ubuntu, Mint, Knoppix and many others), you need the nethack-x11 package. Then set OPTIONS=windowtype:X11 in your ~/.nethackrc.
- See also the X11 article.
- There is also a Qt interface, but Debian no longer supports it, because Debian no longer includes Qt version 3.--Ray Chason (talk) 23:53, 16 November 2014 (UTC)
Here's how you build NetHack 4 on Linux:
- Install the relevant development tools and dependencies. On Debian derivatives (Ubuntu, Linux Mint, etc.), you can do this with the command
sudo apt-get install build-essential bison flex libz-dev libsdl2-dev libpng-dev
. Other distributions will have a similar command, but the details will be different. - Download the NetHack 4 source. This link will give you the latest development version, which might or might not be broken in various ways. (Once we iron out all the bugs, I'll have a binary package available for download, so that these steps will be unnecessary.)
- Extract the archive to a new directory (from the command line, this is
tar xvf path-to-file.tar.gz`; you can also typically do it using an "Extract All" command or the like via the GUI).
- In the command line, switch to that directory (
cd path/to/directory
) then type:mkdir build; cd build; ../aimake -i ~/nethack4 ..
- After about 10 minutes processing, the build process should install NetHack 4 in the
nethack4
subdirectory of your home directory. The graphical version is callednethack4-sdl
.
Once I've got the latest round of bugs ironed out, there'll be a link you can click on and have all this done automatically, but for the time being, you'll have to do it the long way round. Ais523 (talk)