Open ZedeN1 opened 5 years ago
Have you tried the solution from this post? https://raspberrypi.stackexchange.com/questions/36121/fatal-error-bcm-host-h-no-such-file-or-directory-compilation-terminated
Have you tried the solution from this post? https://raspberrypi.stackexchange.com/questions/36121/fatal-error-bcm-host-h-no-such-file-or-directory-compilation-terminated
Yes I have, didn't work. running rpi-update
didn't work either.
I managed to get further in the compile process by adding -I/opt/vc/include
to CFLAGS but the compile still dies with error:
CC led/drivers/led_rpi.c
LD retroarch
/usr/bin/ld: obj-unix/release/gfx/drivers/dispmanx_gfx.o: undefined reference to symbol 'vc_dispmanx_display_close'
/usr/bin/ld: //opt/vc/lib/libbcm_host.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Makefile:208: retroarch] Error 1
I was able to compile without dispmanx:
CFLAGS='-mfpu=neon' ./configure --enable-alsa --enable-udev --enable-floathard --enable-neon --disable-opengl1 --disable-videocore --enable-opengles --enable-opengles3 --disable-dispmanx
Anyone know why dispmanx is giving me issues?
Pi4 does not support or use dispmanx and proprietary (legacy) firmware based GL* drivers (those from /opt/vc). For pi4 standard opensource mesa drivers should be used over drm/kms, x11 or wayland. https://github.com/raspberrypi/firmware/issues/1171#issuecomment-507306827
Configure scripts should nowadays handle RPi4 without extra options, guide also available: https://docs.libretro.com/guides/rpi/ I believe this one can be closed.
Description
Fatal error when compiling on Raspbian running on Raspberry Pi 4 4Gb.
Expected behavior
Compiles successfully
Actual behavior
./configure output available on PasteBin make -j4 output available on PasteBin
Steps to reproduce the bug
git clone https://github.com/libretro/RetroArch.git
sudo apt-get install build-essential libxkbcommon-dev zlib1g-dev libfreetype6-dev libegl1-mesa-dev libgles2-mesa-dev libgbm-dev libavcodec-dev libsdl2-dev libsdl-image1.2-dev libxml2-dev yasm libavformat-dev libavdevice-dev libswresample-dev libavresample-dev libswscale-dev libv4l-dev libgl*-mesa-dev
CFLAGS='-mfpu=neon' ./configure --enable-alsa --enable-udev --enable-floathard --enable-neon --enable-dispmanx --disable-opengl1 --disable-videocore --enable-opengles --enable-opengles3
make -j4
Bisect Results
./configure output available on PasteBin make -j4 output available on PasteBin
Version/Commit
You can find this information under Information/System Information
Environment information
Solution to get further but to a different error:
Add
-I/opt/vc/include
to CFLAGS:CFLAGS='-mfpu=neon -I/opt/vc/include' ./configure --enable-alsa --enable-udev --enable-floathard --enable-neon --enable-dispmanx --disable-opengl1 --disable-videocore --enable-opengles --enable-opengles3
GIves a different error: