Compiling on lubuntu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • invisibletroll
    Apprentice
    • Jul 2020
    • 50

    #16
    Originally posted by fph
    That's quite strange; none of these facts should have an impact. If `configure` finds all the required headers and confirms in the final messages that the SDL2 support is going to be included in the build, then it means it should be supported, no matter what distro or architecture you are using. That's precisely the job of a configure script, to confirm that all the required libraries and dependencies are there.

    Be sure that you have rebuilt everything after the last configuration change: `./configure --with-your-favorite-options` followed by `make clean` and `make` just to be 200% sure you rebuild everything from scratch.
    Don't feed the troll.

    Comment

    • PopTart
      Apprentice
      • May 2017
      • 89

      #17
      So, I want to backup my character save file before doing this. I have run configure and confirmed that my character opens. Where is this character file saved? Configure states that it is in ~/.angband/Angband/ but it's not there.

      What is in that folder, incidentally, is my .prf file for my character and window.prf. The game remembers the keyboard shortcuts I created, and my subwindow setup, but not the location of the subwindows. And I have remembered to save the subwindow setup to my character's .prf file, and also to load the .prf file in the = menu, but it doesn't work. This is one of my main reasons for wanting to use SDL2.

      Anyway, where is my character file?
      Last edited by PopTart; December 22, 2020, 22:21.

      Comment

      • PopTart
        Apprentice
        • May 2017
        • 89

        #18
        Okay, found my savefile. Took me a while. That's what I get for naming my character Lubuntu!

        The game saves in a subdirectory within the original unzip directory. This is strange at first thought, but it explains why my saves have persisted through all these re-configures and re-makes.

        Comment

        • PopTart
          Apprentice
          • May 2017
          • 89

          #19
          Success!

          Success in getting the SDL2 version to run! Seems like the answer was

          make clean
          make
          sudo make install

          Comment

          • PopTart
            Apprentice
            • May 2017
            • 89

            #20
            The saga continues

            The mouse clicks aren't registering in any of the menus. They are registering in the main window of the game, bringing up options and moving the player character, but not the menus.

            I should be able to set up the subwindows by editing sdl2init.txt. Now to find a specification for it...
            Last edited by PopTart; December 23, 2020, 00:52.

            Comment

            • fph
              Veteran
              • Apr 2009
              • 1030

              #21
              Frankly I never touched that file because I can configure everything with my mouse. I don't have many ideas to solve the mouse-not-working issue, sorry.
              --
              Dive fast, die young, leave a high-CHA corpse.

              Comment

              • invisibletroll
                Apprentice
                • Jul 2020
                • 50

                #22
                Originally posted by PopTart
                The saga continues

                The mouse clicks aren't registering in any of the menus. They are registering in the main window of the game, bringing up options and moving the player character, but not the menus.

                I should be able to set up the subwindows by editing sdl2init.txt. Now to find a specification for it...
                The saga continues? You are a troublemaker.

                Comment

                • invisibletroll
                  Apprentice
                  • Jul 2020
                  • 50

                  #23
                  Originally posted by fph
                  Frankly I never touched that file because I can configure everything with my mouse. I don't have many ideas to solve the mouse-not-working issue, sorry.
                  Then we are shit out of luck. LOL GTFO!

                  Comment

                  • PopTart
                    Apprentice
                    • May 2017
                    • 89

                    #24
                    I experimented with sdl2init.txt, got it to display ascii fine, which is what I play with anyway.

                    Comment

                    • fph
                      Veteran
                      • Apr 2009
                      • 1030

                      #25
                      Lubuntu apparently uses Wayland, a different version of the Linux graphics stack: https://www.reddit.com/r/linux/comme...d_via_mir_for/ . This may be the reason why the support doesn't work too well; it is a much less tested combination.
                      --
                      Dive fast, die young, leave a high-CHA corpse.

                      Comment

                      • invisibletroll
                        Apprentice
                        • Jul 2020
                        • 50

                        #26
                        Originally posted by fph
                        Lubuntu apparently uses Wayland, a different version of the Linux graphics stack: https://www.reddit.com/r/linux/comme...d_via_mir_for/ . This may be the reason why the support doesn't work too well; it is a much less tested combination.
                        Compiles and runs on Lubuntu 20.04.

                        Code:
                        sudo apt install libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev
                        
                        make clean
                        ./autogen.sh
                        ./configure --enable-sdl --with-no-install
                        make
                        
                        src/angband -msdl

                        Comment

                        • invisibletroll
                          Apprentice
                          • Jul 2020
                          • 50

                          #27
                          Originally posted by PopTart
                          The saga continues

                          The mouse clicks aren't registering in any of the menus. They are registering in the main window of the game, bringing up options and moving the player character, but not the menus.

                          I should be able to set up the subwindows by editing sdl2init.txt. Now to find a specification for it...
                          Better to use SDL1. There's no benefit of using SDL2.

                          Comment

                          • invisibletroll
                            Apprentice
                            • Jul 2020
                            • 50

                            #28
                            Just another remark. If the SDL2 interface should work (with mouse support), it hasn't been tested on Ubuntu at all? But then raises another question. On what system it has been tested? And actually does the mouse work on any system? Nick should confirm this.

                            Comment

                            • Nick
                              Vanilla maintainer
                              • Apr 2007
                              • 9637

                              #29
                              Originally posted by invisibletroll
                              Just another remark. If the SDL2 interface should work (with mouse support), it hasn't been tested on Ubuntu at all? But then raises another question. On what system it has been tested? And actually does the mouse work on any system? Nick should confirm this.
                              Mouse certainly works on any system I've tested on.

                              SDL2 interface has an interesting history; it was written by someone who then left the community after having a fight with a couple of people. Some work has been put into it since, but not by me. Reports indicate it's mostly functional, but with some quirks.
                              One for the Dark Lord on his dark throne
                              In the Land of Mordor where the Shadows lie.

                              Comment

                              • fph
                                Veteran
                                • Apr 2009
                                • 1030

                                #30
                                Originally posted by invisibletroll
                                Just another remark. If the SDL2 interface should work (with mouse support), it hasn't been tested on Ubuntu at all? But then raises another question. On what system it has been tested? And actually does the mouse work on any system? Nick should confirm this.
                                I can confirm that the mouse support works on vanilla Ubuntu; I have been using it in many version combinations. However, Lubuntu is a different beast than most linuxes, because it uses Wayland instead of X as its graphics stack.
                                --
                                Dive fast, die young, leave a high-CHA corpse.

                                Comment

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