Compiling NPP for Linux?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bandobras
    Knight
    • Apr 2007
    • 726

    Compiling NPP for Linux?

    Any idea how to compile the NPP SVN sources for Linux? No 'configure' to run and 'make -f Makefile.std' fails miserably. Also, a year ago the wonderful Tolkienian fonts didn't work under my Debian Linux --- do they work now for anybody?

    Thanks a lot.
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9636

    #2
    Originally posted by Bandobras
    Any idea how to compile the NPP SVN sources for Linux? No 'configure' to run and 'make -f Makefile.std' fails miserably. )
    I haven't compiled the svn, but I have 050BETA6 - although I can't remember now if I did anything unusual. I'll have a go at the svn when I get the chance.
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    • perost
      Scout
      • Aug 2008
      • 33

      #3
      I tried with the current SVN, and it got stuck when it couldn't find the header asm/page.h. I changed it to "/usr/lib/klibc/include/asm/page.h" which seemed to be the header it was looking for, but that's a really ugly hack. It compiled then at least (with the usual warnings that seems to plague angband-variants), but it won't run. Running it in X it complains that it must be run in a virtual terminal, and if I run it in the terminal it can't find a font that it needs (why it would need a font in the terminal is beyond me). The makefile also seems a bit dated, since it uses the /usr/X11R6/include path, which most modern linux distros with X.org don't have anymore. But the code is probably fine, it's just the makefile that needs to be updated.

      Edit: Btw, all the NPPAngband links on the variants page seems to be dead.

      Comment

      • Nick
        Vanilla maintainer
        • Apr 2007
        • 9636

        #4
        Originally posted by perost
        Btw, all the NPPAngband links on the variants page seems to be dead.
        See this thread.
        One for the Dark Lord on his dark throne
        In the Land of Mordor where the Shadows lie.

        Comment

        • Nick
          Vanilla maintainer
          • Apr 2007
          • 9636

          #5
          Compiles fine for me in kubuntu 8.04. I may have added some libraries to get beta 6 compiling in the first place, though.
          One for the Dark Lord on his dark throne
          In the Land of Mordor where the Shadows lie.

          Comment

          • pav
            Administrator
            • Apr 2007
            • 793

            #6
            Right, totally forgot about the download links. Should be fixed now. BTW compiles just fine with Makefile.std on my FreeBSD box.
            See the elves and everything! http://angband.oook.cz

            Comment

            • Bandobras
              Knight
              • Apr 2007
              • 726

              #7
              OK, thanks for the help, indeed. It turns out NPP has Linux framebuffer (plus XAW) turned on by default in Makefile.std, unlike UN and V, and I don't have the libraries. Fonts seem to work OK this time, too, after running compile_bdf_fonts.sh.

              Now, for a Brigand on small levels, with all quests on. I wonder about the race... After I die 50 times, a Mage, tomorrow, to try the new Mage spells in NPP.

              Edit: The 16x16 font is wonderful! I've always wanted a square font. Plus the accents... I only don't like the doors and walls that flicker on all the overclocked monitors I use, both CRT and LCD (with VGA connector). Anyway, we need it badly in Un!
              Last edited by Bandobras; October 22, 2008, 15:47.

              Comment

              • nekrotyrael
                Rookie
                • Jun 2009
                • 16

                #8
                Originally posted by perost
                I tried with the current SVN, and it got stuck when it couldn't find the header asm/page.h. I changed it to "/usr/lib/klibc/include/asm/page.h" which seemed to be the header it was looking for, but that's a really ugly hack. It compiled then at least (with the usual warnings that seems to plague angband-variants), but it won't run. Running it in X it complains that it must be run in a virtual terminal, and if I run it in the terminal it can't find a font that it needs (why it would need a font in the terminal is beyond me). The makefile also seems a bit dated, since it uses the /usr/X11R6/include path, which most modern linux distros with X.org don't have anymore. But the code is probably fine, it's just the makefile that needs to be updated.

                Edit: Btw, all the NPPAngband links on the variants page seems to be dead.
                I'm stuck there, too. Did you find a way around it? Couldn't even find the 10x20.bmp on google.

                Comment

                • Nick
                  Vanilla maintainer
                  • Apr 2007
                  • 9636

                  #9
                  Originally posted by nekrotyrael
                  I'm stuck there, too. Did you find a way around it? Couldn't even find the 10x20.bmp on google.
                  Are you using "make -fMakefile.std" in the src directory? It compiles for me, but i do have to edit the -DUSE_LFB out of Makefile.std.
                  One for the Dark Lord on his dark throne
                  In the Land of Mordor where the Shadows lie.

                  Comment

                  • nekrotyrael
                    Rookie
                    • Jun 2009
                    • 16

                    #10
                    Originally posted by Nick
                    Are you using "make -fMakefile.std" in the src directory? It compiles for me, but i do have to edit the -DUSE_LFB out of Makefile.std.
                    It compiled fine, but I ran into same problem as the poster above when trying to run the game. The solution was actually quite easy - starting the game with -mx11 (src: http://forum.ubuntuusers.de/topic/np...y#post-1266078).

                    Comment

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