Skip to content

Preparing Dependencies

Eric Freed edited this page May 3, 2019 · 3 revisions

Native Dependencies

Since GLFW.NET is only managed bindings around a native library, GLFW will obviously need to be present on the host machine to use it.

Linux

Linux installation will vary depending on the package manager used, and which backend windowing system used (X11, Wayland, etc).

Pacman

sudo pacman -S glfw-x11

or

sudo pacman -S glfw-wayland

Apt

sudo apt-get update
sudo apt-get install libglfw3
sudo apt-get install libglfw3-dev

Others

Nearly every Linux distribution that uses a package manager should have a package, including .deb, .rpm, etc, but if all else fails, you can always build GLFW from source.

MacOS

Simply install using brew.

brew install glfw3

Windows

Windows users do not need to install anything, but will need to distribute the pre-built binaries with their application. The binaries are quite lightweight, and can be downloaded directly from GLFW's website. There are 32-bit and 64-bit variations, and you will obviously need to target the correct binary the architecture your application uses, or resolve dynamically at run-time if targeting AnyCPU

Clone this wiki locally