error in linux build (redhat 7.1)

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Bullroarer

error in linux build (redhat 7.1)

Post by Bullroarer »

Hey guys, I trying to build Exult 1.0 from source on Linux Red Hat 7.1, and in 'make' it ends up with this error:

fontgen.cc:31:22: ft2build.h: No such file or directory
fontgen.cc:32:10: #include expects "FILENAME" or
make[2]: ** [fontgen.lo] Erro 1
make[2]: Saindo do diretório `/home/l33mhz/exult-1.00/shapes'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/home/l33mhz/exult-1.00'
make: ** [all-recursive-am] Erro 2

it's in portuguese:
"Erro" = Error;
"Saindo do diretório" = Leaving directory;


Please, if anyone know what to do to build it right, let me know... I'm really desperate to play it on my linux box.

thanks in advance,

Bullroarer
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: error in linux build (redhat 7.1)

Post by wjp »

Hm, this means it can't find the freetype 2 header file 'ft2build.h'. Do you have that installed on your system anywhere?

Also, what does the command 'freetype-config --cflags' return?
Bullroarer

Re: error in linux build (redhat 7.1)

Post by Bullroarer »

Hello again!

wjp, the command returns "-I/usr/include/freetype2"..
but there's no 'ft2build.h' on it or anywhere on my system..
there is a 'ftbuild.h' on /usr/include/freetype2/freetype/config/, I wonder if that one works?? Even if it works, how will I point the exult installation to that one? Or, should I try to find 'ft2build.h' somewhere and put it on my system so that it will be found?

Thanks in advance for your patience and help,

Bullroarer
nadir
Site Admin
Posts: 407
Joined: Thu May 14, 2020 1:34 pm

Re: error in linux build (redhat 7.1)

Post by nadir »

Why not run configure with the --disable-tools switch ?
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: error in linux build (redhat 7.1)

Post by wjp »

the relevant source file (shapes/fontgen.cc) is always compiled when freetype 2 is found
Bullroarer

Re: error in linux build (redhat 7.1)

Post by Bullroarer »

I got it to work!! Thanks a lot for your help, everyone!

Just in case someone is experiencing the same problem, that's what I did:

- I installed the latest Freetype 2 (www.freetype.org), and then I added "/usr/include/freetype2" to my $PATH; This is the path I got from "freetype-config --cflags".

That's it, it's running okay now!! Thank you!!
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: error in linux build (redhat 7.1)

Post by wjp »

adding an include directory to your PATH doesn't do anything. $PATH is just used for locating executables.

(Unless freetype-config is in that dir? It isn't for me, but you never know :-) )
Locked