raysan5 / raygui

A simple and easy-to-use immediate-mode gui library
zlib License
3.26k stars 280 forks source link

Compile for Rapberry Pi 2B #400

Closed colesnicov closed 2 months ago

colesnicov commented 2 months ago

Hello. When was the last time you tested PLATFORM_RPI? I just tried compiling it for Raspberry Pi 2B and it failed. To compile, I edited the line https://github.com/raysan5/raygui/blob/a3a0e86e215145c28726e6f469f13d0aa6647a5e/examples/Makefile#L340 in the examples/Makefile to

LDLIBS = -lraylib -lGLESv2 -lEGL -lpthread -lrt -lm -ldrm -lgbm -ldl

EDIT:

Environment

RPI 2B, Raspberry OS LITE, Raylib 5.1-dev

colesnicov commented 2 months ago

It is necessary to correctly install the touch library according to the https://github.com/raysan5/raylib/wiki/Install-and-configure-Touchscreen-Drivers-(RPi) and then it works..

colesnicov commented 2 months ago

Sorry, I accidentally closed it. Please fix it and then I'll close (:

raysan5 commented 2 months ago

@colesnicov Definitely it was a while since last time I looked into that Makefile... updated! Thanks!