ocaml / graphics

The Graphics library from OCaml, in a standalone repository
Other
56 stars 29 forks source link

Mac: Fatal error: exception Graphics.Graphic_failure("Cannot open display ") #44

Closed utenma closed 1 year ago

utenma commented 1 year ago

When trying to run an example build from dune got: Screenshot 2023-01-31 at 12 49 03

Xlib.h it's installed at /opt/X11/include/X11/Xlib.h

Screenshot 2023-01-31 at 12 51 51

Using M1 Mac with Ventura

xavierleroy commented 1 year ago

You need an X11 server to run X11 applications. Try to install XQuartz: https://www.xquartz.org/

utenma commented 1 year ago

@xavierleroy they were already installed just restarted and it worked