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

Valerio Messina efa at iol.it
Thu Jan 2 17:05:55 UTC 2020


check you have the lib-dev package:
$ apt list libfontconfig*
Listing... Done
libfontconfig1/bionic,now 2.12.6-0ubuntu2 amd64 [installed]
libfontconfig1-dev/bionic,now 2.12.6-0ubuntu2 amd64 [installed]

Valerio



On 12/31/19 17:33, Knute Snortum wrote:
> 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)
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/poppler
> 


-- 
Valerio


More information about the poppler mailing list