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
error in linux build (redhat 7.1)
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Re: error in linux build (redhat 7.1)
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?
Also, what does the command 'freetype-config --cflags' return?
Re: error in linux build (redhat 7.1)
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
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
Re: error in linux build (redhat 7.1)
Why not run configure with the --disable-tools switch ?
Re: error in linux build (redhat 7.1)
the relevant source file (shapes/fontgen.cc) is always compiled when freetype 2 is found
Re: error in linux build (redhat 7.1)
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!!
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!!
Re: error in linux build (redhat 7.1)
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 )
(Unless freetype-config is in that dir? It isn't for me, but you never know )