captain-amygdala / pistorm

68k Hardware Emulator
MIT License
746 stars 105 forks source link

Build fails due to missing header files #81

Open SvenMichaelKlose opened 1 month ago

SvenMichaelKlose commented 1 month ago

Latest Raspi OS Lite 32-bit on RPI-3A:

gcc -Wall -Wextra -pedantic -I. -I./raylib -I/opt/vc/include/ -march=armv8-a -mfloat-abi=hard -mfpu=neon-fp-armv8 -O3 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -lstdc++ -c -o platforms/amiga/rtg/rtg-output-raylib.o platforms/amiga/rtg/rtg-output-raylib.c platforms/amiga/rtg/rtg-output-raylib.c:17:10: fatal error: interface/vmcs_host/vc_tvservice.h: No such file or directory 17 | #include "interface/vmcs_host/vc_tvservice.h" | ^~~~~~~~ compilation terminated. make: *** [: platforms/amiga/rtg/rtg-output-raylib.o] Error 1

Skelbagz commented 1 month ago

There is a comment in the README.md file which addresses this issue. I would also make sure (if you are using the RPi imager) to select Raspberry Pi OS (Legacy, 32 bit) Lite as the ISO to use.

Important note: If you are using Raspberry Pi OS "Bullseye", the main graphics backend for the OS has changed from dispmanx to DRM, and you need to follow these steps instead of just running make:

  • First run sudo apt-get install libdrm-dev libegl1-mesa-dev libgles2-mesa-dev libgbm-dev to install the DRM OpenGL/ES libraries, which are for some reason not included with the distro by default. These are necessary to link the graphics output library (raylib).
  • Then finally, run make PLATFORM=PI3_BULLSEYE for the emulator to compile successfully.
SvenMichaelKlose commented 1 month ago

Thanks! I used that image. It's a friend's dream to have that thing installed, so I'll have to check it out later.