Customizing Home Capacity.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zappa
    Apprentice
    • Feb 2008
    • 56

    #16
    Originally posted by takkaria
    If you are using mingw and not cygwin, use make -f Makefile.win MINGW=true.
    Yeah, but then I'm told 'make' isn't recognized. Cygwin does the same thing.

    Comment

    • Timo Pietilä
      Prophet
      • Apr 2007
      • 4096

      #17
      Originally posted by Zappa
      Yeah, but then I'm told 'make' isn't recognized. Cygwin does the same thing.
      mingw32-make instead of make?

      Comment

      • Zappa
        Apprentice
        • Feb 2008
        • 56

        #18
        Originally posted by Timo Pietilä
        mingw32-make instead of make?
        Oh wow it looks like that works. Thank you so much for your help.

        EDIT: Well it looked like it was working but now I have far too many error messages to post here.

        Comment

        • Timo Pietilä
          Prophet
          • Apr 2007
          • 4096

          #19
          Originally posted by Zappa
          Oh wow it looks like that works. Thank you so much for your help.

          EDIT: Well it looked like it was working but now I have far too many error messages to post here.
          Sounds exactly like my first try with mingw. I got it to work somehow but that's so long ago that I don't remember what was the problem and how I solved it. Something to do with path lengths IIRC.

          I use cygwin now. Or at least I used to, I don't have it in my new computer. Anyway, I did find cygwin much easier to use than mingw.

          [EDIT] Thangorodrim compile instructions can be useful to you:



          [EDIT EDIT]

          Reading those...not so useful after all. makefile.cyg doesn't even exist anymore. Makefile.win might work though (I haven't compiled my own version for ages now).
          Last edited by Timo Pietilä; October 17, 2013, 10:19.

          Comment

          • Zappa
            Apprentice
            • Feb 2008
            • 56

            #20
            thanks for your help anyway. this might be beyond my abilities.

            Comment

            • Zappa
              Apprentice
              • Feb 2008
              • 56

              #21
              Would this help anyone tell me what I'm doing wrong?

              [spoiler]
              Code:
              gcc -DWINDOWS -static -Iwin/include -Lwin/lib -Wall -Wextra -Wno-unused-paramete
              r -Wno-missing-field-initializers -std=c99 -Wdeclaration-after-statement -O2 -I.
               -c -o z-file.o z-file.c
              In file included from z-file.c:24:0:
              c:\mingw\include\io.h:301:1: error: unknown type name 'off64_t'
               __CRT_INLINE off64_t lseek64 (int, off64_t, int);
               ^
              c:\mingw\include\io.h:301:36: error: unknown type name 'off64_t'
               __CRT_INLINE off64_t lseek64 (int, off64_t, int);
                                                  ^
              c:\mingw\include\io.h:302:1: error: unknown type name 'off64_t'
               __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) {
               ^
              c:\mingw\include\io.h:302:39: error: unknown type name 'off64_t'
               __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) {
                                                     ^
              z-file.c: In function 'file_exists':
              z-file.c:309:14: error: storage size of 'st' isn't known
                struct stat st;
                            ^
              z-file.c:310:2: warning: implicit declaration of function 'stat' [-Wimplicit-fun
              ction-declaration]
                return (stat(fname, &st) == 0);
                ^
              z-file.c:309:14: warning: unused variable 'st' [-Wunused-variable]
                struct stat st;
                            ^
              z-file.c: In function 'file_newer':
              z-file.c:348:14: error: storage size of 'stat1' isn't known
                struct stat stat1, stat2;
                            ^
              z-file.c:348:21: error: storage size of 'stat2' isn't known
                struct stat stat1, stat2;
                                   ^
              z-file.c:348:21: warning: unused variable 'stat2' [-Wunused-variable]
              z-file.c:348:14: warning: unused variable 'stat1' [-Wunused-variable]
                struct stat stat1, stat2;
                            ^
              z-file.c: In function 'dir_exists':
              z-file.c:676:14: error: storage size of 'buf' isn't known
                struct stat buf;
                            ^
              z-file.c:676:14: warning: unused variable 'buf' [-Wunused-variable]
              z-file.c: In function 'file_exists':
              z-file.c:311:1: warning: control reaches end of non-void function [-Wreturn-type
              ]
               }
               ^
              z-file.c: In function 'file_newer':
              z-file.c:361:1: warning: control reaches end of non-void function [-Wreturn-type
              ]
               }
               ^
              z-file.c: In function 'dir_exists':
              z-file.c:686:1: warning: control reaches end of non-void function [-Wreturn-type
              ]
               }
               ^
              make: *** [z-file.o] Error 1
              [/spoiler]

              Comment

              • Nick
                Vanilla maintainer
                • Apr 2007
                • 9634

                #22
                Originally posted by Zappa
                Would this help anyone tell me what I'm doing wrong?
                My best guess is that it's some 32- vs 64-bit issue, but I'm not sure what. Here is a similar problem someone had recently with NPPAngband. Sorry to be of so little help.
                One for the Dark Lord on his dark throne
                In the Land of Mordor where the Shadows lie.

                Comment

                • krazyhades
                  Swordsman
                  • Jun 2013
                  • 428

                  #23
                  This thread makes me long for Pyrel.

                  Comment

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