How to fix a missing Xcursor.h file in Ubuntu?

2.8k views Asked by At

Recently, I was trying to install V on my Ubuntu system. It seemed to have worked, but when I tried to run a game written in V to test that it was successful. I received an error saying that my system couldn't find a file called Xlib.h. I installed xlib, and tried again, this time I received an error in the terminal saying that Xlib2.h is missing. I installed xlib again and tried again to run the file. I received this error: builder error: 'X11/Xcursor/Xcursor.h' not found I searched google for answers on what this could be caused by, and couldn't find an answer, likely because V isn't a very common language. If anyone knows what caused this or more importantly how to fix it, your help would be very much appreciated.

1

There are 1 answers

0
archandha On

I had to install libxcursor-dev on my Ubuntu 22.04, so just

sudo apt install libxcursor-dev