PDA

View Full Version : Is the GTK port broken?


PaulBlay
April 22, 2009, 01:29
Er, still a Windows user so I wouldn't know myself directly but my partner in crime on Angband/65 says that it doesn't compile when you select 'enable gtk'.

My 'gtk' code is currently unchanged from Vanilla Angband so if mine doesn't compile possibly yours won't either?

The following are the approximate error messages (translated from Japanese).

> gtk/main-gtk.c: In function `init_handlers':
> gtk/main-gtk.c:2625: error: `get_game_command' is not defined (first used in this function)
> gtk/main-gtk.c: In function `init_gtk':
> gtk/main-gtk.c:2731: implicit definition of function `init_display'

amoeba801
April 22, 2009, 03:10
I have just a few hours ago built a GTK version of Angband 3.1.0 beta which runs successfully in GTK mode with tiles enabled. This is on 386 architecture with 32-bit Ubuntu 8.10:

./configure --prefix=$HOME/dev/angband-3.1.0beta/ --with-libpath=$HOME/dev/angband-3.1.0beta/lib/ --enable-x11 --enable-gtk --enable-sdl -with-x

My only problems were in installing the right GTK libraries prior to compile. I would write a howto, except I'm not sure of what I installed is what I needed (libgkt2.0-dev, libglade2-dev, etc).

PaulBlay
April 22, 2009, 06:51
Ah, sorry, I should have specified that I was talking about the 3.1.1 dev code.

Magnate
April 22, 2009, 10:39
Ah, sorry, I should have specified that I was talking about the 3.1.1 dev code.I'm not aware of the gtk code being broken in trunk - but if the wizard(s) who look after it were to pop up in this thread I have some questions of my own ...

I just tried to compile it myself, but libgtk2.0-dev will not install on Debian Lenny. Off to file a bug about this if it hasn't been done already ...

Magnate
April 22, 2009, 21:29
The following are the approximate error messages (translated from Japanese).

> gtk/main-gtk.c: In function `init_handlers':
> gtk/main-gtk.c:2625: error: `get_game_command' is not defined (first used in this function)
> gtk/main-gtk.c: In function `init_gtk':
> gtk/main-gtk.c:2731: implicit definition of function `init_display'I can now confirm that I get these errors when compiling r1373 with --enable-gtk

....

ajps
April 22, 2009, 23:25
Fixed in svn now.

PaulBlay
April 22, 2009, 23:34
Fixed in svn now.

Yup, thanks. Spotted that a short while ago and have already 'borrowed' the code for my variant in development. :D