<div><div>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</div><div>./cairo-ft.h:47:22: error: ft2build.h: No such file or directory"</div><div> </div><div>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/</div><div> </div><div>DUring the configure both Freetype and Fontconfig are detected, although some specific files are not, as can be seen by:</div><div> </div><div>"checking for FONTCONFIG... yes</div><div>checking for FcFini... no</div><div>checking for FREETYPE... yes</div><div>checking whether cairo's FreeType font backend could be enabled... yes</div><div>configure: creating src/cairo-ft.pc</div><div>checking for FT_Bitmap_Size.y_ppem... no</div><div>checking for FT_GlyphSlot_Embolden... no</div><div>checking for FT_Load_Sfnt_Table... no</div><div>"</div><div> </div><div>But in the end, this appears: "the following font backends:</div><div>FreeType: yes</div><div>"</div><div> </div><div>So, why isn't make finding these two basic headers that apparently are detected by configure? And how can I solve it?</div></div>