Fontconfig missing include header file
I'm using:
pkg_check_modules(FONTCONFIG REQUIRED fontconfig)
Then ${FONTCONFIG_INCLUDE_DIRS}
doesn't contain the /usr/include/fontconfig
folder?! This is the folder location were fontconfig.h is located. My build actually succeed when building the Linux target. But cross-compiling from Linux to Windows does give issues with fontconfig.
The $FONTCONFIG_INCLUDE_DIRS
shows only:
- /usr/include/uuid
- /usr/include/freetype2
- /usr/include/libpng16
See cmake file: https://gitlab.kitware.com/cmake/cmake/-/blob/master/Modules/FindFontconfig.cmake
Thanks in advance!
Error:
In file included from /usr/include/cairomm-1.0/cairomm/enums.h:23,
from /usr/include/cairomm-1.0/cairomm/surface.h:37,
from /usr/include/cairomm-1.0/cairomm/context.h:24,
from /usr/include/pangomm-1.4/pangomm/context.h:42,
from /usr/include/gtkmm-3.0/gtkmm/widget.h:31,
from /usr/include/gtkmm-3.0/gtkmm/container.h:28,
from /usr/include/gtkmm-3.0/gtkmm/textview.h:32,
from ../src/draw.h:4,
from ../src/draw.cc:1:
/usr/include/cairo/cairo-ft.h:50:10: fatal error: fontconfig/fontconfig.h: No such file or directory
50 | #include <fontconfig/fontconfig.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Regards,
Melroy van den berg