This is a build2 package repository for GLFW
This file contains setup instructions and other details that are more appropriate for development rather than consumption. If you want to use GLFW in your build2-based project, then instead see the accompanying PACKAGE-README.md file.
The development setup for GLFW uses the standard bdep-based workflow. For example:
git clone .../glfw.git
cd glfw
bdep init -C @gcc cc config.cxx=g++
bdep update
bdep test
On FreeBSD and Linux, you must set at least one of the following configuration variables during bdep init:
config.glfw.build_wayland=true— to enable Wayland supportconfig.glfw.build_x11=true— to enable X11 support
It is valid to set both to true.
On Fedora, you can use bdep to install the required system packages. For example:
bdep init -C @gcc cc config.cxx=g++ -- config.glfw.build_x11=true \
--sys-install --sys-no-stub sys:libXcursor \
sys:libXi \
sys:libXinerama \
sys:libXrandr \
sys:libxkbcommon \
sys:mesa-libGL
On Debian 12 and later, the required development packages are typically already available. If not, they can be installed using bdep exactly as shown above for Fedora. The package names are identical and fully compatible with build2's system package support.
Finally, on other Linux distributions, you may need to install the equivalent development packages manually. Refer to your system's package manager for how to install the following libraries:
- libXcursor
- libXi
- libXinerama
- libXrandr
- libxkbcommon
- mesa-libGL
- libwayland