[cairo] Problem to compile Cairo.

Behdad Esfahbod behdad at behdad.org
Sun Aug 16 05:31:18 UTC 2020


This sounds like a problem with your setup, not a problem with Cairo.

On Sat, Aug 15, 2020, 5:46 PM alexandre schenberg <ale.schenberg at yandex.com>
wrote:

> Hello, I was trying to to compile Cairo 1.26 and faced two problems. First
> configure was not detecting the directory of lib PNG through the
> environment variables png_CFLAGS and png_LIBS. I was able to circumvent it
> through the use of PKG_CONFIG_PATH, but would like to know why they didn't
> work. Anyway, during the compiling I am suddenly faced with countless error
> messages, many of them being like: "SOMETHING undeclared" "SOMETHING has no
> member SOMETHING2". Moving to the beginning of the error messages I see
> these two lines: "./cairo-ft.h:46:35: error: fontconfig/fontconfig.h: No
> such file or directory
> ./cairo-ft.h:47:22: error: ft2build.h: No such file or directory"
>
> Nonetheless what is being said, I DO have these files. fontconfig.h is in:
> "/media/34GB/Arquivos-de-Programas-Linux/Fontconfig-2.4.0/include/fontconfig/fontconfig.h"
> and "ft2build.h" is in:
> "/media/34GB/Arquivos-de-Programas-Linux/Freetype-2.2.1/include/ft2build.h".
> Both files should be detected during the configure phase, because I tell it
> about them with:
> PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux/Png-1.0.19/lib/pkgconfig/
> FONTCONFIG_CFLAGS=/media/34GB/Arquivos-de-Programas-Linux/Fontconfig-2.4.0/include/
> FONTCONFIG_LIBS=/media/34GB/Arquivos-de-Programas-Linux/Fontconfig-2.4.0/lib/
> FREETYPE_CFLAGS=/media/34GB/Arquivos-de-Programas-Linux/Freetype-2.2.1/include/
> FREETYPE_LIBS=/media/34GB/Arquivos-de-Programas-Linux/Freetype-2.2.1/lib/
>
> DUring the configure both Freetype and Fontconfig are detected, although
> some specific files are not, as can be seen by:
>
> "checking for FONTCONFIG... yes
> checking for FcFini... no
> checking for FREETYPE... yes
> checking whether cairo's FreeType font backend could be enabled... yes
> configure: creating src/cairo-ft.pc
> checking for FT_Bitmap_Size.y_ppem... no
> checking for FT_GlyphSlot_Embolden... no
> checking for FT_Load_Sfnt_Table... no
> "
>
> But in the end, this appears: "the following font backends:
> FreeType: yes
> "
>
> So, why isn't make finding these two basic headers that apparently are
> detected by configure? And how can I solve it?
> --
> cairo mailing list
> cairo at cairographics.org
> https://lists.cairographics.org/mailman/listinfo/cairo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20200815/cf8c9c5b/attachment.htm>


More information about the cairo mailing list