LCD-show icon indicating copy to clipboard operation
LCD-show copied to clipboard

compilation terminated on new raspberryos trixie

Open MrTreamer opened this issue 4 months ago • 6 comments

Package libraspberrypi-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: libdtovl0:armhf libdtovl0

E: Package 'libraspberrypi-dev' has no installation candidate ... [ 50%] Building C object CMakeFiles/fbcp.dir/main.c.o /home/.../LCD-show/rpi-fbcp/main.c:9:10: fatal error: bcm_host.h: No such file or directory 9 | #include <bcm_host.h> | ^~~~~~~~~~~~ compilation terminated.

and

the install process deletes packages depending with "raspi-config"

after reinstall "raspi-config" no LCD output avaible

MrTreamer avatar Aug 14 '25 21:08 MrTreamer

Take a look at this

PyroFourTwenty avatar Sep 24 '25 15:09 PyroFourTwenty

Take a look at this

thx, but doesn't work: apt-utils already installed

MrTreamer avatar Sep 24 '25 20:09 MrTreamer

Maybe i should have been more precise in explaining what i did. I am using a 3.2" display. After a couple times of flashing a fresh install of Raspberry Pi OS i found that installing the packaged mentioned earlier PRIOR to installing the drivers (via sudo ./LCD32-show) fixes the compilation process happening in the LCD32-show script.

I propose you try the following:

  1. (if possible) try to reinstall your Raspberry Pi OS
  2. sudo apt update && sudo apt upgrade
  3. sudo apt install apt-utils build-essential -y (do this before running your respective driver installation script)
  4. install the driver (for me its the 3.2" LCD)
sudo rm -rf LCD-show
git clone https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show
cd LCD-show/
sudo ./LCD32-show

PyroFourTwenty avatar Sep 25 '25 09:09 PyroFourTwenty

Hey @PyroFourTwenty ,

when trying to install apt-utils and build-essential immediately after the pi os setup, I get the message that both are already the newest version and nothing happens. I only get a reminder that libyuv0 was automatically installed and is no longer required.

And when then trying to execute the install script I still get the same error: Package 'libraspberrypi-dev' has no installation candidate.

Do you have tips for that?

de-finnik avatar Oct 12 '25 15:10 de-finnik

'libraspberrypi-dev' is no longer available in trixie, so fbcp can't be built. As there is no replacement for fbcp, you have to switch the framebuffer manually with con2fbmap. I did some research and put it here: https://github.com/katzenjens/lcd32 It works with 3.2 and 3.5 inch tft on console and KlipperScreen on every Raspberry Model excluding the Raspberry 5.

katzenjens avatar Oct 18 '25 15:10 katzenjens

Works like a charme, thanks @katzenjens

de-finnik avatar Nov 05 '25 11:11 de-finnik