Linux

To use nk on Linux, we need to ensure some additional development headers are installed. Due to the GLFW dependency on Xorg for window management and input handling, we'll need to be able to compile against its libraries. If your distribution packages development headers separately to the library, you'll need to ensure that they're installed for compilation to succeed. The required package is called xorg-dev on Debian or Ubuntu, xorg-server-devel for Arch Linux, and xorg-x11-server-devel on Fedora or CentOS.

Therefore, one of the following should correctly install the development dependencies:

  • For Debian or Ubuntu, use this:
    sudo apt-get install xorg-dev
  • For Arch Linux (this will probably already be installed), use the following:
    sudo pacman -S xorg-server-devel
  • For Fedora or CentOS, use this:
    sudo yum install xorg-x11-server-devel

If the sudo command can't be found, then try su -c instead. Once this library is installed, you should be able to follow the setup steps in the next section and run an nk example application.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.119.81