![]() |
#1 |
Rookie
Join Date: Sep 2008
Posts: 11
![]() |
![]()
Hello,
Before I start to scratch my hair off my head, I thought I would better ask here first if anyone wise geek could give me clues for compiling Z+Angband under Windows. Especially, what compilator and what makefile file should do the best work ? I've tried using gnuwin with makefile.std (following some Andrew Doull advices), but with no success. Edit: thanks to Mango Juice, here is the howto.
__________________
Last edited by Altefcat; December 11, 2008 at 08:56. |
![]() |
![]() |
![]() |
#2 | |
Z+Angband Maintainer
Join Date: Jun 2008
Posts: 318
![]() |
Quote:
lua\tolua.exe -o l-spell.c l-spell.pkg Do this for each .pkg file. You can then do "make install_game" in the \src directory to make the executable. Hopefully that will work for you.
__________________
----------------------------------------- Z+Angband: A Zangband evolution http://tinyurl.com/5pq2bd |
|
![]() |
![]() |
![]() |
#3 |
Z+Angband Maintainer
Join Date: Jun 2008
Posts: 318
![]() |
Oops, forgot to attach the file. Here it is. Download it to your \src directory and then do
Code:
move tolua_make.txt tolua_make.bat tolua_make
__________________
----------------------------------------- Z+Angband: A Zangband evolution http://tinyurl.com/5pq2bd |
![]() |
![]() |
![]() |
#4 |
Rookie
Join Date: Sep 2008
Posts: 11
![]() |
Ok thank you for your reply. The tolua_make.bat file was already in the lua folder. But that's not working; first I get some warnings with tolua_make.bat, I don't know if that matters a lot:
Code:
Warning lapi.c: 115 Statement has no effect 0 errors, 1 warning Warning liolib.c: 313 indexing array 122[512] out of bounds (512) 0 errors, 1 warning Error lobject.c: 21 compiler error in defconst--Constant not recognized of type Value Warning lparser.c: 399 Statement has no effect 0 errors, 1 warning Warning lstrlib.c: 56 indexing array 32[512] out of bounds (512) Warning lstrlib.c: 69 indexing array 45[512] out of bounds (512) Warning lstrlib.c: 105 indexing array 78[512] out of bounds (512) Warning lstrlib.c: 497 indexing array 432[512] out of bounds (512) Warning lstrlib.c: 540 indexing array 486[512] out of bounds (512) Warning lstrlib.c: 542 indexing array 492[512] out of bounds (512) 0 errors, 6 warnings Warning lzio.c: 21 Statement has no effect 0 errors, 1 warning Warning tolualua.c: 16 Statement has no effect Warning tolualua.c: 2976 Statement has no effect 0 errors, 2 warnings Warning tolua_bd.c: 24 Statement has no effect 0 errors, 1 warning Warning tolua_gp.c: 107 Statement has no effect 0 errors, 1 warning Code:
C:\lcc\bin\lcc.exe -O -g l-monst.c cpp: c:\jeux\zplusangband_031beta_src\src\lua\tolua.h:28 l-monst.c:6 Could not find include file "lua.h" Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 32 syntax error; found `*' expecting ')' Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 32 skipping `*' `L' Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 32 extraneous old-style parameter list Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 33 syntax error; found `*' expecting ')' Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 33 skipping `*' `L' `,' Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 33 Syntax error; missing semicolon before `)' Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 33 skipping `)' Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 34 syntax error; found `*' expecting ')' Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 34 skipping `*' `L' `,' Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 34 extraneous old-style parameter list Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 34 Syntax error; missing semicolon before `int' Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 34 missing identifier Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 34 Syntax error; missing semicolon before `int' Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 34 Syntax error; missing semicolon before `)' Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 34 skipping `)' Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 35 syntax error; found `*' expecting ')' Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 35 skipping `*' `L' `,' Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 35 extraneous old-style parameter list Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 35 Syntax error; missing semicolon before `int' Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 35 missing identifier Error c:\jeux\zplusangband_031beta_src\src\l-monst.c: lua\tolua.h: 35 too many errors make.exe: Error code 1 Please find attached a batch file I've done to try to automize the whole make process. By the way I've installed lcc from the first link of that page. |
![]() |
![]() |
![]() |
#5 | ||
Z+Angband Maintainer
Join Date: Jun 2008
Posts: 318
![]() |
Quote:
Quote:
__________________
----------------------------------------- Z+Angband: A Zangband evolution http://tinyurl.com/5pq2bd |
||
![]() |
![]() |
![]() |
#6 |
Rookie
Join Date: Sep 2008
Posts: 11
![]() |
Copying lua.h to the source dir solved the first error, but then I got:
Code:
C:\lcc\bin\lcc.exe -O -g l-monst.c Error l-monst.c: 9 Syntax error; missing semicolon before `-' Error l-monst.c: 9 unrecognized declaration Warning l-monst.c: 9 no type specified. Defaulting to int Error l-monst.c: 10 redefinition of 'tolua_l' Error l-monst.c: 9 Previous definition of 'tolua_l' here Error l-monst.c: 10 Syntax error; missing semicolon before `-' Error l-monst.c: 10 unrecognized declaration Warning l-monst.c: 10 no type specified. Defaulting to int Warning l-monst.c: 17 Statement has no effect Error l-monst.c: 22 Syntax error; missing semicolon before `-' Error l-monst.c: 22 unrecognized declaration Warning l-monst.c: 22 no type specified. Defaulting to int Error l-monst.c: 32 Syntax error; missing semicolon before `-' Error l-monst.c: 32 unrecognized declaration Warning l-monst.c: 32 no type specified. Defaulting to int Error l-monst.c: 33 redefinition of function 'monst_monster_race_flags' Error l-monst.c: 22 Previous definition of 'monst_monster_race_flags' here Error l-monst.c: 42 Syntax error; missing semicolon before `-' Error l-monst.c: 42 unrecognized declaration Warning l-monst.c: 42 no type specified. Defaulting to int Error l-monst.c: 50 Syntax error; missing semicolon before `-' Error l-monst.c: 50 unrecognized declaration Warning l-monst.c: 50 no type specified. Defaulting to int Error l-monst.c: 51 redefinition of function 'monst_monster_race_d_char' Error l-monst.c: 42 Previous definition of 'monst_monster_race_d_char' here Error l-monst.c: 60 Syntax error; missing semicolon before `-' Error l-monst.c: 60 unrecognized declaration Warning l-monst.c: 60 no type specified. Defaulting to int Error l-monst.c: 68 too many errors c:\lcc\bin\make.exe: Error code 1 Maybe it's because of a different lcc version? I have: Code:
C:\Jeux\ZPlusAngband_031beta_src\src>lcc.exe -v Logiciels/Informatique lcc-win32 version 3.8. Compilation date: Dec 2 2008 14:31:08 |
![]() |
![]() |
![]() |
#7 | |
Z+Angband Maintainer
Join Date: Jun 2008
Posts: 318
![]() |
Quote:
"lua\tolua.exe -n monst -o l-monst.c l-monst.pkg" to make l-monst.c; the "-n monst" makes the base name for all the functions "monst" instead of "l-monst", which confuses the compiler badly because it thinks the '-' is subtraction.
__________________
----------------------------------------- Z+Angband: A Zangband evolution http://tinyurl.com/5pq2bd |
|
![]() |
![]() |
![]() |
#8 | |
Rookie
Join Date: Sep 2008
Posts: 11
![]() |
Quote:
I've updated the first post to give the full procedure. Is it possible to remove the '?' in the title? |
|
![]() |
![]() |
![]() |
#9 |
Administrator
|
Sure, done.
__________________
See the elves and everything! http://angband.oook.cz |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Unangband/Angband from SVN and Compiling on Windows | andrewdoull | Development | 133 | April 7, 2011 14:28 |
Angband Borg 3.0.9 and windows | Zappa | Vanilla | 38 | October 27, 2010 20:31 |
graphic problems Windows XP Angband | ditoLoco | Vanilla | 5 | May 8, 2009 06:33 |
Windows Compiling and Makefiles | APWhite | Vanilla | 11 | August 22, 2007 21:22 |
Trouble compiling angband 3.0.9 on linux | RastaRuedi | Vanilla | 2 | August 1, 2007 17:28 |