Skip to content

Instantly share code, notes, and snippets.

@mkohlhaas
Created October 20, 2023 00:34
Show Gist options
  • Save mkohlhaas/2251cb3e32ba0ac08af32e742582ec7a to your computer and use it in GitHub Desktop.
Save mkohlhaas/2251cb3e32ba0ac08af32e742582ec7a to your computer and use it in GitHub Desktop.
raylib building and installation
# https://gitlab.archlinux.org/archlinux/packaging/packages/raylib/-/blob/main/PKGBUILD
git clone https://github.com/raysan5/raylib.git
cmake -B build -D BUILD_EXAMPLES=OFF -D BUILD_SHARED_LIBS=ON -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_FLAGS="$CFLAGS -fPIC -w" -D CMAKE_INSTALL_LIBDIR=lib -D CMAKE_INSTALL_PREFIX=/usr -D OpenGL_GL_PREFERENCE=GLVND -D PLATFORM=Desktop -D USE_EXTERNAL_GLFW=OFF -D WITH_PIC=ON -G Ninja -S raylib -W no-dev
ninja -C build
sudo ninja -C build install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment