<div>Ok some progress apparently happened</div><div> <div>when I add a  export C_INCLUDE_PATH=/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/include/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xproto-7.0.17/include/ it works and I am able to get rid of the Xlib.h error. However, if I omit the export, it does not work. Why? I mean, I read about the export command, but I am unsure what is being inherited here.</div><div>Export does make to inherit the C_INCLUDE_PATH value, while without the export, it does not receive it?</div><div> </div><div>Anyway, now I started to face a new issue:</div><div><div> </div><div>libtool: link: warning: library `/media/34GB/Arquivos-de-Programas-Linux/Pixman-0.18.4/lib/libpixman-1.la' was moved.</div><div>/usr/bin/ld: cannot find -lX11</div><div>collect2: ld returned 1 exit status</div><div>make[3]: *** [libcairo.la] Error 1</div><div> </div><div>After this, I also added the:</div><div>export LIBRARY_PATH=/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/lib/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xproto-7.0.17/lib/:$LIBRARY_PATH</div><div> </div><div>The error messages increased:</div><div> </div><div><div>libtool: link: warning: library `/media/34GB/Arquivos-de-Programas-Linux/Pixman-0.18.4/lib/libpixman-1.la' was moved.</div><div>libtool: link: warning: library `/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/lib/libX11.la' was moved.</div><div>/bin/grep: /media/34GB/Arquivos-de-Programas-Linux/Xcb-1.13/lib/libxcb.la: No such file or directory</div><div>/bin/sed: can't read /media/34GB/Arquivos-de-Programas-Linux/Xcb-1.13/lib/libxcb.la: No such file or directory</div><div>libtool: link: `/media/34GB/Arquivos-de-Programas-Linux/Xcb-1.13/lib/libxcb.la' is not a valid libtool archive</div><div>make[3]: *** [libcairo.la] Error 1</div></div><div> </div><div>What shall I do about these errors?</div></div></div><div><br /></div><div><br /></div><div>09.09.2020, 05:45, "Dave Yeo" <dave.r.yeo@gmail.com>:</div><blockquote><p>On 09/08/20 04:33 PM, alexandre schenberg wrote:<br /></p><blockquote class="210e7a848e8fcb45wmi-quote"> No, I never was able to compile anything with X11 support. I tried the<br /> test program, but with modifications. I changedt he three first includes to:<br /> #include<br /> "/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/include/X11/Xlib.h"<br /> #include<br /> "/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/include/X11/Xutil.h"<br /> #include<br /> "/media/34GB/Arquivos-de-Programas-Linux/xorg/Xproto-7.0.17/include/X11/Xos.h"<br /></blockquote><p><br />What I usually do when compiling something in a weird location is create <br />a script to set the environment up. For Linux, something like (syntax <br />might be off and watch unintended line wrapping),<br />#!sh<br />export <br />C_INCLUDE_PATH=/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/include/:$C_INCLUDE_PATH<br />export <br />CPLUS_INCLUDE_PATH=/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/include/:$CPLUS_INCLUDE_PATH<br />export <br />LIBRARY_PATH=/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/lib/:$LIBRARY_PATH<br />...<br />with similar for pkgconfig and perhaps PATH. Adjust as needed. If done <br />right, you can chain different ones together.<br />Dave<br /></p><span class="f55bbb4eeef208e8wmi-sign">-- <br />cairo mailing list<br /><a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br /><a href="https://lists.cairographics.org/mailman/listinfo/cairo">https://lists.cairographics.org/mailman/listinfo/cairo</a><br /></span></blockquote>