I’m trying to install cairo with xlib option enabled using brew reinstall --build-from-source --verbose cairo. Homebrew complains #include<X11.Xlib.h> file is not found. X11 include/lib folders are located in /opt/X11. How do I link /opt/X11 to the brew install command? I’ve tried editing the cairo.rb file to no avail.
Is the X11.Xlib file in
/opt/X11/include/lib? It seems like Xlib is disabled because it doesn’t exist.
It is present in /opt/X11/include/X11.
And did you specify this when changing the xlib parameter
That’s the thing. I tried everything but I’m unable to specify the X11 location. I run into errors. How do I specify the X11 location when running brew install or brew reinstall?
This isn’t something you need to specify to brew, it’s something you need to specify when changing the xlib parameter.