fte-team / fteqw

This is the official GitHub mirror for the FTEQW project.
https://www.fteqw.org/
180 stars 55 forks source link

ft2build.h: No such file or directory #63

Closed Xylemon closed 1 year ago

Xylemon commented 1 year ago

https://sourceforge.net/p/fteqw/tickets/77/

mortfdpngn wrote on 2020-01-07:

Arch Linux

[parker@wolfcola ftequake-svn]$ pacman -Q freetype2 
freetype2 2.10.1-1
[parker@wolfcola ftequake-svn]$ pacman -Ql freetype2 | grep ft2
freetype2 /usr/include/freetype2/ft2build.h

gcc  -O3  -Wall -Wno-pointer-sign -Wno-unknown-pragmas -Wno-format-zero-length -Wno-strict-aliasing   -I/home/parker/.cache/yay/ftequake-svn/src/trunk/engine/client -I/home/parker/.cache/yay/ftequake-svn/src/trunk/engine/server -I/home/parker/.cache/yay/ftequake-svn/src/trunk/engine/common -I/home/parker/.cache/yay/ftequake-svn/src/trunk/engine/gl -I/home/parker/.cache/yay/ftequake-svn/src/trunk/engine/d3d -I/home/parker/.cache/yay/ftequake-svn/src/trunk/engine/qclib -I.  -I./dxsdk9/include -I./dxsdk7/include  -I/home/parker/.cache/yay/ftequake-svn/src/trunk/engine/botlib -DBOTLIB -DBOTLIB_STATIC  -DSVNREVISION=5600 -DSVNDATE=2020-01-13T07:03:28.509751Z -DCONFIG_FILE_NAME=config_fteqw.h -DLINK_PNG -DLINK_JPEG -DLINK_FREETYPE -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DFTEPLUGIN -o /home/parker/.cache/yay/ftequake-svn/src/trunk/engine/release/fteplug_models_amd64.so -shared -I../engine/libs-x86_64-pc-linux-gnu -fPIC -Wl,--no-undefined -Bsymbolic -fvisibility=hidden -static-libgcc -Imodels models/gltf.c models/exportiqm.c models/models.c plugin.c  -L../engine/libs-x86_64-pc-linux-gnu -L/usr/local/lib -Wl,-R/usr/local/lib -lm
/home/parker/.cache/yay/ftequake-svn/src/trunk/engine/gl/gl_font.c:45:10: error: #include expects "FILENAME" or <FILENAME>
   45 | #include FT_FREETYPE_H
      |          ^~~~~~~~~~~~~
make[4]: [Makefile:1773: /home/parker/.cache/yay/ftequake-svn/src/trunk/engine/release/m_linux/gl_font.o] Error 1 (ignored)
/home/parker/.cache/yay/ftequake-svn/src/trunk/engine/gl/gl_font.c:44:10: fatal error: ft2build.h: No such file or directory
   44 | #include <ft2build.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:1774: /home/parker/.cache/yay/ftequake-svn/src/trunk/engine/release/m_linux/gl_font.o] Error 1
make[3]: *** [Makefile:1846: _out-rel] Error 2
make[2]: *** [Makefile:1871: _clsv-rel] Error 2
make[1]: *** [Makefile:1959: m-tmp] Error 2
make: *** [Makefile:1968: m-rel] Error 2
make: *** Waiting for unfinished jobs....

Tickets: #77

Xylemon commented 1 year ago

mortfdpngn wrote on 2020-01-20:

This is with the make command

make -C engine sv-rel gl-rel mingl-rel qcc-rel vk-rel
Xylemon commented 1 year ago

@Xylemon wrote on 2022-03-03:

EDIT: Apologies, didn't see the "Arch Linux" bit above the log.

If it still fails, try building FTEQuake like so:

make -j4 gl-rel sv-rel plugins-rel CFLAGS+=' -fcommon -I/usr/include/freetype2'

This was reported to be working on the AUR for ftequake:

https://aur.archlinux.org/packages/ftequake

If FTE still fails to compile on Arch, feel free to comment or open a new issue, otherwise I'm going to assume this should be closed.   Last edit: Xylemon 2022-03-03

Xylemon commented 1 year ago

mortfdpngn wrote on 2022-03-03

I thought I had mentioned Arch Linux at the start of the ticket. It's been so long now that I don't even remember doing this. It is fine to close this out, thanks.

Xylemon commented 1 year ago

@Xylemon wrote on 2022-03-03:

Yeah sorry about that, somehow missed it. Thanks for being understanding.