Getting Unangband/Angband from SVN and Compiling on Windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9637

    #16
    Originally posted by takkaria
    *coughs* http://cygwin.com/license.html

    The cygwin DLL (which gets linked into your binary if you use -mno-cygwin) is GPL with an exception for applications with OSI-free licences. Angband isn't one of those, so you have no licence to distribute a cygwin-compiled version of the game under the Angband licence...

    Not that I suspect anyone will care, anyway. Licencing sucks.
    Oh, super. I'll probably adopt my usual strategy of ignoring the problem and hoping it goes away. If anyone sues me I'll plead religious exemption - the God of Lazy People gets wrathful (well, mildly put out) if any of His followers even think about licencing issues.
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    • andrewdoull
      Unangband maintainer
      • Apr 2007
      • 872

      #17
      Originally posted by Nick
      Oh, super. I'll probably adopt my usual strategy of ignoring the problem and hoping it goes away. If anyone sues me I'll plead religious exemption - the God of Lazy People gets wrathful (well, mildly put out) if any of His followers even think about licencing issues.
      Mingw is not that bad... link to downloader posted earlier in the thread
      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

      • takkaria
        Veteran
        • Apr 2007
        • 1951

        #18
        Originally posted by pav
        Ah suckage. I know GCC have a special clause that extempts binaries compiled with it (against it runtime libraries) from being GPL-poisoned. Too bad Red Hat haven't did the same for Cygwin.
        They do... if you pay them lots of money.
        takkaria whispers something about options. -more-

        Comment

        • Bandobras
          Knight
          • Apr 2007
          • 726

          #19
          Originally posted by pav
          Repeated downloading a zip file is no big deal in broadband times
          Yes, but you easily see with SVN if and what has changed and can easily display commit messages for the changes to see what is happening, revert some of the last changes if they break the game, merge effortlessly your private hacks (e.g. to lib/edit files), etc., etc. Not to mention contributing...

          Comment

          • pav
            Administrator
            • Apr 2007
            • 793

            #20
            Now that goes a lot above an ordinary player wanting to play development snapshot of the game

            Sure, if you maintain local patches, full blown svn is a good thing to have.
            See the elves and everything! http://angband.oook.cz

            Comment

            • Nick
              Vanilla maintainer
              • Apr 2007
              • 9637

              #21
              Originally posted by andrewdoull
              Mingw is not that bad... link to downloader posted earlier in the thread
              Yes, and I guess that's what I'll do. In fact, I guess I started using cygwin because it was above mingw on RR's compilation instructions on thangorodrim, and never had a reason not to. Now I have.
              One for the Dark Lord on his dark throne
              In the Land of Mordor where the Shadows lie.

              Comment

              • takkaria
                Veteran
                • Apr 2007
                • 1951

                #22
                Originally posted by Fuma
                Maybe check some environment variables? I know one can set whatever variables he wants, but how many linux people have (for example) OS set to Windows_NT ? (just copied my results, so YMMV)
                I went for route of testing the PATH variable to see if it contains "WINDOWS\system32". This means that V should now work using Makefile.win and you've no need to move the executable manually.

                For the method, see:
                takkaria whispers something about options. -more-

                Comment

                • Faust
                  Adept
                  • Apr 2007
                  • 129

                  #23
                  Originally posted by takkaria
                  I went for route of testing the PATH variable to see if it contains "WINDOWS\system32". This means that V should now work using Makefile.win and you've no need to move the executable manually.

                  For the method, see:
                  http://angband.rogueforge.net/trac/b...c/Makefile.win
                  This Won't work for Win NT or Windows 2000 as they use \Winnt\

                  Comment

                  • andrewdoull
                    Unangband maintainer
                    • Apr 2007
                    • 872

                    #24
                    Originally posted by Faust
                    This Won't work for Win NT or Windows 2000 as they use \Winnt\
                    Technically you should be testing for %systemdir%.

                    You'll probably want to use the 'ver' command if possible.

                    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

                    • Bodkin
                      Scout
                      • Apr 2007
                      • 34

                      #25
                      Has something changed since this was composed?

                      I guess I'll have to be the clueless one (or at least, the one who steps forward to be counted) ... I am still having some trouble here. I appreciate the guide, and I really want to make this thing work, but the compile process leaves me stranded. It creates a long series of object files (apparently all of them), but then yields the following, as it pulls its oars out of the water:

                      gcc: no input files
                      mingw32-make: *** [win/readdib.o] Error 1

                      To get this far, I did have to improvise somewhat, as not all of the menu choices still match what this guide forecasts (e.g., in step 3, there is no longer a "Mylar Integration" to de-select). And I had to go into the project properties and change Cygwin to Mingw wherever it appeared just to get the build started. Could there be some other configuration variable I have to mess with in Eclipse? Or could there be something I touched that I shouldn't have? (Aware of my ignorance, I touched as little as possible.)

                      I duplicated the problem when using the stable source code for version 3.0.9 (imported locally from the .tar.gz), so I doubt that the code could be the problem. Sadly, my experience with IDEs and makefiles is exceedingly spotty. But maybe my woes can serve as illumination (or as a cautionary tale) for others.

                      Thanks in advance for any clarification anyone can offer!

                      Comment

                      • andrewdoull
                        Unangband maintainer
                        • Apr 2007
                        • 872

                        #26
                        Originally posted by Bodkin
                        I guess I'll have to be the clueless one (or at least, the one who steps forward to be counted) ... I am still having some trouble here. I appreciate the guide, and I really want to make this thing work, but the compile process leaves me stranded. It creates a long series of object files (apparently all of them), but then yields the following, as it pulls its oars out of the water:

                        gcc: no input files
                        mingw32-make: *** [win/readdib.o] Error 1
                        I think something has 'broken' for this. Unfortunately, I'm without a computer at the moment and can't test this.

                        Try bringing up a cmd prompt, and changing into the angband/src directory (use the cd command).

                        Then try the command mingw32-make -f makefile.win

                        That should generate a angband.exe which you can copy up one directory.

                        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

                        • ekolis
                          Knight
                          • Apr 2007
                          • 921

                          #27
                          Hmmm, I wonder if it would make things easier to include a .sln file and direct people to Visual C++ 2008 Express?
                          You read the scroll labeled NOBIMUS UPSCOTI...
                          You are surrounded by a stasis field!
                          The tengu tries to teleport, but fails!

                          Comment

                          • Bandobras
                            Knight
                            • Apr 2007
                            • 726

                            #28
                            Somewhat off-topic, but here is a _trivial_ way to obtain a Windows binary, if you have Linux with apt (Debian, Ubuntu, others). It really worked so easily for me.

                            Comment

                            • Zero
                              Apprentice
                              • Jan 2008
                              • 83

                              #29
                              Has anyone tried compiling Vanilla with Netbeans 6.0? I've been using Java, so I'm used to Netbeans, and it would be great to be able to compile Angband without having to install a new compiler.

                              Comment

                              • ekolis
                                Knight
                                • Apr 2007
                                • 921

                                #30
                                Doesn't sound too hard - Netbeans is pretty easy to use
                                Can't say for certain that I've actually tried it - but I imagine it's not difficult!
                                You read the scroll labeled NOBIMUS UPSCOTI...
                                You are surrounded by a stasis field!
                                The tengu tries to teleport, but fails!

                                Comment

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