Created
October 20, 2023 00:34
-
-
Save mkohlhaas/2251cb3e32ba0ac08af32e742582ec7a to your computer and use it in GitHub Desktop.
raylib building and installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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