treeform / fidget

Figma based UI library for nim, with HTML and OpenGL backends.
MIT License
768 stars 32 forks source link

README update to resolve dependency issues on Debian/Ubuntu based distros #165

Open mt206 opened 3 years ago

mt206 commented 3 years ago

Following the How to run examples section I was running into errors like:

fatal error: X11/Xlib.h: No such file or directory
   33 | #include <X11/Xlib.h>

and

fatal error: X11/Xcursor/Xcursor.h: No such file or directory
   37 | #include <X11/Xcursor/Xcursor.h>

I was able to resolve all of these by installing the needed headers by adding the xorg-dev package using: sudo apt install xorg-dev

Might be useful to add a troubleshooting section to the README or a sidenote to the examples for users who might hit the same problem.

auroraanna commented 2 years ago

I have no idea in what package xorg-dev is in nixpkgs. Seaching for it doesn't yield the right result.