Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Variants

Reply
 
Thread Tools Display Modes
Old April 18, 2014, 22:43   #1
hernaldog
Rookie
 
hernaldog's Avatar
 
Join Date: Apr 2014
Location: Santiago, Chile
Posts: 15
hernaldog is on a distinguished road
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!!
hernaldog is offline   Reply With Quote
Old April 19, 2014, 01:38   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 53
Posts: 7,213
Donated: $60
Nick is on a distinguished road
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.
Nick is offline   Reply With Quote
Old April 19, 2014, 05:18   #3
hernaldog
Rookie
 
hernaldog's Avatar
 
Join Date: Apr 2014
Location: Santiago, Chile
Posts: 15
hernaldog is on a distinguished road
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?
hernaldog is offline   Reply With Quote
Old April 19, 2014, 06:50   #4
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 53
Posts: 7,213
Donated: $60
Nick is on a distinguished road
Quote:
Originally Posted by hernaldog View Post
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.
Nick is offline   Reply With Quote
Old April 19, 2014, 16:46   #5
hernaldog
Rookie
 
hernaldog's Avatar
 
Join Date: Apr 2014
Location: Santiago, Chile
Posts: 15
hernaldog is on a distinguished road
Quote:
Originally Posted by Nick View Post
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 at 17:29.
hernaldog is offline   Reply With Quote
Old April 20, 2014, 00:21   #6
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 53
Posts: 7,213
Donated: $60
Nick is on a distinguished road
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.
Nick is offline   Reply With Quote
Old April 20, 2014, 02:34   #7
hernaldog
Rookie
 
hernaldog's Avatar
 
Join Date: Apr 2014
Location: Santiago, Chile
Posts: 15
hernaldog is on a distinguished road
Quote:
Originally Posted by Nick View Post
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?
hernaldog is offline   Reply With Quote
Old April 23, 2014, 05:32   #8
hernaldog
Rookie
 
hernaldog's Avatar
 
Join Date: Apr 2014
Location: Santiago, Chile
Posts: 15
hernaldog is on a distinguished road
Quote:
Originally Posted by hernaldog View Post
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
hernaldog is offline   Reply With Quote
Old April 23, 2014, 05:41   #9
hernaldog
Rookie
 
hernaldog's Avatar
 
Join Date: Apr 2014
Location: Santiago, Chile
Posts: 15
hernaldog is on a distinguished road
Quote:
Originally Posted by hernaldog View Post
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.
hernaldog is offline   Reply With Quote
Old April 23, 2014, 06:08   #10
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 53
Posts: 7,213
Donated: $60
Nick is on a distinguished road
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.
Nick is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Translate Angband 3.1.0 to other language hernaldo Development 35 July 25, 2010 13:52
Variant Project Nick Development 47 July 12, 2010 18:56
r1417 Makefile.inc is 403 forbidden. PaulBlay Development 1 May 31, 2009 17:20
/lib/pref/Makefile PaulBlay Development 1 April 10, 2009 21:38
Compiling using Makefile.nmake PaulBlay Vanilla 10 February 20, 2009 09:07


All times are GMT +1. The time now is 15:58.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.