From 9bf7544ad91553575da149ffa83d590c3154a6f7 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 16 Jun 2021 06:42:23 +0100 Subject: [PATCH] fix linux/pi building --- README.md | 10 +++++++++- raylib/static/build.py | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index aa02798..a710154 100644 --- a/README.md +++ b/README.md @@ -76,18 +76,26 @@ and install it: Build and install Raylib from the raylib-c directory. + sudo apt install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev cd raylib-python-cffi/raylib-c mkdir build cd build + cmake -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release .. + sudo make install + +Optional: Build the Raylib shared libs, if you plan to use `raylib.dynamic` binding. + + rm -rf * cmake -DWITH_PIC=on -DBUILD_SHARED_LIBS=on -DCMAKE_BUILD_TYPE=Release .. sudo make install -Make a patched version of raylib header. (Not necessary if you've already got raylib_modifed.h from repo and haven't changed anything.) +Optional: Make a patched version of raylib header. (Not necessary if you've already got raylib_modifed.h from repo and haven't changed anything.) cd ../../raylib cp raylib.h raylib_modified.h patch -p0