Spanish Translate Project - Nothing to be done for Makefile.win

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hernaldog
    Rookie
    • Apr 2014
    • 21

    Spanish Translate Project - Nothing to be done for Makefile.win

    Hi
    I have a proyect about to translate de game to Spanish language, I've translate 15% of all text, items, monsters, etc.

    Now I like to compile to test my translation, I've installed Cygwin (its in C:\cygwin64) and I add the Enviroment path. I write the command:

    > make C:\FAangband-1.4.4\src\Makefile.win
    And I Get the Error:

    Code:
    C:\FAangband-1.4.4\src\M
    akefile.win
    cygwin warning:
      MS-DOS style path detected: C:\FAangband-1.4.
    4\src\Makefile.win
      Preferred POSIX equivalent is: /cygdrive/c/FA
    angband-1.4.4/src/Makefile.win
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    make: Nothing to be done for 'C:\FAangband-1.4.
    4\src\Makefile.win'.
    Then I try with -f argument

    > make -f C:\FAangband-1.4.4\src\Makefile.win

    HTML Code:
    C:\FAangband115\src\Makefile.win:33: Makefile.inc: No such file or directory
    make: *** No rule to make target 'Makefile.inc'.  Stop.
    In the line 33 is:

    include Makefile.inc

    But this file is in my folder!

    Help please!!
    La web de Dark-N - Traducciones de Juegos
    http://darkn.romhackhispano.org/
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9634

    #2
    I think you need to change into the FAangband-1.4.4\src directory and then run
    Code:
    make -f Makefile.win
    Good luck with your excellent project!
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    • hernaldog
      Rookie
      • Apr 2014
      • 21

      #3
      Thanks a lot!
      I advanced a little.

      Now Its me show the next error:

      HTML Code:
      C:\FAangband-1.4.4\src>make -f Makefile.win MINGW=yes
      Makefile.inc:7: Makefile.src: No such file or directory
      make: *** No rule to make target `Makefile.src'.  Stop.
      The file "Makefile.src" it's not in the src folder. Where is it?
      La web de Dark-N - Traducciones de Juegos
      http://darkn.romhackhispano.org/

      Comment

      • Nick
        Vanilla maintainer
        • Apr 2007
        • 9634

        #4
        Originally posted by hernaldog
        Now Its me show the next error:

        HTML Code:
        C:\FAangband-1.4.4\src>make -f Makefile.win MINGW=yes
        Makefile.inc:7: Makefile.src: No such file or directory
        make: *** No rule to make target `Makefile.src'.  Stop.
        The file "Makefile.src" it's not in the src folder. Where is it?
        It really should be there - here is a link, or maybe try downloading the source again (in case anything else is missing).
        One for the Dark Lord on his dark throne
        In the Land of Mordor where the Shadows lie.

        Comment

        • hernaldog
          Rookie
          • Apr 2014
          • 21

          #5
          Originally posted by Nick
          It really should be there - here is a link, or maybe try downloading the source again (in case anything else is missing).
          Yes!, I downloaded the src again and it file is inside thanks!

          Now the compilation fails in the final steps, in the "z-file.c":

          HTML Code:
          r -Wno-missing-field-initializers -std=c99 -Wdeclaration-after-statement -O2 -I.
           -c -o xtra2.o xtra2.c
          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 xtra3.o xtra3.c
          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-bitflag.o z-bitflag.c
          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:294:14: error: storage size of 'st' isn't known
            struct stat st;
                        ^
          z-file.c:295:2: warning: implicit declaration of function 'stat' [-Wimplicit-fun
          ction-declaration]
            return (stat(fname, &st) == 0);
            ^
          z-file.c:294:14: warning: unused variable 'st' [-Wunused-variable]
            struct stat st;
                        ^
          z-file.c: In function 'file_newer':
          z-file.c:333:14: error: storage size of 'stat1' isn't known
            struct stat stat1, stat2;
                        ^
          z-file.c:333:21: error: storage size of 'stat2' isn't known
            struct stat stat1, stat2;
                               ^
          z-file.c:333:21: warning: unused variable 'stat2' [-Wunused-variable]
          z-file.c:333:14: warning: unused variable 'stat1' [-Wunused-variable]
            struct stat stat1, stat2;
                        ^
          z-file.c: In function 'dir_exists':
          z-file.c:642:14: error: storage size of 'buf' isn't known
            struct stat buf;
                        ^
          z-file.c:642:14: warning: unused variable 'buf' [-Wunused-variable]
          z-file.c: In function 'file_exists':
          z-file.c:296:1: warning: control reaches end of non-void function [-Wreturn-type
          ]
           }
           ^
          z-file.c: In function 'file_newer':
          z-file.c:346:1: warning: control reaches end of non-void function [-Wreturn-type
          ]
           }
           ^
          z-file.c: In function 'dir_exists':
          z-file.c:652:1: warning: control reaches end of non-void function [-Wreturn-type
          ]
           }
           ^
          make: *** [z-file.o] Error 1
          EDIT: I'm using the "C:\MinGW\msys\1.0\bin" folder in my Enironment Path in "My Computer", so I can use "make.exe" in any folder in Windows Command prompt.
          Last edited by hernaldog; April 19, 2014, 16:29.
          La web de Dark-N - Traducciones de Juegos
          http://darkn.romhackhispano.org/

          Comment

          • Nick
            Vanilla maintainer
            • Apr 2007
            • 9634

            #6
            OK, a bit of googling tells me this is probably a bug in mingw; it's possible a newer version may help.
            One for the Dark Lord on his dark throne
            In the Land of Mordor where the Shadows lie.

            Comment

            • hernaldog
              Rookie
              • Apr 2014
              • 21

              #7
              Originally posted by Nick
              OK, a bit of googling tells me this is probably a bug in mingw; it's possible a newer version may help.
              Ahh ok. What other compiler you recomend to me to compile FAangband in Windows?
              La web de Dark-N - Traducciones de Juegos
              http://darkn.romhackhispano.org/

              Comment

              • hernaldog
                Rookie
                • Apr 2014
                • 21

                #8
                Originally posted by hernaldog
                Ahh ok. What other compiler you recomend to me to compile FAangband in Windows?
                Now, I try this option. I use MINGW32 terminal in Windows (C:\MinGW\msys\1.0\msys.bat)
                and I go to the src folder and write: make -f Makefile.win

                (with make -f Makefile.win MINGW=yes I get the same the error)

                but I get an error:

                Code:
                Hernaldo@Naldo2 /c/FAangband-1.4.4/src
                $ make -f Makefile.win
                gcc -DWINDOWS -static -Iwin/include -Lwin/lib -Wall -Wextra -Wno-unused-paramete
                r -Wno-missing-field-initializers -std=c99 -Wdeclaration-after-statement -O2 -I.
                 -mno-cygwin -c -o z-file.o z-file.c
                make: gcc: Command not found
                make: *** [z-file.o] Error 127
                La web de Dark-N - Traducciones de Juegos
                http://darkn.romhackhispano.org/

                Comment

                • hernaldog
                  Rookie
                  • Apr 2014
                  • 21

                  #9
                  Originally posted by hernaldog
                  Now, I try this option. I use MINGW32 terminal in Windows (C:\MinGW\msys\1.0\msys.bat)
                  and I go to the src folder and write: make -f Makefile.win

                  (with make -f Makefile.win MINGW=yes I get the same the error)

                  but I get an error:

                  Code:
                  Hernaldo@Naldo2 /c/FAangband-1.4.4/src
                  $ make -f Makefile.win
                  gcc -DWINDOWS -static -Iwin/include -Lwin/lib -Wall -Wextra -Wno-unused-paramete
                  r -Wno-missing-field-initializers -std=c99 -Wdeclaration-after-statement -O2 -I.
                   -mno-cygwin -c -o z-file.o z-file.c
                  make: gcc: Command not found
                  make: *** [z-file.o] Error 127
                  I try other option. I install Cygwin, I choose make and gcc package.

                  I put the Environment path variable C:\cygwin\bin

                  In command prompt I put make -f Makefile.win and I get the same error that MINGW!

                  Code:
                  C:\FAangband-1.4.4\src>make -f Makefile.win
                  gcc -DWINDOWS -static -Iwin/include -Lwin/lib -Wall -Wextra -Wno-unused-paramete
                  r -Wno-missing-field-initializers -std=c99 -Wdeclaration-after-statement -O2 -I.
                   -mno-cygwin -c -o z-file.o z-file.c
                  make: gcc: Command not found
                  Makefile.win:125: recipe for target 'z-file.o' failed
                  make: *** [z-file.o] Error 127
                  The gcc.exe is installed I write:

                  Code:
                  C:\FAangband-1.4.4\src>gcc
                  gcc: fatal error: no input files
                  compilation terminated.
                  La web de Dark-N - Traducciones de Juegos
                  http://darkn.romhackhispano.org/

                  Comment

                  • Nick
                    Vanilla maintainer
                    • Apr 2007
                    • 9634

                    #10
                    You seem to me to be doing all the right things - I'm afraid working out what the problem is is beyond me.
                    One for the Dark Lord on his dark throne
                    In the Land of Mordor where the Shadows lie.

                    Comment

                    • hernaldog
                      Rookie
                      • Apr 2014
                      • 21

                      #11
                      Originally posted by Nick
                      You seem to me to be doing all the right things - I'm afraid working out what the problem is is beyond me.
                      Weird, four years ago I managed to compile FAangband 1.1.5, but can not remember the exact commands . Now if I go to my folder "C:\ FAangband1.1.5\src" and use make-f Makefile.win or make -f Makefile.win MINGW=yes gives me the same error:

                      Code:
                      C:\FAangband115\src>make -f Makefile.win MINGW=yes
                      gcc -DWINDOWS -Wall -W -std=iso9899:199409 -pedantic -O2 -I. -c -o attack.o atta
                      ck.c
                      make: gcc: Command not found
                      Makefile.win:113: recipe for target 'attack.o' failed
                      make: *** [attack.o] Error 127
                      
                      C:\FAangband115\src>make -f Makefile.win
                      gcc -DWINDOWS -Wall -W -std=iso9899:199409 -pedantic -O2 -I. -mno-cygwin -c -o a
                      ttack.o attack.c
                      make: gcc: Command not found
                      Makefile.win:113: recipe for target 'attack.o' failed
                      make: *** [attack.o] Error 127
                      Maybe I'm doing something wrong or I need to install something.
                      La web de Dark-N - Traducciones de Juegos
                      http://darkn.romhackhispano.org/

                      Comment

                      • Magnate
                        Angband Devteam member
                        • May 2007
                        • 5110

                        #12
                        This is your problem:

                        make: gcc: Command not found

                        This means you don't have gcc installed. I think it's part of minGW so google for that and install it. (Sorry, I don't build on Windows.)
                        "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

                        Comment

                        • hernaldog
                          Rookie
                          • Apr 2014
                          • 21

                          #13
                          Originally posted by Magnate
                          This is your problem:

                          make: gcc: Command not found

                          This means you don't have gcc installed. I think it's part of minGW so google for that and install it. (Sorry, I don't build on Windows.)
                          Thanks Magnate! I checked my Cygwin option (I reinstall it) and I had not checked gcc-g++(compiler collection for c++) and mingw-gcc and gdb packages, only I had gcc-core, now, when I write make -f Makefile.win inside Cygwin.bat, the error changed to error: unrecognized command line option '-mno-cygwin':

                          Code:
                          Hernaldo@Naldo2 /cygdrive/c/FAangband-1.4.4/src
                          $ make -f Makefile.win
                          gcc -DWINDOWS -static -Iwin/include -Lwin/lib -Wall -Wextra -Wno-unused-paramete
                          r -Wno-missing-field-initializers -std=c99 -Wdeclaration-after-statement -O2 -I.
                           -mno-cygwin -c -o z-file.o z-file.c
                          gcc: error: unrecognized command line option '-mno-cygwin'
                          Makefile.win:125: recipe for target 'z-file.o' failed
                          make: *** [z-file.o] Error 1
                          PD: Where do you build? on Linux?
                          Last edited by hernaldog; April 24, 2014, 00:46.
                          La web de Dark-N - Traducciones de Juegos
                          http://darkn.romhackhispano.org/

                          Comment

                          • Nick
                            Vanilla maintainer
                            • Apr 2007
                            • 9634

                            #14
                            Originally posted by hernaldog
                            error changed to error: unrecognized command line option '-mno-cygwin'
                            That is odd. You could try
                            Code:
                            MINGW=yes make -f Makefile.win
                            in cygwin - it seems to me like the wrong thing to do, but you never know.
                            One for the Dark Lord on his dark throne
                            In the Land of Mordor where the Shadows lie.

                            Comment

                            • hernaldog
                              Rookie
                              • Apr 2014
                              • 21

                              #15
                              Originally posted by Nick
                              That is odd. You could try
                              Code:
                              MINGW=yes make -f Makefile.win
                              in cygwin - it seems to me like the wrong thing to do, but you never know.
                              Wow! I advanced a few, now I get the error with direct.h file

                              Code:
                              Hernaldo@Naldo2 /cygdrive/c/FAangband-1.4.4/src
                              $ make -f Makefile.win MINGW=yes
                              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
                              z-file.c:25:21: fatal error: direct.h: No such file or directory
                               # include <direct.h>
                                                   ^
                              compilation terminated.
                              Makefile.win:125: recipe for target 'z-file.o' failed
                              make: *** [z-file.o] Error 1

                              I'm boring, can anyone explain how compile in Linux?? I will install everything I need, Linux emulator, etc. but I want to compile! Please tell me the steps. I need help
                              Last edited by hernaldog; April 24, 2014, 03:38.
                              La web de Dark-N - Traducciones de Juegos
                              http://darkn.romhackhispano.org/

                              Comment

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