![]() |
#1 |
Rookie
Join Date: Jan 2020
Posts: 4
![]() |
failed to compile main.c
Hello!
I played Angband years ago when I worked with @d_m in Philly. Now I'm interested in getting back in the game, so to speak. I got this far compiling, but don't know what to do with these errors. Code:
christopher@fern:~/angband/angband-4.2.0$ make Entering directory src. cat: ../version: No such file or directory cat: ../version: No such file or directory cat: ../version: No such file or directory cat: ../version: No such file or directory Successfully generated dependencies. cat: ../version: No such file or directory main.c:53:1: warning: ISO C forbids empty initializer braces [-Wpedantic] { ^ main.c:52:28: error: zero or negative size array ‘modules’ static const struct module modules[] = ^~~~~~~ Failed to compile main.c! ../mk/buildsys.mk:242: recipe for target 'main.o' failed make[3]: *** [main.o] Error 1 ../mk/buildsys.mk:110: recipe for target 'all' failed make[2]: *** [all] Error 2 mk/buildsys.mk:115: recipe for target 'subdirs' failed make[1]: *** [subdirs] Error 2 mk/buildsys.mk:110: recipe for target 'all' failed make: *** [all] Error 2 |
![]() |
![]() |
![]() |
#2 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,763
Donated: $60
![]() |
Have you first run ./autogen.sh and then ./configure (with relevant options)?
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#3 |
Rookie
Join Date: Jan 2020
Posts: 4
![]() |
Hi! Yes, I ran $sh autogen.sh and $./configure --prefix=$HOME
Last edited by sousedstvi; January 19, 2020 at 03:28. |
![]() |
![]() |
![]() |
#4 |
Rookie
Join Date: Jan 2020
Posts: 4
![]() |
output of ./configure is
Code:
Configuration: Install path: /home/christopher binary path: /home/christopher/games config path: /home/christopher/etc/angband/ lib path: /home/christopher/share/angband/ doc path: /home/christopher/share/doc/angband/ var path: (not used) (with private save and score files in ~/.angband/Angband/) -- Frontends -- - Curses No; missing libraries - X11 No; missing libraries - SDL2 Disabled - SDL Disabled - Windows Disabled - Test No - Stats No - SDL2 sound Disabled - SDL sound Disabled |
![]() |
![]() |
![]() |
#5 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,203
Donated: $40
![]() |
You need at least ONE front-end. I am surprised curses isn't present on your machine. You will have to get (or configure) one of those choices.
|
![]() |
![]() |
![]() |
#6 |
Rookie
Join Date: Jan 2020
Posts: 4
![]() |
![]()
Ok. Thanks that was it. I installed libx11-dev and dependencies.
Last edited by sousedstvi; January 19, 2020 at 04:44. |
![]() |
![]() |
![]() |
#7 |
Knight
Join Date: Apr 2009
Location: Pisa / DL0
Posts: 970
![]() |
Probably what is missing is not the library, but the -dev package (include files).
__________________
Dive fast, die young, leave a high-CHA corpse. -- You read a scroll labeled 'lol gtfo' of Teleport Level. |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Failed ironman journal | Sphara | AAR | 6 | April 13, 2019 14:57 |
Assertion failed in Angband 4.1.0 | teleray | Development | 4 | November 12, 2017 21:02 |
Furyband: Help with failed god quest | Theyli | Variants | 6 | May 31, 2016 23:14 |
Saving game... failed! | Jimbo | Vanilla | 4 | November 8, 2013 15:50 |
Assertion failed in object\identify.c | jens | Development | 10 | June 14, 2011 14:48 |