Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mancausoft committed Jan 11, 2025
1 parent afbd6df commit 62504f0
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/build-rpi3-raylib-static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,12 @@ jobs:
echo "set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)" >> toolchain.cmake
echo "set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)" >> toolchain.cmake
#- name: Verify drm.h in sysroot
# run: |
# find . -iname drm.h
# ls ./sysroot/usr/include/libdrm/drm.h

- name: Build raylib (static) for Raspberry Pi
run: |
export SYSROOT=$(pwd)/sysroot
git clone --depth 1 https://github.com/raysan5/raylib.git
cd raylib
mkdir build
cd build
cmake -DPLATFORM="DRM" \
-DCMAKE_TOOLCHAIN_FILE=../toolchain.cmake \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_C_FLAGS="-I${SYSROOT}/usr/include/libdrm" \
..
make
make install
cd raylib/src
make PLATFORM=PLATFORM_DRM USE_RPI_CROSS_COMPILER=TRUE RPI_TOOLCHAIN=/usr RPI_TOOLCHAIN_NAME=arm-linux-gnueabihf INCLUDE_PATHS='-I . -I ../../sysroot/usr/include/libdrm'
- name: Build the project
run: |
Expand Down

0 comments on commit 62504f0

Please sign in to comment.