My path to compile Tremulous

So I’m trying to compile Tremulous, but both Windows and Linux it throws me heaps of errors in my face (Cron, still haven’t tried the Windows solution you gave, will give that a go this weekend)

This topic is mainly for myself to keep track of my progress and possibly help others in the future to compile Tremulous on a modern day Debian.

Step one: install GCC (should be there by default, my debian install lacked it due to netinstall without a net)
Step two: apt-get install libsdl-gfx1.2-dev (Will ask to download a ton more libs, just Y it)
Step three: ln -s /usr/include/freetype2 /usr/local/include/freetype
Step four: Work in Progress.

For now I’m stuck on getting freetype to cooperate, throws me

In file included from src/renderer/tr_font.c:80:0: /usr/include/freetype2/fterrdef.h:34:3: error: expected ‘,’ or ‘}’ before ‘(’ token FT_NOERRORDEF_( Ok, 0x00, \ ^ Makefile:1646: recipe for target 'build/release-linux-x86_64/client/tr_font.o' failed make[2]: *** [build/release-linux-x86_64/client/tr_font.o] Error 1 make[2]: Leaving directory '/home/dunc/grangerhub/git/tremulous-1-1' Makefile:968: recipe for target 'targets' failed make[1]: *** [targets] Error 2 make[1]: Leaving directory '/home/dunc/grangerhub/git/tremulous-1-1' Makefile:959: recipe for target 'release' failed make: *** [release] Error 2

So yeah , currently stuck here. Not sure what my next step would be, googling hasnt giving me any help, there was a tremulous topic somewhere, but its gone now (only shows in google results, website itself removed it and archive.org didnt archive it >.>)

uhm, WRONG ?

Without the linking, this error is thrown at me:

[code]src/renderer/tr_font.c:80:31: fatal error: freetype/fterrors.h: No such file or directory
#include <freetype/fterrors.h>
^
compilation terminated.
Makefile:1646: recipe for target ‘build/release-linux-x86_64/client/tr_font.o’ failed
make[2]: *** [build/release-linux-x86_64/client/tr_font.o] Error 1
make[2]: Leaving directory ‘/home/dunc/grangerhub/git/tremulous-1-1’
Makefile:968: recipe for target ‘targets’ failed
make[1]: *** [targets] Error 2
make[1]: Leaving directory ‘/home/dunc/grangerhub/git/tremulous-1-1’
Makefile:959: recipe for target ‘release’ failed
make: *** [release] Error 2

[/code]

Other solution was to just change the include to #include “freetype.h”, but there is no such include and didn’t want to dick around in the makefile where grep -r ‘freetype’ only gave me


dunc@debian:~/grangerhub/git/tremulous-1-1$ grep -r "freetype"
patches/Lakitu7-freetype+consolecustomize.patch: #include <freetype/fterrors.h>
patches/Lakitu7-freetype+consolecustomize.patch: #include <freetype/ftsystem.h>
patches/Lakitu7-freetype+consolecustomize.patch:+    BASE_CFLAGS += -DBUILD_FREETYPE $(shell freetype-config --cflags)
patches/Lakitu7-freetype+consolecustomize.patch:+    CLIENT_LDFLAGS += -lfreetype
patches/Lakitu7-freetype+consolecustomize.patch:+    BASE_CFLAGS += -DBUILD_FREETYPE $(shell freetype-config --cflags)
patches/Lakitu7-freetype+consolecustomize.patch:+    CLIENT_LDFLAGS += $(shell freetype-config --libs)
patches/Lakitu7-freetype+consolecustomize.patch:+    BASE_CFLAGS += -I/include/freetype2
patches/Lakitu7-freetype+consolecustomize.patch:+    CLIENT_LDFLAGS += -lfreetype
Makefile:    BASE_CFLAGS += -DBUILD_FREETYPE $(shell freetype-config --cflags)
Makefile:    CLIENT_LDFLAGS += -lfreetype
Makefile:    BASE_CFLAGS += -DBUILD_FREETYPE $(shell freetype-config --cflags)
Makefile:    CLIENT_LDFLAGS += $(shell freetype-config --libs)
Makefile:    BASE_CFLAGS += -I/include/freetype2
Makefile:    CLIENT_LDFLAGS += -lfreetype

what shitcode is this, anyway ?

how about u try the latest GitHub code ?

Kent’s. I’ll try ur link