Linking X11 library


#1

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.


(Sean Molenaar) #2

Is the X11.Xlib file in /opt/X11/include/lib? It seems like Xlib is disabled because it doesn’t exist.


#3

It is present in /opt/X11/include/X11.


(Sean Molenaar) #4

And did you specify this when changing the xlib parameter


#5

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?


(Sean Molenaar) #6

This isn’t something you need to specify to brew, it’s something you need to specify when changing the xlib parameter.