[Announce] NPPAngband 0.5.1 WIP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nppangband
    NPPAngband Maintainer
    • Dec 2008
    • 926

    #16
    Originally posted by ekolis
    Do you have a repository out there we can download the latest code from, or will we have to wait for the next WIP version?
    We have an old one that is out of date. I do intend on setting up a new one once things calm down. I will put out another WIP in a day or two. I am happy to send the altered source files or a diff file to anyone who wants one.
    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

    • nppangband
      NPPAngband Maintainer
      • Dec 2008
      • 926

      #17
      Originally posted by Pete Mack
      I recommend trying to build with:

      CFLAGS += $(WARNINGS) -std=iso9899:199409 -pedantic -O2 -I.
      or update all gcc-dependent makefiles to use the options of your choice.
      I did RTFM before I ask these stupid questions, I promise.

      I downloaded WINGW (into C:\WinGW) using the automated installer with "MINGW Make" added, added C:\WinGW\bin; to the Environment Variable, rebooted, went to the windows command prompt, got to the source directory, and typed:

      make -f makefile.win. MINGW=yes (Is this right command prompt?)

      I get the error: 'make" is not recognized as an internal or external command, operable program, or batch file.

      I looked, and the wingw\bin directory doesn't have a file or application called "make". It has a mingw32-make. What command should I use?

      Also, @Pete: Are you saying this line should be added to the command line or the makefile?

      CFLAGS += $(WARNINGS) -std=iso9899:199409 -pedantic -O2 -I.

      Thanks for any suggestions anyone may have.
      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

      • ekolis
        Knight
        • Apr 2007
        • 921

        #18
        Have you tried msys? That might be the command-line you're after...
        You read the scroll labeled NOBIMUS UPSCOTI...
        You are surrounded by a stasis field!
        The tengu tries to teleport, but fails!

        Comment

        • andrewdoull
          Unangband maintainer
          • Apr 2007
          • 872

          #19
          Originally posted by nppangband
          I did RTFM before I ask these stupid questions, I promise.

          I downloaded WINGW (into C:\WinGW) using the automated installer with "MINGW Make" added, added C:\WinGW\bin; to the Environment Variable, rebooted, went to the windows command prompt, got to the source directory, and typed:

          make -f makefile.win. MINGW=yes (Is this right command prompt?)

          I get the error: 'make" is not recognized as an internal or external command, operable program, or batch file.

          I looked, and the wingw\bin directory doesn't have a file or application called "make". It has a mingw32-make. What command should I use?
          Use mingw32-make. IIRC Mingw32 prefixes any command where the semantics are not identical to the Unix equivalent.

          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

          • nppangband
            NPPAngband Maintainer
            • Dec 2008
            • 926

            #20
            Yep. I tried that, and it didn't work.

            But I did get cygwin (with gcc) set up and working. So I am going through all of those compile errors now. And you are right, Pete. There are *alot* of them.

            Strangely, LCC-WIN had a complete meltdown and won't compile anything any more. It keeps saying it can't compile any straight c commands like ferror or fputc. I believe something in the latest windows update or my latest firewall update has blocked LCCWin's access to the standard C library.
            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

            • Pete Mack
              Prophet
              • Apr 2007
              • 6883

              #21
              @Jeff--
              Let me reiterate:
              I don't recommend using the default angband settings. C89 (with or without ISO 99 clarifications) is not a useful target in 2010. But do pick a target C environment (I recommend C99) and stick to it.

              Comment

              • nppangband
                NPPAngband Maintainer
                • Dec 2008
                • 926

                #22
                Originally posted by Pete Mack
                @Jeff--
                Let me reiterate:
                I don't recommend using the default angband settings. C89 (with or without ISO 99 clarifications) is not a useful target in 2010. But do pick a target C environment (I recommend C99) and stick to it.
                Thanks, Pete. I now have a clean compile using makefile.win and cygwin, with the C-99 command line you mentioned above (at least from what I read, neither MinGW nor Cygwin are 100% compliant with C-99, but they are both very close). In a couple days I will have the options menu done, and then I will post WIP-2.

                I am done with LCC. I liked its text editor, but I will go find an good, free ide and compile with Cygwin from now on.
                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

                • Pete Mack
                  Prophet
                  • Apr 2007
                  • 6883

                  #23
                  The two most common choices are Eclipse and MSVC Express.
                  Also:
                  The IDE with all the features you need, having a consistent look, feel and operation across platforms.



                  There are many more.

                  Comment

                  • nppangband
                    NPPAngband Maintainer
                    • Dec 2008
                    • 926

                    #24
                    I downloaded eclipse and notepad++. Eclipse looks great. Thanks again for your help & suggestions.
                    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

                    • EpicMan
                      Swordsman
                      • Dec 2009
                      • 455

                      #25
                      I find after using Eclipse and especially Notepad++ for a while I have a hard time using Visual Studio due to the very limited selection of editing keyboard shortcuts (e.g. duplicating lines, area comment/uncomment, etc). I used to use Notepad++ exclusively (with command line) although Eclipse's auto-compile feature for Java has won me over.

                      Comment

                      • Derakon
                        Prophet
                        • Dec 2009
                        • 9022

                        #26
                        If you like keyboard shortcuts, you should check out vim*.

                        * Or, if you really must, emacs...

                        Comment

                        • EpicMan
                          Swordsman
                          • Dec 2009
                          • 455

                          #27
                          I always found vi's tendency to add extra indentations to already-indented lines when copying and pasting made editing unpleasant compared to a 'gui-like' text editor like Notepad++ or an IDE. That and I was (and still am) a lot more familiar with Windows-style CTRL+* shortcuts than the vi ones.

                          So I guess to be more precise I should say I am a fan of Windows-style keyboard shortcuts.

                          As for EMACS, I used it a couple of times at school but it isn't installed on the Solaris/Red Hat servers I administer at work, so I can't really comment on it.

                          (Waits to see if a vi-Emacs flame war springs up)

                          Comment

                          • Derakon
                            Prophet
                            • Dec 2009
                            • 9022

                            #28
                            To be quite honest, I agree with you about pasting text. Fortunately there's :set paste to turn that off (I just do ":set paste!", paste the text, then ":set paste!" again to unset the paste mode). And of course, you only need this when copying text from another location; otherwise you can use vim's internal buffers.

                            Comment

                            • d_m
                              Angband Devteam member
                              • Aug 2008
                              • 1517

                              #29
                              Emacs is great! So is Pmacs!

                              (Vim is also great but it doesn't work the way I want it to)
                              linux->xterm->screen->pmacs

                              Comment

                              • Pete Mack
                                Prophet
                                • Apr 2007
                                • 6883

                                #30
                                @Jeff--
                                There is one potential drawback with Eclipse, at least on windows: Windows GDB doesn't generally work. (This may have changed since the last time I tried it.)

                                If you are (a) using windows and (b) using gdb to debug and (c) having a bad time of it, then pretty much the only choice is MSVS-Express. (I don't know to what extent MSVS 2010 supports pure-C code. You may need to use an earlier version.)

                                Comment

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