Getting Angband from Github and compiling it

Collapse
This is a sticky topic.
X
X
 
  • Time
  • Show
Clear All
new posts
  • LostTemplar
    Knight
    • Aug 2009
    • 670

    #61
    I allways have troubles with all this autoconf stuff too, btw simple make -f Makefile.win from cygwin environment works (after I manually edit this file and insert correct paths to gcc, etc. makefile by itself tends to obtain paths from environment variables but just editing makefile was simpler solution for me)

    Comment

    • Nick
      Vanilla maintainer
      • Apr 2007
      • 9647

      #62
      Originally posted by TricksterWolf
      P.S. Is there a Java version of Angband-style roguelikes available anywhere which uses graphical tiles, aside from the impending ToME rebirth? That'd be a much faster tool for what I want to do (my own variant, open-source).
      I don't believe so (although I have a vague feeling that there has been at least one abortive attempt).

      Going further off-thread-topic, a post about your incipient variant would be interesting.
      One for the Dark Lord on his dark throne
      In the Land of Mordor where the Shadows lie.

      Comment

      • takkaria
        Veteran
        • Apr 2007
        • 1951

        #63
        Originally posted by TricksterWolf
        First off, much thanks for the rapid response.

        Unfortunately, that command is what NetBeans was trying. Invoking it from within Cygwin produces the same errors.

        For an exact quote, when building angband's current release (3.3.2):

        Code:
        [B]$ make -f Makefile[/B]
        mk/buildsys.mk:21: mk/extra.mk: No such file or directory
        mk/buildsys.mk:377: mk/sinclude.mk: No such file or directory
        make: *** No rule to make target `mk/sinclude.mk'.  Stop.
        Ah, you shouldn't be using Makefile - use Makefile.win, it's the Windows-specific one, in the same way Makefile.osx is for OS X etc.
        takkaria whispers something about options. -more-

        Comment

        • Magnate
          Angband Devteam member
          • May 2007
          • 5110

          #64
          @TricksterWolf - if you do get a successful build from autoconf+cygwin, please document and post it, as it's currently missing from our build guides!
          "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

          Comment

          • TricksterWolf
            Scout
            • Sep 2012
            • 43

            #65
            Originally posted by myshkin
            Yes, you need the autoconf package.
            Ok.

            I installed everything that came up on a search for autoconf except for the development version (I'm using the stable version).

            I still get the same error:

            Code:
            *info* running aclocal
            *error* aclocal failed. (exit code = 127)
            ./autogen.sh: line 38: aclocal: command not found
            I get this error regardless as to whether I run it in NetBeans or at the Cygwin command line. It doesn't know anything about an "aclocal".

            Comment

            • TricksterWolf
              Scout
              • Sep 2012
              • 43

              #66
              Okay, after searching online I have discovered that aclocal is in the automake package. So I installed every version of everything automake, and the autogen shell script works now. It doesn't create the .mk files from the .mk.in files, however.

              I tried making in the cygwin terminal and no difference. I'm still missing something that will turn the .mk.in files into .mk files. I was told this was configure, but I don't exactly see how configure comes into play. I can run it, and I can see the options, but what do I need to set to turn the .mk.in files into .mk files in root/mk for my angband project? Again, autogen.sh runs now, but doesn't create the .mk files.

              Comment

              • TricksterWolf
                Scout
                • Sep 2012
                • 43

                #67
                Success!

                I just had to run configure and wait for it to finish... I had accidentally stopped it previously.

                Unfortunately, main.c would not compile due to modules[] having zero or negative size. That was the only error I hit on a clean and build, however, so now I'll screw around with it to see if I can get it to make something that actually works.

                Comment

                • Nick
                  Vanilla maintainer
                  • Apr 2007
                  • 9647

                  #68
                  Originally posted by TricksterWolf
                  Success!

                  I just had to run configure and wait for it to finish... I had accidentally stopped it previously.

                  Unfortunately, main.c would not compile due to modules[] having zero or negative size. That was the only error I hit on a clean and build, however, so now I'll screw around with it to see if I can get it to make something that actually works.
                  Good effort.

                  Your problem will be that you need to have one of the front ends - x11, gcu or sdl - enabled. That will require x11, curses or SDL libraries for windows - as a first attempt you could just add --enable-x11 to configure, and see what happens.

                  Or you could just use Makefile.win like takkaria suggested
                  One for the Dark Lord on his dark throne
                  In the Land of Mordor where the Shadows lie.

                  Comment

                  • nppangband
                    NPPAngband Maintainer
                    • Dec 2008
                    • 926

                    #69
                    Originally posted by Nick

                    Or you could just use Makefile.win like takkaria suggested
                    If this helps, I believe Angband compiles with little to no issues with MINGW (rather than cygwin). I believe most of the Angband devteam works with MINGW.

                    With MINGW the command line for makefile.win is "make -f makefile.win MINGW=YES".
                    NPPAngband current home page: http://nppangband.bitshepherd.net/
                    Source code repository:
                    https://github.com/nppangband/NPPAngband_QT
                    Downloads:
                    https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57

                    Comment

                    • david3x3x3
                      Scout
                      • Jun 2009
                      • 28

                      #70
                      Originally posted by nppangband
                      If this helps, I believe Angband compiles with little to no issues with MINGW (rather than cygwin). I believe most of the Angband devteam works with MINGW.
                      I build with Cygwin. Are you following the instructions in compiling.txt? I submitted an update to those instructions and some changes to the buildsys that weren't working with Cygwin. As far as I know everything works fine with the current version.

                      Comment

                      • TJS
                        Swordsman
                        • May 2008
                        • 473

                        #71
                        I'm trying to build the latest version of Vanilla on Windows XP and don't seem to be getting anywhere.

                        I'm not really used to building projects using the command line.

                        Do I navigate into the Angband parent directory using Command Prompt and type?

                        "make -f makefile.win MINGW=YES"

                        I get the 'make not recognised' error. Same if I try with the Visual Studio command prompt.

                        If I try the following with Visual studio command prompt in the src directory

                        "nmake -f makefile.win MINGW=YES"

                        I get the error "syntax error missing ) in macro invocation (line 19)".

                        Any ideas?

                        Comment

                        • Magnate
                          Angband Devteam member
                          • May 2007
                          • 5110

                          #72
                          Originally posted by TJS
                          I'm trying to build the latest version of Vanilla on Windows XP and don't seem to be getting anywhere.

                          I'm not really used to building projects using the command line.

                          Do I navigate into the Angband parent directory using Command Prompt and type?

                          "make -f makefile.win MINGW=YES"

                          I get the 'make not recognised' error. Same if I try with the Visual Studio command prompt.

                          If I try the following with Visual studio command prompt in the src directory

                          "nmake -f makefile.win MINGW=YES"

                          I get the error "syntax error missing ) in macro invocation (line 19)".

                          Any ideas?
                          I think you're mixing two different things here. If you're using VS, you shouldn't need to use a command prompt at all. I know nothing about VS, but I think Blubaron left quite comprehensive VS compilation instructions somewhere in src/win/. Not sure how version-dependent they are, but you could have a go and see.

                          Using the command prompt is for compiling using MinGW/Msys. I think these instructions are in compiling.txt, and you no longer need to invoke Makefile.win. I think (but not certain and at work so can't check) that you need to run configure --your-preferred-options (run configure --help to see what they are), and then just type make. Hint: if configure options frighten you, just use configure --with-no-install. That will build angband in src/, and you just start it with src/angband.exe
                          "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

                          Comment

                          • TJS
                            Swordsman
                            • May 2008
                            • 473

                            #73
                            Originally posted by Magnate
                            I think you're mixing two different things here. If you're using VS, you shouldn't need to use a command prompt at all. I know nothing about VS, but I think Blubaron left quite comprehensive VS compilation instructions somewhere in src/win/. Not sure how version-dependent they are, but you could have a go and see.

                            Using the command prompt is for compiling using MinGW/Msys. I think these instructions are in compiling.txt, and you no longer need to invoke Makefile.win. I think (but not certain and at work so can't check) that you need to run configure --your-preferred-options (run configure --help to see what they are), and then just type make. Hint: if configure options frighten you, just use configure --with-no-install. That will build angband in src/, and you just start it with src/angband.exe
                            I'm don't want to use VS, just previously you could build using the VS command prompt with the nmake command so I thought I'd try it again after the standard command prompt didn't work.

                            I've downloaded and installed MinGW, but the standard command prompt doesn't recognise the command 'make' when I try to build.

                            How do you run configure?

                            MinGW seems a bit of a mystery to me as I've seen the MinGW shell mentioned, but I see no way of opening it and there's no exe in the MinGW folder.

                            Edit: Have tried building through visual studio via those instructions and get this error from a dll:

                            libpng12.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x290
                            Last edited by TJS; November 13, 2012, 13:15.

                            Comment

                            • Mikko Lehtinen
                              Veteran
                              • Sep 2010
                              • 1246

                              #74
                              Originally posted by TJS
                              I've downloaded and installed MinGW, but the standard command prompt doesn't recognise the command 'make' when I try to build.
                              IIRC, the make command is actually mingw32-make (if you're on 32-bit Windows).

                              MinGW's bin folder needs to be in your path. Then the command prompt will recognize the mingw32-make command.

                              I haven't built the modern Angband on Windows, but I hope these two bits help rather than confuse.

                              Comment

                              • Magnate
                                Angband Devteam member
                                • May 2007
                                • 5110

                                #75
                                Originally posted by TJS
                                I'm don't want to use VS, just previously you could build using the VS command prompt with the nmake command so I thought I'd try it again after the standard command prompt didn't work.

                                I've downloaded and installed MinGW, but the standard command prompt doesn't recognise the command 'make' when I try to build.

                                How do you run configure?

                                MinGW seems a bit of a mystery to me as I've seen the MinGW shell mentioned, but I see no way of opening it and there's no exe in the MinGW folder.

                                Edit: Have tried building through visual studio via those instructions and get this error from a dll:

                                libpng12.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x290
                                Ok, let's leave VS aside and focus on mingw/msys.

                                I think the problem you are having is that you have installed mingw but not msys, so you're typing the 'make' command into a Windows prompt rather than a mingw shell. Once we cross that hurdle things should get a lot easier.

                                Sadly I don't use Windows myself, but I'm hoping fizzix will see this thread and wade in, because I think he uses this build method.
                                "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

                                Comment

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