[poppler] cmake can't find fontconfig, although it's installed

Knute Snortum ksnortum at gmail.com
Tue Dec 31 16:33:51 UTC 2019


poppler 0.83.0
Ubuntu 19.10

When running "cmake .." I get the following message:

-- Checking for module 'fontconfig'
--   No package 'fontconfig' found
CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137
(message):
  Could NOT find Fontconfig (missing: FONTCONFIG_LIBRARIES
  FONTCONFIG_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378
(_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindFontconfig.cmake:45 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:127 (find_package)

However, fontconfig is installed on my system:

$ apt list fontconfig
Listing... Done
fontconfig/eoan,now 2.13.1-2ubuntu2 amd64 [installed]
fontconfig/eoan 2.13.1-2ubuntu2 i386

Any ideas on how to proceed?

(I am an end user, not a developer.  Poppler is used in Frescobaldi
which I am installing)

TIA

---
Knute Snortum
(via Gmail)


More information about the poppler mailing list