Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mancausoft committed Jan 10, 2025
1 parent a7e0ac4 commit 6a32233
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build-rpi3-raylib-static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,22 @@ 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: 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$(pwd)/sysroot/usr/include/libdrm" \
-DCMAKE_C_FLAGS="-I$(SYSROOT)/usr/include/libdrm" \
..
make
make install
Expand Down

0 comments on commit 6a32233

Please sign in to comment.