Hello. I am currently trying to compile the package "Cairo", with support to X libraries. I use this commands:
 
./configure --prefix=/media/34GB/Arquivos-de-Programas-Linux/Cairo-1.2.6 PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux/Png-1.0.19/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Fontconfig-2.4.0/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Freetype-2.2.1/lib/pkgconfig/ --x-includes=/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/include/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xproto-7.0.17/include/ --x-libraries=/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/lib/
 
However during compilation, an initial error message comes up, telling it can't find X11/Xlib.h
 
Despite the message giving the indication that such dir/file combination is not present, it is passed by during the configuration phase. It is passed by: "--x-includes=/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/include/" being that X11 is inside the include dir.
 
I know the --x-includes is working as intended, because when I do not pass "/media/34GB/Arquivos-de-Programas-Linux/xorg/Xproto-7.0.17/include/", the compilation gives errors before the current one, complaining about the lack of X.h and three other errors that are in the include dir of Xproto.
 
Yet is incapable of locate Xlib.h inside the  X11 dir.
 
After running configure, at the end of it is said:
"
using CFLAGS:
-I/media/34GB/Arquivos-de-Programas-Linux/Freetype-2.2.1//include/freetype2 -I/media/34GB/Arquivos-de-Programas-Linux/Freetype-2.2.1//include -I/media/34GB/Arquivos-de-Programas-Linux/Fontconfig-2.4.0//include -I/media/34GB/Arquivos-de-Programas-Linux/Png-1.0.19//include/libpng10 -I/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/include/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xproto-7.0.17/include/
 
As can be seen, the X11-1.6.7/include , where X11 and Xlib.h are, is included in the search path of the compiler.
 
Then reading the Makefile, I found:
"CAIRO_CFLAGS = -I/media/34GB/Arquivos-de-Programas-Linux/Freetype-2.2.1//include/freetype2 -I/media/34GB/Arquivos-de-Programas-Linux/Freetype-2.2.1//include -I/media/34GB/Arquivos-de-Programas-Linux/Fontconfig-2.4.0//include -I/media/34GB/Arquivos-de-Programas-Linux/Png-1.0.19//include/libpng10 -I/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/include/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xproto-7.0.17/include/"
 
Once again, it is there. It also shows up on "CAIRO_NONPKGCONFIG_CFLAGS", where it is equal to "= -I/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/include/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xproto-7.0.17/include/"
 
So, why in name of gods it is not finding the X11 dir and Xlib.h?
"
 
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Reply via email to