Author Topic: Compiling Angband  (Read 29724 times)

Reverend Prohna

  • Newcomer
  • Posts: 35
  • Karma: +0/-0
  • Praise "Bob"!
    • View Profile
    • The Church of the Subgenius
    • Email
Compiling Angband
« on: January 11, 2008, 05:47:34 AM »
has anyone ever actually tried to do it? it seems like every variant ive looked at so far has the same compiling instructions. me being new to *nix i cant seem to figure them out. it says to edit the makefile before you do "make install" how am i supposed to know what to edit in what makefile? theres like 13 makefiles in the steamband sources alone.
"I'd rather be lucky than good at something anyday!"

            -J.R. "Bob" Dobbs

Adral

  • Rogueliker
  • ***
  • Posts: 134
  • Karma: +0/-0
  • The Hammer of Justice
    • View Profile
Re: Compiling Angband
« Reply #1 on: January 11, 2008, 11:03:39 AM »
I'd like to help you, but I would need some more information about your system, the particular variant you are trying to complie, etc.

Usually you just need to do
$make -fmakefilenameforyoursystem
and then if you want the game to be installed on the system. You can play only with compiling, though.
$make install
or maybe
$sudo make install
if you are on a Debian-based distro.
Also,
$make -fmakefilenameforyoursystem clean
deletes all compiled archives if you wish to remove them or recompile them.

The makeflie usually is Makefile.std, Makefile.unix or something like that. If you happen to miss some libraries, and you are on Debian or Ubuntu, you can always install them with a few clicks from the repositories.
On the wings of the storm.

Anvilfolk

  • Rogueliker
  • ***
  • Posts: 374
  • Karma: +0/-0
    • View Profile
Re: Compiling Angband
« Reply #2 on: January 11, 2008, 03:17:47 PM »
Howdy!

Can't help you directly, but here's a really simple tutorial (seems longer than it is, just check the size of each part) that might help you: http://www.eng.hawaii.edu/Tutor/Make/

Plus, it's in Hawaii!
"Get it hot! Hit it harder!!!"
 - The tutor warcry

One of They Who Are Too Busy

Reverend Prohna

  • Newcomer
  • Posts: 35
  • Karma: +0/-0
  • Praise "Bob"!
    • View Profile
    • The Church of the Subgenius
    • Email
Re: Compiling Angband
« Reply #3 on: January 12, 2008, 06:10:24 AM »
prohna@Hannis:~/Steamband 0.4.0 SRC/src$ sudo make install
make: *** No rule to make target `install'.  Stop.

prohna@Hannis:~/Steamband 0.4.0 SRC/src$ sudo make Makefile.gtk
make: Nothing to be done for `Makefile.gtk'.
"I'd rather be lucky than good at something anyday!"

            -J.R. "Bob" Dobbs

Reverend Prohna

  • Newcomer
  • Posts: 35
  • Karma: +0/-0
  • Praise "Bob"!
    • View Profile
    • The Church of the Subgenius
    • Email
Re: Compiling Angband
« Reply #4 on: January 12, 2008, 06:37:39 AM »
see the compile for vanilla goes perfect. is it really hard or something to make this process work like vanilla does?
"I'd rather be lucky than good at something anyday!"

            -J.R. "Bob" Dobbs

Adral

  • Rogueliker
  • ***
  • Posts: 134
  • Karma: +0/-0
  • The Hammer of Justice
    • View Profile
Re: Compiling Angband
« Reply #5 on: January 12, 2008, 09:44:16 AM »
prohna@Hannis:~/Steamband 0.4.0 SRC/src$ sudo make install
make: *** No rule to make target `install'.  Stop.

prohna@Hannis:~/Steamband 0.4.0 SRC/src$ sudo make Makefile.gtk
make: Nothing to be done for `Makefile.gtk'.


You are missing the -f ;). Try:

$make -fMakefile.gtk

And let's see what happens.
On the wings of the storm.

Anvilfolk

  • Rogueliker
  • ***
  • Posts: 374
  • Karma: +0/-0
    • View Profile
Re: Compiling Angband
« Reply #6 on: January 12, 2008, 01:09:29 PM »
I don't think -f is necessary. What's that option? (not currently in linux)

I usually just type "make", and if there's a file named "Makefile", without extension, it compiles.
"Get it hot! Hit it harder!!!"
 - The tutor warcry

One of They Who Are Too Busy

Adral

  • Rogueliker
  • ***
  • Posts: 134
  • Karma: +0/-0
  • The Hammer of Justice
    • View Profile
Re: Compiling Angband
« Reply #7 on: January 12, 2008, 02:21:14 PM »
I don't think -f is necessary. What's that option? (not currently in linux)

I usually just type "make", and if there's a file named "Makefile", without extension, it compiles.

Exactly, that works if there is a file named Makefile or makefile (I don't know if MAKEFILE applies too), but if there are several makefiles to choose from, the -f option lets you specify which one to use. In Angband and variants, if I remember correctly, there are several makefiles, but all have a extension, so you have to select which one to use that way.

Hope that cleared it up ;)
On the wings of the storm.

Reverend Prohna

  • Newcomer
  • Posts: 35
  • Karma: +0/-0
  • Praise "Bob"!
    • View Profile
    • The Church of the Subgenius
    • Email
Re: Compiling Angband
« Reply #8 on: January 13, 2008, 09:01:37 PM »
Alright the -f option was a step in the right direction but now i get a bunch of errors. im assuming theres something thats either not installed or not installed correctly thats needed to compile but im not sure what it is.

Ubuntu Hardy Heron

gcc -Wall -O `gtk-config --cflags` -D"USE_GTK" -g   -c -o z-util.o z-util.c
/bin/sh: gtk-config: not found
gcc -Wall -O `gtk-config --cflags` -D"USE_GTK" -g   -c -o z-virt.o z-virt.c
/bin/sh: gtk-config: not found
gcc -Wall -O `gtk-config --cflags` -D"USE_GTK" -g   -c -o z-form.o z-form.c
/bin/sh: gtk-config: not found
i get a bunch of that

object2.c:5184: warning: ‘x_empty’ may be used uninitialized in this function
object2.c:5184: warning: ‘y_empty’ may be used uninitialized in this function
object2.c:5181: warning: ‘x_comb’ may be used uninitialized in this function
object2.c:5181: warning: ‘y_comb’ may be used uninitialized in this function
followed by this

main-gtk.c:18:21: error: gtk/gtk.h: No such file or directory
main-gtk.c:19:28: error: gdk/gdkkeysyms.h: No such file or directory
main-gtk.c:45: error: expected specifier-qualifier-list before ‘GtkWidget’
main-gtk.c: In function ‘Term_clear_gtk’:
main-gtk.c:87: warning: implicit declaration of function ‘g_assert’
main-gtk.c:87: error: ‘term_data’ has no member named ‘pixmap’
main-gtk.c:88: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:91: warning: implicit declaration of function ‘gdk_window_get_size’
main-gtk.c:91: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:94: warning: implicit declaration of function ‘gdk_draw_rectangle’
main-gtk.c:94: error: ‘term_data’ has no member named ‘pixmap’
main-gtk.c:94: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:98: warning: implicit declaration of function ‘gdk_draw_pixmap’
main-gtk.c:98: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:98: error: ‘term_data’ has no member named ‘gc’
main-gtk.c:98: error: ‘term_data’ has no member named ‘pixmap’
main-gtk.c: In function ‘Term_wipe_gtk’:
main-gtk.c:113: error: ‘term_data’ has no member named ‘pixmap’
main-gtk.c:114: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:116: error: ‘term_data’ has no member named ‘pixmap’
main-gtk.c:116: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:117: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:117: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c:118: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:118: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c:121: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:121: error: ‘term_data’ has no member named ‘gc’
main-gtk.c:121: error: ‘term_data’ has no member named ‘pixmap’
main-gtk.c:122: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:122: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c:123: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:123: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c:124: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:124: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c: In function ‘set_foreground_color’:
main-gtk.c:138: error: ‘GdkColor’ undeclared (first use in this function)
main-gtk.c:138: error: (Each undeclared identifier is reported only once
main-gtk.c:138: error: for each function it appears in.)
main-gtk.c:138: error: expected ‘;’ before ‘color’
main-gtk.c:140: error: ‘color’ undeclared (first use in this function)
main-gtk.c:144: error: ‘term_data’ has no member named ‘pixmap’
main-gtk.c:145: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:147: warning: implicit declaration of function ‘gdk_colormap_alloc_color’
main-gtk.c:147: warning: implicit declaration of function ‘gdk_colormap_get_system’
main-gtk.c:148: warning: implicit declaration of function ‘gdk_gc_set_foreground’
main-gtk.c:148: error: ‘term_data’ has no member named ‘gc’
main-gtk.c:150: warning: implicit declaration of function ‘g_print’
main-gtk.c: In function ‘Term_text_gtk’:
main-gtk.c:170: warning: implicit declaration of function ‘gdk_draw_text’
main-gtk.c:170: error: ‘term_data’ has no member named ‘pixmap’
main-gtk.c:170: error: ‘term_data’ has no member named ‘font’
main-gtk.c:170: error: ‘term_data’ has no member named ‘gc’
main-gtk.c:171: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:172: error: ‘term_data’ has no member named ‘font’
main-gtk.c:172: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c:177: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:177: error: ‘term_data’ has no member named ‘gc’
main-gtk.c:177: error: ‘term_data’ has no member named ‘pixmap’
main-gtk.c:178: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:178: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c:179: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:179: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c:180: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:180: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c: In function ‘CheckEvent’:
main-gtk.c:191: warning: implicit declaration of function ‘gtk_main_iteration’
main-gtk.c:195: warning: implicit declaration of function ‘gtk_events_pending’
main-gtk.c: In function ‘Term_curs_gtk’:
main-gtk.c:259: error: ‘term_data’ has no member named ‘pixmap’
main-gtk.c:259: error: ‘term_data’ has no member named ‘gc’
main-gtk.c:260: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:260: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c:260: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:260: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c:263: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:263: error: ‘term_data’ has no member named ‘gc’
main-gtk.c:263: error: ‘term_data’ has no member named ‘pixmap’
main-gtk.c:264: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:264: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c:265: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:265: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c:266: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:266: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c: In function ‘hook_quit’:
main-gtk.c:300: warning: implicit declaration of function ‘gtk_exit’
main-gtk.c: At top level:
main-gtk.c:304: error: expected ‘)’ before ‘*’ token
main-gtk.c:312: error: expected ‘)’ before ‘*’ token
main-gtk.c:318: error: expected ‘)’ before ‘*’ token
main-gtk.c:324: error: expected ‘)’ before ‘*’ token
main-gtk.c: In function ‘load_font’:
main-gtk.c:342: error: ‘term_data’ has no member named ‘font’
main-gtk.c:342: warning: implicit declaration of function ‘gdk_font_load’
main-gtk.c:345: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:345: warning: implicit declaration of function ‘gdk_char_width’
main-gtk.c:345: error: ‘term_data’ has no member named ‘font’
main-gtk.c:346: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c:346: error: ‘term_data’ has no member named ‘font’
main-gtk.c:346: error: ‘term_data’ has no member named ‘font’
main-gtk.c: At top level:
main-gtk.c:350: error: expected ‘)’ before ‘*’ token
main-gtk.c:365: error: expected ‘)’ before ‘*’ token
main-gtk.c:396: error: expected ‘)’ before ‘*’ token
main-gtk.c:412: error: expected ‘)’ before ‘*’ token
main-gtk.c:446: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘delete_event_handler’
main-gtk.c:455: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘keypress_event_handler’
main-gtk.c:569: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘expose_event_handler’
main-gtk.c: In function ‘term_data_init’:
main-gtk.c:607: error: ‘term_data’ has no member named ‘cols’
main-gtk.c:608: error: ‘term_data’ has no member named ‘rows’
main-gtk.c:611: error: ‘term_data’ has no member named ‘cols’
main-gtk.c:611: error: ‘term_data’ has no member named ‘rows’
main-gtk.c:614: error: ‘term_data’ has no member named ‘name’
main-gtk.c: In function ‘init_gtk_window’:
main-gtk.c:646: error: ‘GtkWidget’ undeclared (first use in this function)
main-gtk.c:646: error: ‘menu_bar’ undeclared (first use in this function)
main-gtk.c:646: error: ‘file_item’ undeclared (first use in this function)
main-gtk.c:646: warning: left-hand operand of comma expression has no effect
main-gtk.c:646: error: ‘file_menu’ undeclared (first use in this function)
main-gtk.c:646: warning: left-hand operand of comma expression has no effect
main-gtk.c:646: error: ‘box’ undeclared (first use in this function)
main-gtk.c:646: warning: left-hand operand of comma expression has no effect
main-gtk.c:647: error: ‘seperator_item’ undeclared (first use in this function)
main-gtk.c:647: error: ‘file_exit_item’ undeclared (first use in this function)
main-gtk.c:647: warning: left-hand operand of comma expression has no effect
main-gtk.c:647: error: ‘file_new_item’ undeclared (first use in this function)
main-gtk.c:647: warning: left-hand operand of comma expression has no effect
main-gtk.c:647: error: ‘file_open_item’ undeclared (first use in this function)
main-gtk.c:647: warning: left-hand operand of comma expression has no effect
main-gtk.c:648: error: ‘options_item’ undeclared (first use in this function)
main-gtk.c:648: error: ‘options_menu’ undeclared (first use in this function)
main-gtk.c:648: warning: left-hand operand of comma expression has no effect
main-gtk.c:648: error: ‘options_font_item’ undeclared (first use in this function)
main-gtk.c:648: warning: left-hand operand of comma expression has no effect
main-gtk.c:656: error: ‘term_data’ has no member named ‘window’
main-gtk.c:656: warning: implicit declaration of function ‘gtk_window_new’
main-gtk.c:656: error: ‘GTK_WINDOW_TOPLEVEL’ undeclared (first use in this function)
main-gtk.c:657: warning: implicit declaration of function ‘gtk_vbox_new’
main-gtk.c:658: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:658: warning: implicit declaration of function ‘gtk_drawing_area_new’
main-gtk.c:661: warning: implicit declaration of function ‘gtk_window_set_title’
main-gtk.c:661: warning: implicit declaration of function ‘GTK_WINDOW’
main-gtk.c:661: error: ‘term_data’ has no member named ‘window’
main-gtk.c:661: error: ‘term_data’ has no member named ‘name’
main-gtk.c:662: warning: implicit declaration of function ‘gtk_drawing_area_size’
main-gtk.c:662: warning: implicit declaration of function ‘GTK_DRAWING_AREA’
main-gtk.c:662: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:662: error: ‘term_data’ has no member named ‘cols’
main-gtk.c:662: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:662: error: ‘term_data’ has no member named ‘rows’
main-gtk.c:662: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c:664: warning: implicit declaration of function ‘gtk_signal_connect’
main-gtk.c:664: warning: implicit declaration of function ‘GTK_OBJECT’
main-gtk.c:664: error: ‘term_data’ has no member named ‘window’
main-gtk.c:664: warning: implicit declaration of function ‘GTK_SIGNAL_FUNC’
main-gtk.c:664: error: ‘delete_event_handler’ undeclared (first use in this function)
main-gtk.c:665: error: ‘term_data’ has no member named ‘window’
main-gtk.c:665: error: ‘keypress_event_handler’ undeclared (first use in this function)
main-gtk.c:666: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:666: error: ‘expose_event_handler’ undeclared (first use in this function)
main-gtk.c:669: error: ‘term_data’ has no member named ‘window’
main-gtk.c:669: error: ‘destroy_event_handler’ undeclared (first use in this function)
main-gtk.c:671: error: ‘term_data’ has no member named ‘window’
main-gtk.c:671: error: ‘hide_event_handler’ undeclared (first use in this function)
main-gtk.c:673: warning: implicit declaration of function ‘gtk_container_add’
main-gtk.c:673: warning: implicit declaration of function ‘GTK_CONTAINER’
main-gtk.c:673: error: ‘term_data’ has no member named ‘window’
main-gtk.c:679: warning: implicit declaration of function ‘gtk_menu_bar_new’
main-gtk.c:680: warning: implicit declaration of function ‘gtk_menu_item_new_with_label’
main-gtk.c:681: warning: implicit declaration of function ‘gtk_menu_new’
main-gtk.c:684: warning: implicit declaration of function ‘gtk_menu_item_new’
main-gtk.c:691: error: ‘quit_event_handler’ undeclared (first use in this function)
main-gtk.c:692: error: ‘new_event_handler’ undeclared (first use in this function)
main-gtk.c:693: error: ‘open_event_handler’ undeclared (first use in this function)
main-gtk.c:694: error: ‘change_font_event_handler’ undeclared (first use in this function)
main-gtk.c:697: warning: implicit declaration of function ‘gtk_menu_bar_append’
main-gtk.c:697: warning: implicit declaration of function ‘GTK_MENU_BAR’
main-gtk.c:699: warning: implicit declaration of function ‘gtk_menu_item_set_submenu’
main-gtk.c:699: warning: implicit declaration of function ‘GTK_MENU_ITEM’
main-gtk.c:701: warning: implicit declaration of function ‘gtk_menu_append’
main-gtk.c:701: warning: implicit declaration of function ‘GTK_MENU’
main-gtk.c:708: warning: implicit declaration of function ‘gtk_box_pack_start’
main-gtk.c:708: warning: implicit declaration of function ‘GTK_BOX’
main-gtk.c:712: warning: implicit declaration of function ‘gtk_box_pack_start_defaults’
main-gtk.c:712: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:715: warning: implicit declaration of function ‘gtk_widget_show_all’
main-gtk.c:715: error: ‘term_data’ has no member named ‘window’
main-gtk.c:718: error: ‘term_data’ has no member named ‘pixmap’
main-gtk.c:718: warning: implicit declaration of function ‘gdk_pixmap_new’
main-gtk.c:718: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:718: error: ‘term_data’ has no member named ‘cols’
main-gtk.c:718: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:718: error: ‘term_data’ has no member named ‘rows’
main-gtk.c:718: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c:719: warning: implicit declaration of function ‘gtk_object_set_data’
main-gtk.c:719: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:719: error: ‘term_data’ has no member named ‘pixmap’
main-gtk.c:720: error: ‘term_data’ has no member named ‘gc’
main-gtk.c:720: warning: implicit declaration of function ‘gdk_gc_new’
main-gtk.c:720: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:723: error: ‘term_data’ has no member named ‘pixmap’
main-gtk.c:723: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:725: error: ‘term_data’ has no member named ‘cols’
main-gtk.c:725: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:725: error: ‘term_data’ has no member named ‘rows’
main-gtk.c:725: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c:728: error: ‘term_data’ has no member named ‘drawing_area’
main-gtk.c:728: error: ‘term_data’ has no member named ‘gc’
main-gtk.c:728: error: ‘term_data’ has no member named ‘pixmap’
main-gtk.c:730: error: ‘term_data’ has no member named ‘cols’
main-gtk.c:730: error: ‘term_data’ has no member named ‘font_wid’
main-gtk.c:730: error: ‘term_data’ has no member named ‘rows’
main-gtk.c:730: error: ‘term_data’ has no member named ‘font_hgt’
main-gtk.c: In function ‘init_gtk’:
main-gtk.c:746: warning: implicit declaration of function ‘gtk_init’
main-gtk.c:800: warning: implicit declaration of function ‘gtk_main’
make: *** [main-gtk.o] Error 1
"I'd rather be lucky than good at something anyday!"

            -J.R. "Bob" Dobbs

Anvilfolk

  • Rogueliker
  • ***
  • Posts: 374
  • Karma: +0/-0
    • View Profile
Re: Compiling Angband
« Reply #9 on: January 13, 2008, 09:24:51 PM »
Well, the error seems to be GTK related: it can't find gtk-config

I ran a google search on "gtk-config ubuntu", and here's one of the first links: http://ubuntuforums.org/showthread.php?t=54308

It's a bit old, so I suggesting using the package manager to find out the latest version of the library they're suggesting! Googling and ubuntuforums.org is the way to go! ;)
"Get it hot! Hit it harder!!!"
 - The tutor warcry

One of They Who Are Too Busy

Adral

  • Rogueliker
  • ***
  • Posts: 134
  • Karma: +0/-0
  • The Hammer of Justice
    • View Profile
Re: Compiling Angband
« Reply #10 on: January 13, 2008, 09:38:47 PM »
Googling and ubuntuforums.org is the way to go! ;)

Quoted for truth, really.

You should be able to install gtk-config via synaptic or adept. But be aware that Steamband comes with lots of errors, I recall having a hard time compiling it. Other variants present no problems, though.
On the wings of the storm.

Reverend Prohna

  • Newcomer
  • Posts: 35
  • Karma: +0/-0
  • Praise "Bob"!
    • View Profile
    • The Church of the Subgenius
    • Email
Re: Compiling Angband
« Reply #11 on: January 14, 2008, 02:49:50 AM »
you see what i mean though? vanilla angband is ready with a configure file and compiles perfect. do the devs of variants just not care or is it really hard to set this up? infact they all just copy paste the same help file on compiling.
"I'd rather be lucky than good at something anyday!"

            -J.R. "Bob" Dobbs

Anvilfolk

  • Rogueliker
  • ***
  • Posts: 374
  • Karma: +0/-0
    • View Profile
Re: Compiling Angband
« Reply #12 on: January 14, 2008, 03:44:00 AM »
Maybe Vanilla doesn't use GTK, and it's a library the variant added, without bothering to update the config and makefile files? I find that odd though, GTK is a graphical library... why would they use a different one?
"Get it hot! Hit it harder!!!"
 - The tutor warcry

One of They Who Are Too Busy

Reverend Prohna

  • Newcomer
  • Posts: 35
  • Karma: +0/-0
  • Praise "Bob"!
    • View Profile
    • The Church of the Subgenius
    • Email
Re: Compiling Angband
« Reply #13 on: January 14, 2008, 06:41:59 AM »
* Reverend Prohna has no idea.
"I'd rather be lucky than good at something anyday!"

            -J.R. "Bob" Dobbs

Adral

  • Rogueliker
  • ***
  • Posts: 134
  • Karma: +0/-0
  • The Hammer of Justice
    • View Profile
Re: Compiling Angband
« Reply #14 on: January 14, 2008, 09:10:48 AM »
you see what i mean though? vanilla angband is ready with a configure file and compiles perfect. do the devs of variants just not care or is it really hard to set this up? infact they all just copy paste the same help file on compiling.

Sometimes they care so little I have had to edit their makefiles to *add all the source objects that were mising*. I mean, sometimes they just, as you say, copy/paste the original and not change whatever is needed to compile their new variant.

Since I understand little from makefiles and all that, I usually check the sources part and see if something is missing, then add it, and remove the sources which are not used in the variant. If there are more compilation errors I usually don't bother.

You can always try to either a) wine the variant or b) compile with another makefile. I think it is Makefile.std which sometimes works.
On the wings of the storm.