-
Notifications
You must be signed in to change notification settings - Fork 4
compile raylib
o3o edited this page Feb 15, 2024
·
6 revisions
First of all, clone full raylib repository:
$ cd ~/cc
$ git clone https://github.com/raysan5/raylib.git
Create a branch for desidered raylib version (see also version), for example raylib official version 5.0.0
$ git checkout -b v5.0.0 5.0
$ git describe --tags
5.0
$ git log
commit ae50bfa2cc569c0f8d5bc4315d39db64005b1b08 (HEAD -> v5.0, tag: 5.0)
Author: Ray <[email protected]>
Date: Wed Nov 15 11:30:50 2023 +0100
Updated Npp intellisense data for raylib 5.0
Finally compile as shared library (see raylib wiki) and install:
$ cd raylib/src
$ make RAYLIB_LIBTYPE=SHARED
$ sudo make install RAYLIB_LIBTYPE=SHARED
On raspberry:
$ cd raylib/src
$ make RAYLIB_LIBTYPE=SHARED PLATFORM=PLATFORM_DRM
$ sudo make install RAYLIB_LIBTYPE=SHARED