MacOS 11.6.2 (iMac Late 2014, Intel)
XQuartz 2.8.1 (xorg-server 1.20.11)
R 4.1.2
cd /opt/X11
❯ ls
bin etc include lib libexec share var
Just setting
Sys.setenv(C_INCLUDE_PATH="/opt/X11/include")
is sufficient, then package Cairo compiles
Also just setting
Sys.setenv(PKG_CONFIG_PA
Erich,
can you, please, send me the full output and the exact setup you used? I
suspect you may be using XQuartz 2.8.0 or higher which has broken pkg-config
files - latest XQuartz requires a patch to make any compilation against it work
(see https://github.com/R-macos/recipes/blob/master/other/
Duncan’s suggestion did not work
So I tried
Sys.setenv(LD_LIBRARY_PATH="/opt/X11:/opt/X11/lib")
system("export LD_LIBRARY_PATH")
Sys.setenv(C_INCLUDE_PATH="/opt/X11/include")
system("export C_INCLUDE_PATH")
Sys.getenv()
and then simply doing
install.packages(“Cairo”)
worked.
> On 26.12.2021, a
On 26/12/2021 6:04 a.m., Erich Neuwirth wrote:
I am trying to compile Cairo.
I get the following error
xlib-backend.c:34:10: fatal error: 'X11/Intrinsic.h' file not found
#include /*->Xlib.h Xutil.h Xresource.h .. */
I have X11/Intrinsic.h in /opt/X11/include
I tried
Sys.setenv(LD_
I am trying to compile Cairo.
I get the following error
xlib-backend.c:34:10: fatal error: 'X11/Intrinsic.h' file not found
#include /*->Xlib.h Xutil.h Xresource.h .. */
I have X11/Intrinsic.h in /opt/X11/include
I tried
Sys.setenv(LD_LIBRARY_PATH="/opt/X11:/opt/X11/lib")
Sys.getenv(