[cairo] Cairo cannot locate Xlib.h
Dave Yeo
dave.r.yeo at gmail.com
Wed Sep 9 02:44:45 UTC 2020
On 09/08/20 04:33 PM, alexandre schenberg wrote:
> No, I never was able to compile anything with X11 support. I tried the
> test program, but with modifications. I changedt he three first includes to:
> #include
> "/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/include/X11/Xlib.h"
> #include
> "/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/include/X11/Xutil.h"
> #include
> "/media/34GB/Arquivos-de-Programas-Linux/xorg/Xproto-7.0.17/include/X11/Xos.h"
What I usually do when compiling something in a weird location is create
a script to set the environment up. For Linux, something like (syntax
might be off and watch unintended line wrapping),
#!sh
export
C_INCLUDE_PATH=/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/include/:$C_INCLUDE_PATH
export
CPLUS_INCLUDE_PATH=/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/include/:$CPLUS_INCLUDE_PATH
export
LIBRARY_PATH=/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/lib/:$LIBRARY_PATH
...
with similar for pkgconfig and perhaps PATH. Adjust as needed. If done
right, you can chain different ones together.
Dave
More information about the cairo
mailing list