fontconfig build issue

configure: error: Package requirements (fontconfig >= 2.4.1) were not met:

No package ‘fontconfig’ found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
and FONTCONFIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Error running configure at ./autogen.sh line 293.

fontconfig is part of the build dependencies which should have been installed prior to running ./autogen.sh. See this page (click here ) and under ‘Building LibreOffice – Tips and Tricks:’ go to post for your OS.

You didn’t mention your distro, but usually this implies you have to install the devel fontconfig package. For example on Ubuntu it would be libfontconfig1-dev (i.e. not just the fontconfig)

1 Like

@Hi-Angel,

This question is in regards to compiling LibreOffice and not just installing it.

But the answer seem to address exactly building scenario, where some build dependencies may be missing… (no idea if this is the actual problem in the original old question, though).

Obviously my lack of understanding of all involved in the process. :slight_smile: