Getting Unangband/Angband from SVN and Compiling on Windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zero
    Apprentice
    • Jan 2008
    • 83

    #31
    Okay, I went through the instruction list, and got stuck at #12. There was no "Standard Make C Project" so I just chose "C Project". There were some other changes I made, like I selected minGW instead of Cygwin at one point.

    Somehow, I managed to get the trunk directory downloaded, but when I tried to build it, it generated 57 errors, all in "z-file.c". Here's two:

    `FAIL' undeclared (first use in this function), z-file.c, line 27

    syntax error before "int", z-file.c, line 310



    I know the C programming language, but do everything in Java these days, and I've never used minGW or Eclipse, so I really have no idea what I'm doing. Any help would be appreciated.

    Comment

    • takkaria
      Veteran
      • Apr 2007
      • 1951

      #32
      Originally posted by Zero
      Okay, I went through the instruction list, and got stuck at #12. There was no "Standard Make C Project" so I just chose "C Project". There were some other changes I made, like I selected minGW instead of Cygwin at one point.

      Somehow, I managed to get the trunk directory downloaded, but when I tried to build it, it generated 57 errors, all in "z-file.c". Here's two:

      `FAIL' undeclared (first use in this function), z-file.c, line 27

      syntax error before "int", z-file.c, line 310



      I know the C programming language, but do everything in Java these days, and I've never used minGW or Eclipse, so I really have no idea what I'm doing. Any help would be appreciated.
      I think you want to exclude the "tests" directory from the files you include in the project.
      takkaria whispers something about options. -more-

      Comment

      • Zero
        Apprentice
        • Jan 2008
        • 83

        #33
        Originally posted by takkaria
        I think you want to exclude the "tests" directory from the files you include in the project.
        Done, but now the build generates 69 errors. However, all the errors are confined to readdib.c and main-win.c. Here's one of them:

        undefined reference to `AddFontResourceA@4', main-win.c, line 1486

        Comment

        • takkaria
          Veteran
          • Apr 2007
          • 1951

          #34
          Originally posted by Zero
          Done, but now the build generates 69 errors. However, all the errors are confined to readdib.c and main-win.c. Here's one of them:

          undefined reference to `AddFontResourceA@4', main-win.c, line 1486
          Try "make -f Makefile.win MINGW=yes" instead.
          takkaria whispers something about options. -more-

          Comment

          • Zero
            Apprentice
            • Jan 2008
            • 83

            #35
            I got it down to 29 errors by changing the active build configuration to Release, but that's just a stab in the dark.

            > Try "make -f Makefile.win MINGW=yes" instead.

            Thinking that this might be a command for DOS, I got the usual "make is not a recognized internal or external command...". My first thought was that I should change the build command in Eclipse to that string, but I don't know how to do that, because I suck.

            Comment

            • zaimoni
              Knight
              • Apr 2007
              • 590

              #36
              Ok...I have zero familiarity with Eclipse as an IDE, but I'm mildly surprised that you have MingW32 installed but not (GNU) make. (Yes, it's its very own package in the vast MingW32 distribution. But not that difficult to build from source if you have bash installed to run configure scripts; its configure script works fairly well in Windows, unlike quite a few others).
              Zaiband: end the "I shouldn't have survived that" experience. V3.0.6 fork on Hg.
              Zaiband 3.0.10 ETA Mar. 7 2011 (Yes, schedule slipped. Latest testing indicates not enough assert() calls to allow release.)
              Z.C++: pre-alpha C/C++ compiler system (usable preprocessor). Also on Hg. Z.C++ 0.0.10 ETA December 31 2011

              Comment

              • Zero
                Apprentice
                • Jan 2008
                • 83

                #37
                Originally posted by zaimoni
                Ok...I have zero familiarity with Eclipse as an IDE, but I'm mildly surprised that you have MingW32 installed but not (GNU) make. (Yes, it's its very own package in the vast MingW32 distribution. But not that difficult to build from source if you have bash installed to run configure scripts; its configure script works fairly well in Windows, unlike quite a few others).
                I just followed the instructions in the first post in this thread as best as I could. Like I said, I've been using Java, so I don't have any C/C++ tools installed.

                What should I do?

                Comment

                • Daven_26d1
                  Adept
                  • Jun 2007
                  • 211

                  #38
                  You missed the bit in step #4 that suggests your gonna need to install Make along with that mingW32 environment, so it would be a good bet to try that.
                  You sold a Broken Sword (1d2) (-2,-4) {average} (j) for 1 gold.
                  The shopkeeper howls in agony!
                  You say "Dude, the clue is in the name...".

                  Comment

                  • Zero
                    Apprentice
                    • Jan 2008
                    • 83

                    #39
                    Originally posted by Daven_26d1
                    You missed the bit in step #4 that suggests your gonna need to install Make along with that mingW32 environment, so it would be a good bet to try that.
                    I did that. I checked that box.

                    Comment

                    • zaimoni
                      Knight
                      • Apr 2007
                      • 590

                      #40
                      Originally posted by Zero
                      I just followed the instructions in the first post in this thread as best as I could. Like I said, I've been using Java, so I don't have any C/C++ tools installed.

                      What should I do?
                      Seeing that you did check the box on #4, you're going to have to find where the installer misplaced make.

                      make-mingw32.exe or similar would be my first guess for a misplacement.
                      Zaiband: end the "I shouldn't have survived that" experience. V3.0.6 fork on Hg.
                      Zaiband 3.0.10 ETA Mar. 7 2011 (Yes, schedule slipped. Latest testing indicates not enough assert() calls to allow release.)
                      Z.C++: pre-alpha C/C++ compiler system (usable preprocessor). Also on Hg. Z.C++ 0.0.10 ETA December 31 2011

                      Comment

                      • Zero
                        Apprentice
                        • Jan 2008
                        • 83

                        #41
                        Where is make supposed to go? My system drive is E:\, not the standard C:\. Would that require some kind of change?

                        I couldn't find make-mingw32.exe anywhere on my hard drive.

                        Comment

                        • zaimoni
                          Knight
                          • Apr 2007
                          • 590

                          #42
                          Originally posted by Zero
                          Where is make supposed to go? My system drive is E:\, not the standard C:\. Would that require some kind of change?
                          Very minor change -- to your PATH. There should be no difference in actual command-line usage. The primary bin directory for MingW32 should be on your PATH, and should also have installed to it:
                          * make.exe
                          * the binutils toolset (for the linker ld and assembler as, etc.)

                          Both of these are separate downloads from the MingW32 compilers.

                          To check whether the main MingW32 bin directory is on your path, try to run gcc --help. If that runs, installing the above packages should work if they aren't there already.

                          If not, you'll have to find gcc.exe [should be two copies, you want the one with the shorter directory to it], then use the System control to put the shorter directory on your PATH. I'd do this for all users if possible.
                          Zaiband: end the "I shouldn't have survived that" experience. V3.0.6 fork on Hg.
                          Zaiband 3.0.10 ETA Mar. 7 2011 (Yes, schedule slipped. Latest testing indicates not enough assert() calls to allow release.)
                          Z.C++: pre-alpha C/C++ compiler system (usable preprocessor). Also on Hg. Z.C++ 0.0.10 ETA December 31 2011

                          Comment

                          • Zero
                            Apprentice
                            • Jan 2008
                            • 83

                            #43
                            > To check whether the main MingW32 bin directory is on your
                            > path, try to run gcc --help.

                            That works.

                            > The primary bin directory for MingW32 should be on your PATH,

                            It is.

                            > and should also have installed to it:
                            > * make.exe

                            There is a file in MinGW\bin called mingw32-make.exe. There is no file called make.exe anywhere.

                            > * the binutils toolset (for the linker ld and assembler as, etc.)

                            Also in MinGW\bin there is as.exe and ld.exe.

                            I still don't know what to do at this point.

                            Comment

                            • andrewdoull
                              Unangband maintainer
                              • Apr 2007
                              • 872

                              #44
                              Originally posted by Zero
                              > To check whether the main MingW32 bin directory is on your
                              > path, try to run gcc --help.

                              That works.

                              > The primary bin directory for MingW32 should be on your PATH,

                              It is.

                              > and should also have installed to it:
                              > * make.exe

                              There is a file in MinGW\bin called mingw32-make.exe. There is no file called make.exe anywhere.

                              > * the binutils toolset (for the linker ld and assembler as, etc.)

                              Also in MinGW\bin there is as.exe and ld.exe.

                              I still don't know what to do at this point.
                              Ensure that mingw\bin is in your path environmental variable.

                              Cd into the angband\src directory.

                              Use the command

                              mingw32-make.exe -f makefile.win

                              That should do it IIRC (mingw32-make.exe is the mingw equivalent of make).


                              Andrew
                              The Roflwtfzomgbbq Quylthulg summons L33t Paladins -more-
                              In UnAngband, the level dives you.
                              ASCII Dreams: http://roguelikedeveloper.blogspot.com
                              Unangband: http://unangband.blogspot.com

                              Comment

                              • zaimoni
                                Knight
                                • Apr 2007
                                • 590

                                #45
                                Originally posted by Zero
                                There is a file in MinGW\bin called mingw32-make.exe. There is no file called make.exe anywhere.
                                That's it.

                                Rename or copy that file to make.exe.
                                Zaiband: end the "I shouldn't have survived that" experience. V3.0.6 fork on Hg.
                                Zaiband 3.0.10 ETA Mar. 7 2011 (Yes, schedule slipped. Latest testing indicates not enough assert() calls to allow release.)
                                Z.C++: pre-alpha C/C++ compiler system (usable preprocessor). Also on Hg. Z.C++ 0.0.10 ETA December 31 2011

                                Comment

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