Closed akhst7 closed 2 years ago
@akhst7 you did not provide any details, but I would guess that you have two possible problems:
.pc
files so I suspect your pkg-config
is broken (you'll see if you read the output, you can also test with pkg-config --libs x11
)XCFLAGS
/XLIBS
are not valid variables - the flag override names are CAIRO_CFLAGS
and CAIRO_LIBS
. Again, check the output and adjust if you need to.Please do include the full output when reporting issues as well as what exactly you're linking against, how you installed it etc. The most reliable way to get cairo flags is with pkg-config
so fixing that is the preferred way.
FWIW: the recipes contain a patch with the missing files for XQuartz: https://github.com/R-macos/recipes/blob/master/other/tcltk/pkgconfig.patch - but you can just take them from older XQuartz versions which were not broken.
@s-u thanks for the binary. Cairo is installed but still I can't compile it and failed with the same "can't find Intrinsic.h error"even with setting CAIRO_CFLAGS and CAIRO_LIBS. I will play with this when I have time but thanks !!
@akhst7 I just had a report from another user and the problem there was Homebrew - it doesn't include the necessary files, so you have to use XQuartz. That user has success with setting C_INCLUDE_PATH=/opt/X11/include
, but that mixes XQuartz with Homebrew which is bad idea since they use different libraries.
As for correct CAIRO_xx
flags, for XQuartz 2.8.1 I get the following:
CAIRO_CFLAGS=-I/opt/X11/include/cairo -I/opt/X11/include/pixman-1 -I/opt/X11/include -I/opt/X11/include/freetype2 -I/opt/X11/include/libpng16 -I/opt/X11/include
CAIRO_LIBS=-L/opt/X11/lib -lfreetype -lz -lpng16 -lz -lcairo -lXext -lXrender -lX11
Hi, Updating to 1.5-14 from the source failed with a following error;
I guess the
xlib-backend.c
can't locate/opt/X11/include/X11/Intrinsic.h
, although I set up the path in the env as follows;Are there any other ways to specific the path to intrinsic.h ?