|
Post by Nerdanel on Aug 4, 2006 10:35:01 GMT -5
I got the beta to compile and run on Linux, but it needed some tweaking first. Here's what I needed to do:
First I had to get rid of this error message:
$ make -f MAKEFILE.ORG gcc -Wall -O1 -pipe -g -D"USE_X11" -c -o z-util.o z-util.c In file included from h-basic.h:16, from z-util.h:6, from z-util.c:5: h-system.h:108:21: macro "strchr" requires 2 arguments, but only 1 given In file included from h-basic.h:16, from z-util.h:6, from z-util.c:5: h-system.h:108: error: 'strchr' redeclared as different kind of symbol h-system.h:108: error: 'strchr' redeclared as different kind of symbol make: *** [z-util.o] Error 1
I commented out the line 108 from h-system.h. This got rid of the error and seemed to have no negative effects.
FILES.C and INIT2.C needed to be in completely in lowercase, as Linux is case sensitive.
It turned out that learn.c, mongen.c and their respective object files were missing from the makefile. After I fixed this, the beta compiled.
It wouldn't run, however. I had to rename the beta directory into lib and change various files into lowercase:
NEWS.TXT -> news.txt MONSPEAK.TXT -> monspeak.txt WF_INFO.TXT -> wf_info.txt W_INFO.TXT -> w_info.txt T_INFO.TXT -> t_info.txt T_PREF.TXT -> t_pref.txt STORY.TXT -> story.txt HELP.HLP -> help.hlp
I'm not sure if I got all of them, but that seemed to do it. Now into playing...
|
|
|
Post by Variaz on Aug 4, 2006 11:32:28 GMT -5
Thanks. I actually never tried to compile it for Linux... simply because I no longer have Linux on my computer... Now, perhaps I could try installing it on a virtual machine... that would allow me to compile Linux versions of NewAngband, or at least make sure everything works in the Linux version...
|
|
|
Post by Variaz on Sept 4, 2006 12:10:25 GMT -5
Just bought a new laptop computer, and in addition to allowing me to code everywhere I go, I installed Linux on the laptop! Now, there will once again be linux versions of the game! Also, the bug with the player not showing up on the screen has been fixed! Now the Linux version will be as playable as the Windows version!
|
|