Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old January 19, 2020, 02:59   #1
sousedstvi
Rookie
 
Join Date: Jan 2020
Posts: 4
sousedstvi is on a distinguished road
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
sousedstvi is offline   Reply With Quote
Old January 19, 2020, 03:03   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,343
Donated: $60
Nick will become famous soon enough
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.
Nick is offline   Reply With Quote
Old January 19, 2020, 03:21   #3
sousedstvi
Rookie
 
Join Date: Jan 2020
Posts: 4
sousedstvi is on a distinguished road
Hi! Yes, I ran $sh autogen.sh and $./configure --prefix=$HOME

Last edited by sousedstvi; January 19, 2020 at 03:28.
sousedstvi is offline   Reply With Quote
Old January 19, 2020, 03:40   #4
sousedstvi
Rookie
 
Join Date: Jan 2020
Posts: 4
sousedstvi is on a distinguished road
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
do I have to have those Curses and X11 libraries?
sousedstvi is offline   Reply With Quote
Old January 19, 2020, 04:11   #5
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,738
Donated: $40
Pete Mack is on a distinguished road
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.
Pete Mack is offline   Reply With Quote
Old January 19, 2020, 04:37   #6
sousedstvi
Rookie
 
Join Date: Jan 2020
Posts: 4
sousedstvi is on a distinguished road
Thumbs up [solved]

Ok. Thanks that was it. I installed libx11-dev and dependencies.

Last edited by sousedstvi; January 19, 2020 at 04:44.
sousedstvi is offline   Reply With Quote
Old January 19, 2020, 17:13   #7
fph
Knight
 
Join Date: Apr 2009
Location: Pisa / DL0
Posts: 894
fph is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
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.
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.
fph is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 03:14.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.