Difference between revisions of "Netrek on Fulong"

From In The Wings
Jump to navigation Jump to search
Line 26: Line 26:
 
make[1]: Leaving directory `/home/jka/freetype-1.3.1/test'
 
make[1]: Leaving directory `/home/jka/freetype-1.3.1/test'
 
make: *** [tttest] Error 2
 
make: *** [tttest] Error 2
 +
</pre>
 +
Alright... well then, let's get rid of the testing portion of freetype. It isn't like we need it, right?  :)
 +
<pre>
 +
12c12
 +
< all: ttlib ttpo
 +
---
 +
> all: ttlib tttest ttpo
 +
34c34
 +
< #    cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) install
 +
---
 +
>      cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) install
 
</pre>
 
</pre>

Revision as of 15:24, 19 December 2007

Introduction

So, one of the games that I loved back when I first started out using a unix based OS (back then it was either SunOS or HPUX) was netrek. I was introduced to it by Rob Forsman back then, as he was a major developer for it. So I figured it would be an interesting thing to get working on this particular machine.

Sources

Creation

The first problem I ran into was that this software required the use of Imlib2. OK, not a problem, except that there are no packages for Imlib2 in the Lemote distribution of Debian, so I had to grab the tarball and go from scratch.

I did this only to find that Imlib2 in turn depends on libttf.so, which is a part of the freetype package. Now, interestingly enough, freetype has since given up on the creation of libttf, and now puts everything into libfreetype. So it looks like Imlib2 is ancient as well since it depends on something that is also ancient.

So I grab version 1 of freetype and proceed.

Freetype

Configure went fine, but when it came time to make, I ran into the following problem during the testing section of the build:

gcc -c -I. -I/home/jka/freetype-1.3.1/test/arch/unix/../.. -I.. -I/home/jka/freetype-1.3.1/test/arch/unix/../../../lib -I/home/jka/freetype-1.3.1/test/arch/unix/../../../lib/extend -g -O2  -Wall -pedantic -ansi  -DX11 -DLOCALEDIR='"/usr/local/share/locale"' ftdump.c
ftdump.c:172:1: error: pasting "." and "glyph_object" does not give a valid preprocessing token
ftdump.c:182:1: error: pasting "." and "first_instance" does not give a valid preprocessing token
ftdump.c:191:1: error: pasting "." and "second_instance" does not give a valid preprocessing token
ftdump.c:201:1: error: pasting "." and "face_object" does not give a valid preprocessing token
ftdump.c:202:1: error: pasting "." and "glyph_object" does not give a valid preprocessing token
ftdump.c:203:1: error: pasting "." and "second_instance" does not give a valid preprocessing token
ftdump.c:863:1: error: pasting "." and "initial_overhead" does not give a valid preprocessing token
ftdump.c:882:1: error: pasting "." and "face_object" does not give a valid preprocessing token
make[1]: *** [ftdump.o] Error 1
make[1]: Leaving directory `/home/jka/freetype-1.3.1/test'
make: *** [tttest] Error 2

Alright... well then, let's get rid of the testing portion of freetype. It isn't like we need it, right? :)

12c12
< all: ttlib ttpo
---
> all: ttlib tttest ttpo
34c34
< #     cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) install
---
>       cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) install