I am trying to compile libcec for fkms. Kms flickers really bad when navigating and changing channels. It also disconnects my cec connection and sometime my vpn.
I have the PKGBUILD but I am not sure what to set the RPI_INCLUDE_DIR & the RPI_LIB_DIR. Obviously the files are not in the /opt/vc directory so when I try to compile with the have_rpi_api=1. I get an error. I have tried
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=1 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_INSTALL_LIBDIR_NOARCH=/usr/lib \
-DHAVE_EXYNOS_API=0 \
-DHAVE_RPI_API=1 \
-DRPI_INCLUDE_DIR=/opt/vc/include \
-DRPI_LIB_DIR=/opt/vc/lib
make
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
RPI_BCM_HOST
Looking for bcm_host_init in bcm_host
-- Looking for bcm_host_init in bcm_host - not found
-- Looking for include files tda998x_ioctl.h, comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_Types.h
-- Looking for include files tda998x_ioctl.h, comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_Types.h - not found
Also, I am getting these not found errors. For the PKGBUILD I changed the dep to firmware-raspberrypi.
Can someone point me in the right direction?