Index of /QNX/8.0/nethack/

NameLast ModifiedSizeType
../ -  Directory
README.txt2025-Aug-19 14:02:554.5Ktext/plain; charset=utf-8
nethack2025-Aug-19 13:32:585.1Mapplication/octet-stream
nethackdir.tgz2025-Aug-19 13:32:59621.4Kapplication/x-gtar-compressed
                                            
 __    __             __      __    __                      __                         ______   __    __  __    __         ______       ______  
|  \  |  \           |  \    |  \  |  \                    |  \                       /      \ |  \  |  \|  \  |  \       /      \     /      \ 
| $$\ | $$  ______  _| $$_   | $$  | $$  ______    _______ | $$   __                 |  $$$$$$\| $$\ | $$| $$  | $$      |  $$$$$$\   |  $$$$$$\
| $$$\| $$ /      \|   $$ \  | $$__| $$ |      \  /       \| $$  /  \                | $$  | $$| $$$\| $$ \$$\/  $$      | $$__/ $$   | $$$\| $$
| $$$$\ $$|  $$$$$$\\$$$$$$  | $$    $$  \$$$$$$\|  $$$$$$$| $$_/  $$                | $$  | $$| $$$$\ $$  >$$  $$        >$$    $$   | $$$$\ $$
| $$\$$ $$| $$    $$ | $$ __ | $$$$$$$$ /      $$| $$      | $$   $$                 | $$ _| $$| $$\$$ $$ /  $$$$\       |  $$$$$$    | $$\$$\$$
| $$ \$$$$| $$$$$$$$ | $$|  \| $$  | $$|  $$$$$$$| $$_____ | $$$$$$\  __             | $$/ \ $$| $$ \$$$$|  $$ \$$\      | $$__/ $$ __| $$_\$$$$
| $$  \$$$ \$$     \  \$$  $$| $$  | $$ \$$    $$ \$$     \| $$  \$$\|  \             \$$ $$ $$| $$  \$$$| $$  | $$       \$$    $$|  \\$$  \$$$
 \$$   \$$  \$$$$$$$   \$$$$  \$$   \$$  \$$$$$$$  \$$$$$$$ \$$   \$$ \$$              \$$$$$$\ \$$   \$$ \$$   \$$        \$$$$$$  \$$ \$$$$$$ 
 

NetHack-3.7.0 (current) howto for QNX 8.0 x86_64 

Sources taken from https://github.com/NetHack/NetHack 

NetHack-3.7.0 for QNX8 was patched to have hardcoded library pathas to /data/usr/local/games/lib/nethackdir
this makes it easier to operate on QNX 8 environment since /data is reserved for user's stuff and custom programs. 

QNX 8.0 x86_64 BINARIES: 
------------------------

https://astr0baby.online/QNX/8.0/nethack/nethack
https://astr0baby.online/QNX/8.0/nethack/nethackdir.tgz

Or if you prefer the complete /data build 

# put nethack in /data/usr/local/bin 
# extract nethackdir.tgz into /data/usr/local/games/lib 

# Play nethack ;) 


HOWTO BUILD:
-----------

$ source ~/qnx800/qnxsdp-env.sh 
$ mkdir ~/qnx800/SRC
$ cd ~/qnx800/SRC
$ git clone  https://github.com/qnx-ports/build-files 
$ cd build-files/ports 
$ wget https://astr0baby.online/QNX/8.0/build_files/ports/nethack.tgz 
$ tar -zxvf nethack.tgz 
$ rm nethack.tgz 
$ cd mkdir ~/qnx800/SRC 
$ wget https://astr0baby.online/QNX/8.0/SRC/NetHack-3.7.0.tgz  
$ tar -zxvf NetHack-3.7.0.tgz 
$ rm NetHack-3.7.0.tgz 
$ QNX_PROJECT_ROOT="$(pwd)/NetHack-3.7.0" make -C build-files/ports/nethack install   


### NOW COMES THE HACKISH-PART  :) 

# There will be a build Error due to tparam being declared in 

$HOME/qnx800/target/qnx/usr/include/curses.h:893:31: note: previous declaration of 'tparm' with type 'char *(const char *, ...)' 

# To fix it edit $HOME/qnx800/target/qnx/usr/include/curses.h  like this : 

#if NCURSES_TPARM_VARARGS                                                   
//extern NCURSES_EXPORT(char *) tparm (const char *, ...);                /* special */
#else
//extern NCURSES_EXPORT(char *) tparm (const char *, NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG);  /* special */                              
#endif


# Then build till another error comes 

make[3]: Entering directory '/home/user/qnx802/SRC/build-files/ports/nethack/nto-x86_64-o/build/doc'
cat Guidebook.mn | ../util/makedefs --grep --input - --output - | tbl tmac.n - | nroff -c -Tascii  | col -bx > Guidebook
/bin/sh: 1: ../util/makedefs: not found

# This is due to cross-compiled qnx8 x86_64 makedefs binary in util/ 
# In order to fix this we can cheat like this : 
# Build a clean NetHack on the host Linux but not with cross-compile toolchain (use native gcc not qcc) to
# produce working util/makedefs or use my precompiled Debian Linux x86_64  makedefs file in the build-files/ports/nethack/nto-x86_64-o/makedefs_linux.x86_64 

# Restart the cross-compile NetHack process again, and after util/makedefs gets built, replace it with the linux x86_64  util/makedes.

# This allows to get the data generated needed for NetHack gameplay to be compiled. 
# Next you need to copy the dat dir from the build environment to the QXN 8.0 as well as src/nethack binary 

# Enjoy NetHack 
 






Something is engraved here on the floor.  You read: "Move around with h j k l".--More--



       ---------
     ---.......|
    -..`.......|
       -...@...|
       |.......|
       |.......|
       ---------











Root the Rambler               St:14 Dx:13 Co:12 In:12 Wi:9 Ch:18 Neutral
Tutorial:1 $:0 HP:10(10) Pw:2(2) AC:10 Xp:1

Webserver 1.0