Skip to content

compile raylib

o3o edited this page Oct 13, 2020 · 4 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 use different version, for example raylib official version 3.0.0 April 1)

$ git clone -b v3.0.0 3.0.0
$ git describe --tags
3.0.0

$ git log 3.0.0
commit 7ef114d1da2c34a70bba5442497103441647d8f3 (tag: 3.0.0)
Author: Ray <raysan5@gmail.com>
Date:   Wed Apr 1 11:07:01 2020 +0200

Finally compile as shared library (see raylib wiki) and install:

$ cd raylib/src
$ make RAYLIB_LIBTYPE=SHARED
$ sudo make install RAYLIB_LIBTYPE=SHARED
Clone this wiki locally