Is the GTK port broken?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PaulBlay
    Knight
    • Jan 2009
    • 657

    Is the GTK port broken?

    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'
    Currently turning (Angband) Japanese.
  • amoeba801
    Rookie
    • Apr 2009
    • 3

    #2
    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:
    Code:
    ./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).

    Comment

    • PaulBlay
      Knight
      • Jan 2009
      • 657

      #3
      Ah, sorry, I should have specified that I was talking about the 3.1.1 dev code.
      Currently turning (Angband) Japanese.

      Comment

      • Magnate
        Angband Devteam member
        • May 2007
        • 5110

        #4
        Originally posted by PaulBlay
        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 ...
        "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

        Comment

        • Magnate
          Angband Devteam member
          • May 2007
          • 5110

          #5
          Originally posted by PaulBlay
          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

          ....
          "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

          Comment

          • ajps
            Apprentice
            • May 2007
            • 50

            #6
            Fixed in svn now.

            Comment

            • PaulBlay
              Knight
              • Jan 2009
              • 657

              #7
              Originally posted by ajps
              Fixed in svn now.
              Yup, thanks. Spotted that a short while ago and have already 'borrowed' the code for my variant in development.
              Currently turning (Angband) Japanese.

              Comment

              Working...
              😀
              😂
              🥰
              😘
              🤢
              😎
              😞
              😡
              👍
              👎