![]() |
#1 |
Adept
Join Date: Oct 2021
Location: WA
Posts: 206
![]() |
Zangband GNU Curses "Fatal Error" when run
After massacring makefiles and things for a bit I managed to compile what might be a GNU Curses version of Zangband 2.7.5.1 or whatever under Cygwin, but when trying to run it I get "Fatal Error."
In an earlier thread where this kind of thing came up, backwardsEric said "Fatal Error" means it can't find the "libs" directory. Running it with "-help" says it has a command line option along those lines Code:
-d<def> Define a 'lib' dir sub-path Update: src/z-config.h has two options that may be relevant to the lib thing: DEFAULT_PATH This defaults to "./lib/" but recommends that you change it to "the actual location of the 'lib' folder." Mine is under my Cygwin home, ~/zangband/lib/, so I tried setting it to "/zangband/lib/" before compiling, but "Fatal Error" persists. FIXED_PATHS This apparently "prevents usage" of the '-d<what=path' command line option. I tried commenting it out--but I still have no idea how to use -d, and it is giving me the same "bad semantics" and so forth errors when I try to guess at it.
__________________
My roguelike gameplay videos Last edited by smbhax; January 21, 2022 at 09:23. |
![]() |
![]() |
![]() |
#2 |
Swordsman
Join Date: Aug 2019
Posts: 272
![]() |
When you set DEFAULT_PATH to "~/zangband/lib/", did you give it in exactly that form or in a form where the tilde had been replaced with the path to the home directory (i.e. what you would see if you ran "cd ~; pwd" from Cygwin's shell). It doesn't look like Zangband is prepared to handle the former so you'd have to give it the path where the tilde has already been replaced.
For the -d options, it looks like the format it wants is like this: Code:
-ds=your_path_here |
![]() |
![]() |
![]() |
#3 | |
Adept
Join Date: Oct 2021
Location: WA
Posts: 206
![]() |
Quote:
"cd ~; pwd" gives me "/home/smbhax" so now I'm trying "/home/smbhax/zangband/lib/"... Still "Fatal Error" though. Actually hm this in the generated makefile looks suspicious Code:
prefix = /usr/local exec_prefix = ${prefix} bindir = ${exec_prefix}/bin datadir = ${prefix}/share DESTDIR = $(datadir)/games/zangband/ GAMEGROUP = games CFLAGS += -DDEFAULT_PATH=\"$(DESTDIR)lib/\" Code:
CFLAGS := -Wall -O1 -pipe -g -D"USE_GCU" -DDEFAULT_PATH=\"/home/smbhax/zangband/lib/\"
__________________
My roguelike gameplay videos Last edited by smbhax; January 21, 2022 at 19:25. |
|
![]() |
![]() |
![]() |
#4 | |
Swordsman
Join Date: Aug 2019
Posts: 272
![]() |
Quote:
|
|
![]() |
![]() |
![]() |
#5 |
Adept
Join Date: Oct 2021
Location: WA
Posts: 206
![]() |
Dude, you know too much and it is amazing. That's got it running. : )
__________________
My roguelike gameplay videos |
![]() |
![]() |
![]() |
#6 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 56
Posts: 9,317
Donated: $60
![]() ![]() |
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#7 |
Knight
Join Date: Jan 2017
Posts: 919
![]() |
|
![]() |
![]() |
![]() |
#8 | |
Adept
Join Date: Oct 2021
Location: WA
Posts: 206
![]() |
Quote:
__________________
My roguelike gameplay videos |
|
![]() |
![]() |
![]() |
#9 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,666
Donated: $40
![]() |
Getting 64 bits working on windows wasnt too hard either. I think it took 4 changes.
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compiling Hengband: "fatal error: util.h: No such file or directory" | smbhax | Variants | 66 | February 3, 2022 21:02 |
Getting "error!! is this really character dump?" | TheQuest | Variants | 4 | July 20, 2017 11:31 |
3.5 key map error "x" | Ingwe Ingweron | Development | 1 | January 4, 2014 02:29 |
Lua "obsolete file error", blargh | Therem Harth | ToME | 4 | July 4, 2010 14:02 |
help with compile error (and "const") | will_asher | Development | 4 | August 3, 2009 23:35 |