[Daj]Compiling DajAngband on Linux?
Collapse
X
-
Tags: None
-
It is missing the top level Makefile, but you can get the one from Vanilla 3.0.9b; also, the configure script has the wrong permissions, and will need to be fixed. So here is what I did (I also use Ubuntu):
- Copy Makefile from the top level directory of angband-3.0.9b to the top level directory of DaJAngband.
- chmod 744 configure
- ./configure
- make
- make install
If you want the sdl port, put --enable-sdl after the ./configure; similarly, --enable-gtk will enable the gtk port. You'll get a bunch of warnings during the make step which can be safely ignoredOne for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie. -
sdl and gtk. Those are foreign to me...
Also, should I be able to just type dajangband into the terminal to start it up? I'm getting a lot of errors when running make and make install, so I don't know if that's normal or something is wrong.
Here's what happens when I run make:
Code:tomek@tomek:~/Desktop/DaJAngband1093$ make CC main-gcu.c In file included from angband.h:33, from main-gcu.c:39: defines.h:1845:41: warning: "/*" within comment In file included from angband.h:37, from main-gcu.c:39: externs.h:524:48: warning: "/*" within comment main-gcu.c:63:22: error: ncurses.h: No such file or directory main-gcu.c:132: error: expected specifier-qualifier-list before ‘WINDOW’ main-gcu.c: In function ‘Term_xtra_gcu_alive’: main-gcu.c:279: warning: implicit declaration of function ‘nocbreak’ main-gcu.c:280: warning: implicit declaration of function ‘echo’ main-gcu.c:281: warning: implicit declaration of function ‘nl’ main-gcu.c:287: warning: implicit declaration of function ‘refresh’ main-gcu.c:290: warning: implicit declaration of function ‘getyx’ main-gcu.c:290: error: ‘curscr’ undeclared (first use in this function) main-gcu.c:290: error: (Each undeclared identifier is reported only once main-gcu.c:290: error: for each function it appears in.) main-gcu.c:293: warning: implicit declaration of function ‘mvcur’ main-gcu.c:293: error: ‘LINES’ undeclared (first use in this function) main-gcu.c:296: warning: implicit declaration of function ‘endwin’ main-gcu.c:310: warning: implicit declaration of function ‘cbreak’ main-gcu.c:311: warning: implicit declaration of function ‘noecho’ main-gcu.c:312: warning: implicit declaration of function ‘nonl’ main-gcu.c: In function ‘Term_init_gcu’: main-gcu.c:341: warning: implicit declaration of function ‘wrefresh’ main-gcu.c:341: error: ‘stdscr’ undeclared (first use in this function) main-gcu.c:347: warning: implicit declaration of function ‘wclear’ main-gcu.c:347: error: ‘term_data’ has no member named ‘win’ main-gcu.c:350: warning: implicit declaration of function ‘wmove’ main-gcu.c:350: error: ‘term_data’ has no member named ‘win’ main-gcu.c:353: error: ‘term_data’ has no member named ‘win’ main-gcu.c: In function ‘Term_nuke_gcu’: main-gcu.c:369: warning: implicit declaration of function ‘delwin’ main-gcu.c:369: error: ‘term_data’ has no member named ‘win’ main-gcu.c:383: error: ‘curscr’ undeclared (first use in this function) main-gcu.c:386: error: ‘LINES’ undeclared (first use in this function) main-gcu.c: In function ‘Term_xtra_gcu_event’: main-gcu.c:415: warning: implicit declaration of function ‘nodelay’ main-gcu.c:415: error: ‘stdscr’ undeclared (first use in this function) main-gcu.c:418: warning: implicit declaration of function ‘getch’ main-gcu.c:421: error: ‘ERR’ undeclared (first use in this function) main-gcu.c: In function ‘Term_xtra_gcu’: main-gcu.c:505: warning: implicit declaration of function ‘touchwin’ main-gcu.c:505: error: ‘term_data’ has no member named ‘win’ main-gcu.c:506: error: ‘term_data’ has no member named ‘win’ main-gcu.c:516: error: ‘term_data’ has no member named ‘win’ main-gcu.c:523: warning: implicit declaration of function ‘curs_set’ main-gcu.c: In function ‘Term_curs_gcu’: main-gcu.c:566: error: ‘term_data’ has no member named ‘win’ main-gcu.c: In function ‘Term_wipe_gcu’: main-gcu.c:583: error: ‘term_data’ has no member named ‘win’ main-gcu.c:588: warning: implicit declaration of function ‘wclrtoeol’ main-gcu.c:588: error: ‘term_data’ has no member named ‘win’ main-gcu.c:598: warning: implicit declaration of function ‘waddstr’ main-gcu.c:598: error: ‘term_data’ has no member named ‘win’ main-gcu.c: In function ‘Term_text_gcu’: main-gcu.c:620: error: ‘term_data’ has no member named ‘win’ main-gcu.c:626: error: ‘term_data’ has no member named ‘win’ main-gcu.c: In function ‘term_data_init_gcu’: main-gcu.c:648: error: ‘term_data’ has no member named ‘win’ main-gcu.c:648: warning: implicit declaration of function ‘newwin’ main-gcu.c:651: error: ‘term_data’ has no member named ‘win’ main-gcu.c: In function ‘init_gcu’: main-gcu.c:712: error: ‘bool’ undeclared (first use in this function) main-gcu.c:712: error: expected ‘;’ before ‘use_big_screen’ main-gcu.c:720: error: ‘use_big_screen’ undeclared (first use in this function) main-gcu.c:732: warning: implicit declaration of function ‘initscr’ main-gcu.c:732: warning: comparison between pointer and integer main-gcu.c:738: error: ‘LINES’ undeclared (first use in this function) main-gcu.c:738: error: ‘COLS’ undeclared (first use in this function) main-gcu.c:822: error: ‘stdscr’ undeclared (first use in this function) make[2]: *** [main-gcu.o] Error 1 make[1]: *** [build] Error 2 make: *** [build] Error 2 tomek@tomek:~/Desktop/DaJAngband1093$
Comment
-
sdl and gtk. Those are foreign to me...
Also, should I be able to just type dajangband into the terminal to start it up? I'm getting a lot of errors when running make and make install, so I don't know if that's normal or something is wrong.
Here's what happens when I run make:
Code:tomek@tomek:~/Desktop/DaJAngband1093$ make CC main-gcu.c In file included from angband.h:33, from main-gcu.c:39: defines.h:1845:41: warning: "/*" within comment In file included from angband.h:37, from main-gcu.c:39: externs.h:524:48: warning: "/*" within comment main-gcu.c:63:22: error: ncurses.h: No such file or directory main-gcu.c:132: error: expected specifier-qualifier-list before ‘WINDOW’ main-gcu.c: In function ‘Term_xtra_gcu_alive’: main-gcu.c:279: warning: implicit declaration of function ‘nocbreak’ main-gcu.c:280: warning: implicit declaration of function ‘echo’ main-gcu.c:281: warning: implicit declaration of function ‘nl’ main-gcu.c:287: warning: implicit declaration of function ‘refresh’ main-gcu.c:290: warning: implicit declaration of function ‘getyx’ main-gcu.c:290: error: ‘curscr’ undeclared (first use in this function) main-gcu.c:290: error: (Each undeclared identifier is reported only once main-gcu.c:290: error: for each function it appears in.) main-gcu.c:293: warning: implicit declaration of function ‘mvcur’ main-gcu.c:293: error: ‘LINES’ undeclared (first use in this function) main-gcu.c:296: warning: implicit declaration of function ‘endwin’ main-gcu.c:310: warning: implicit declaration of function ‘cbreak’ main-gcu.c:311: warning: implicit declaration of function ‘noecho’ main-gcu.c:312: warning: implicit declaration of function ‘nonl’ main-gcu.c: In function ‘Term_init_gcu’: main-gcu.c:341: warning: implicit declaration of function ‘wrefresh’ main-gcu.c:341: error: ‘stdscr’ undeclared (first use in this function) main-gcu.c:347: warning: implicit declaration of function ‘wclear’ main-gcu.c:347: error: ‘term_data’ has no member named ‘win’ main-gcu.c:350: warning: implicit declaration of function ‘wmove’ main-gcu.c:350: error: ‘term_data’ has no member named ‘win’ main-gcu.c:353: error: ‘term_data’ has no member named ‘win’ main-gcu.c: In function ‘Term_nuke_gcu’: main-gcu.c:369: warning: implicit declaration of function ‘delwin’ main-gcu.c:369: error: ‘term_data’ has no member named ‘win’ main-gcu.c:383: error: ‘curscr’ undeclared (first use in this function) main-gcu.c:386: error: ‘LINES’ undeclared (first use in this function) main-gcu.c: In function ‘Term_xtra_gcu_event’: main-gcu.c:415: warning: implicit declaration of function ‘nodelay’ main-gcu.c:415: error: ‘stdscr’ undeclared (first use in this function) main-gcu.c:418: warning: implicit declaration of function ‘getch’ main-gcu.c:421: error: ‘ERR’ undeclared (first use in this function) main-gcu.c: In function ‘Term_xtra_gcu’: main-gcu.c:505: warning: implicit declaration of function ‘touchwin’ main-gcu.c:505: error: ‘term_data’ has no member named ‘win’ main-gcu.c:506: error: ‘term_data’ has no member named ‘win’ main-gcu.c:516: error: ‘term_data’ has no member named ‘win’ main-gcu.c:523: warning: implicit declaration of function ‘curs_set’ main-gcu.c: In function ‘Term_curs_gcu’: main-gcu.c:566: error: ‘term_data’ has no member named ‘win’ main-gcu.c: In function ‘Term_wipe_gcu’: main-gcu.c:583: error: ‘term_data’ has no member named ‘win’ main-gcu.c:588: warning: implicit declaration of function ‘wclrtoeol’ main-gcu.c:588: error: ‘term_data’ has no member named ‘win’ main-gcu.c:598: warning: implicit declaration of function ‘waddstr’ main-gcu.c:598: error: ‘term_data’ has no member named ‘win’ main-gcu.c: In function ‘Term_text_gcu’: main-gcu.c:620: error: ‘term_data’ has no member named ‘win’ main-gcu.c:626: error: ‘term_data’ has no member named ‘win’ main-gcu.c: In function ‘term_data_init_gcu’: main-gcu.c:648: error: ‘term_data’ has no member named ‘win’ main-gcu.c:648: warning: implicit declaration of function ‘newwin’ main-gcu.c:651: error: ‘term_data’ has no member named ‘win’ main-gcu.c: In function ‘init_gcu’: main-gcu.c:712: error: ‘bool’ undeclared (first use in this function) main-gcu.c:712: error: expected ‘;’ before ‘use_big_screen’ main-gcu.c:720: error: ‘use_big_screen’ undeclared (first use in this function) main-gcu.c:732: warning: implicit declaration of function ‘initscr’ main-gcu.c:732: warning: comparison between pointer and integer main-gcu.c:738: error: ‘LINES’ undeclared (first use in this function) main-gcu.c:738: error: ‘COLS’ undeclared (first use in this function) main-gcu.c:822: error: ‘stdscr’ undeclared (first use in this function) make[2]: *** [main-gcu.o] Error 1 make[1]: *** [build] Error 2 make: *** [build] Error 2 tomek@tomek:~/Desktop/DaJAngband1093$
takkaria whispers something about options. -more-Comment
-
Sorry, I really don't know anything about Linux. Is there a file I can copy from Angband 3.0.9b so people don't have this problem in future versions of DaJAngband?
PS thanks for playingWill_Asher
aka LibraryAdventurer
My old variant DaJAngband:
http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...)Comment
-
I've been playing it through Wine so far, and it's a really nice mod. The modified shop system really made me change my play style.Comment
-
Code:tomek@tomek:~/Desktop/DaJAngband1093$ make install /usr/bin/install: cannot change permissions of `/usr/local/include/angband': No such file or directory make: *** [install] Error 1 tomek@tomek:~/Desktop/DaJAngband1093$
Comment
-
Hm. That used to happen to me with V, but DaJ worked OK. The quick workaround is copy angband (which is what the binary is called) from the src directory up one, then run it form there.One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.Comment
-
KevinComment
-
Well Okay, I got it to run, but I was hoping to make it so I can just type dajangband anywhere in the terminal and get it to run. That's how angband is set up, among other apps.Comment
Comment