Ubuntu GTK or X11 for draggable windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • frozenxis
    Rookie
    • Mar 2020
    • 6

    Ubuntu GTK or X11 for draggable windows

    Hi guys!

    My first interaction with this game was thru
    Code:
    sudo apt-get install -y angband
    this had a standalone clickable file that could run the game and opened an interface that had clickable menus and draggable windows.

    I played a few hours before I discovered that v4.2.0 was out and I had 3.2.0. I uninstalled 3.2.0, downloaded the tar.gz from rephial and tried to compile. This "compile" process is not something that I am used to, so I think I'm not doing something right.

    I spent the last 3 days trying to run the game with draggable windows. if I run
    Code:
    $ angband -h
    .
    .
    -m<sys>        Use module <sys>, where <sys> can be:
         gcu   Text mode, subopts
                  -a     Use ASCII walls
                  -B     Use brighter bold characters
                  -nN    Use N terminals (up to 6)
    I only see "gcu" as an option to run.
    If I had more modules, they would appear here in the help?

    If I try -mgtk or -mx11 I get:
    Code:
    angband: Unable to prepare any 'display module'!
    Running with -mgcu works... but I liked the draggable windows. I searched a lot on google and this forums but no luck so far.

    Do you have any tips for me on how to run Angband 4.2.0 the same way it ran when I installed 3.2.0 from apt-get? Or some commands related to gtk or x11 to make angband use them?

    Thank you and sorry for my low technical knowledge.
  • frozenxis
    Rookie
    • Mar 2020
    • 6

    #2
    how I installed it?

    Code:
    ./autogen.sh
    ./configure
    make
    sudo make install
    I also installed different libraries on my make-it-work rage )

    Code:
    libncurses5 libncurses5-dev libx11-dev  libgtk-3-dev  libsdl1.2-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev libsdl-image1.2-dev autoconf gcc libc6-dev libsdl2-dev

    Comment

    • Pete Mack
      Prophet
      • Apr 2007
      • 6883

      #3
      You need to run
      $ ./angband -mgcu
      Which will give you bare bones curses mode (default build.)

      If you want graphics, you need to configure it.

      Comment

      • frozenxis
        Rookie
        • Mar 2020
        • 6

        #4
        Originally posted by Pete Mack
        You need to run
        $ ./angband -mgcu
        Which will give you bare bones curses mode (default build.)

        If you want graphics, you need to configure it.
        Hi, thanks for the quick reply. I don't want graphics, I am super ok with ASCII. I just want draggable windows. -mgcu is how I run the game now in my ubuntu terminal. How do I run with different -m options?

        Comment

        • moosferatu
          Apprentice
          • Feb 2020
          • 99

          #5
          I don't use Ubuntu, but try:

          Code:
          make clean
          ./configure --with-no-install --enable-sdl2
          make
          cp src/angband .
          ./angband -msdl2
          If it still doesn't work, post the end results of the configure command, which should say Yes or No about whether X11, GCU, SDL, etc are supported. You might be missing some libraries.

          Comment

          • moosferatu
            Apprentice
            • Feb 2020
            • 99

            #6
            Looking back at what you posted earlier it looks like you installed some of the SDL libraries. Personally, I think the SDL2 version is better (though, I GCU best...) and would recommend installing the SDL2-devel libraries to build that version.

            Core SDL2 libs:

            libsdl2-dev
            libsdl2-ttf-dev
            libsdl2-image-dev
            libsdl2-gfx-dev


            If you want sound:

            libsdl2-mixer-dev
            Last edited by moosferatu; March 31, 2020, 17:24.

            Comment

            • frozenxis
              Rookie
              • Mar 2020
              • 6

              #7
              Code:
              libsdl2-dev is already the newest version (2.0.10+dfsg1-1ubuntu1).
              Code:
              $ angband -msdl2
              angband: Unable to prepare any 'display module'!

              Comment

              • moosferatu
                Apprentice
                • Feb 2020
                • 99

                #8
                You need the ./ before your angband command to run the version you just built. Otherwise, you're running the one that was installed by your package manager.

                Comment

                • frozenxis
                  Rookie
                  • Mar 2020
                  • 6

                  #9
                  Originally posted by moosferatu
                  I don't use Ubuntu, but try:

                  Code:
                  make clean
                  ./configure --with-no-install --enable-sdl2
                  make
                  cp src/angband .
                  ./angband -msdl2
                  If it still doesn't work, post the end results of the configure command, which should say Yes or No about whether X11, GCU, SDL, etc are supported. You might be missing some libraries.
                  this works after I installed the libraries you listed. thank you.
                  Now I have x11, sdl and gcu. Any ideas hot to run in gtk or it's not possible in Ubuntu?

                  Comment

                  • moosferatu
                    Apprentice
                    • Feb 2020
                    • 99

                    #10
                    The steps I gave you are for running it out of the source directory. You can install it at the system level too if your remove the --with-no-install flag and execute make install after running make. However, you probably want to make sure that you've removed the version of Angband you installed from apt-get first before installing your compiled version. Then, you should be able to use the angband command that's on your path.

                    There is no gtk frontend. curses, x11, sdl, sdl2, or the Windows version through Wine are your options.

                    Comment

                    • frozenxis
                      Rookie
                      • Mar 2020
                      • 6

                      #11
                      thanks @moosferatu, your explanation actually made sense in my head
                      Do you have a list of libraries to install for making the curses frontend also work? I figure after that I should be able to use something like ./angband -mcurses ?

                      Comment

                      • moosferatu
                        Apprentice
                        • Feb 2020
                        • 99

                        #12
                        curses==GCU

                        It's the one you've already seen with -mgcu.

                        Comment

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