LCD-show
LCD-show copied to clipboard
3.5inch RPi LCD (C) failed to install driver on pi4B
CMake Error: The current CMakeCache.txt directory /mnt/LCD-show/rpi-fbcp/build/CMakeCache.txt is different than the directory /home/pi/LCD-show/rpi-fbcp/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt CMake Error: The source "/mnt/LCD-show/rpi-fbcp/CMakeLists.txt" does not match the source "/home/pi/LCD-show/rpi-fbcp/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory. CMake Error: The source directory "/home/pi/LCD-show/rpi-fbcp" does not exist. Specify --help for usage, or press the help button on the CMake GUI. make: *** [Makefile:176: cmake_check_build_system] Error 1 Selecting previously unselected package xinput-calibrator:armhf. (Reading database ... 99757 files and directories currently installed.) Preparing to unpack .../xinput-calibrator_0.7.5-1_armhf.deb ... Unpacking xinput-calibrator:armhf (0.7.5-1) ... dpkg: dependency problems prevent configuration of xinput-calibrator:armhf: xinput-calibrator:armhf depends on libc6 (>= 2.13-28). xinput-calibrator:armhf depends on libgcc1 (>= 1:4.4.0). xinput-calibrator:armhf depends on libstdc++6 (>= 4.6). xinput-calibrator:armhf depends on libx11-6. xinput-calibrator:armhf depends on libxext6. xinput-calibrator:armhf depends on libxi6 (>= 2:1.2.0).
dpkg: error processing package xinput-calibrator:armhf (--install): dependency problems - leaving unconfigured Processing triggers for gnome-menus (3.36.0-1) ... Processing triggers for desktop-file-utils (0.26-1) ... Processing triggers for mailcap (3.69) ... Processing triggers for man-db (2.9.4-2) ... Errors were encountered while processing: xinput-calibrator:armhf LCD configure 0
Remote side unexpectedly closed network connection May I ask what I need to do to solve this problem? I have repeatedly installed the same error message several times. My device is PI4 and the system is 2023 02 21 raspios bulleteye arm64.img
Hi I installed the May 64bit RPiOS with Pi4B and LCD(C) then did: 1 sudo apt update 2 sudo apt-get full-upgrade -y 3 sudo reboot 8 git clone https://github.com/waveshare/LCD-show.git 9 cd LCD-show/ 10 chmod +x LCD35C-show 11 ./LCD35C-show 12 sudo apt update 13 sudo apt-get full-upgrade -y 14 sudo apt --fix-broken install
Both the LCD and touch driver worked fine Install messages are here: https://github.com/TobiasVanDyk/RaspberryPi-GPIO-Displays/blob/master/ili9486/pi4B-lcdC-2023/install2.txt
Hi @TobiasVanDyk Are you using Bookworm 2023-05-03 version?
which one of these ? please suggest. https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-desktop
Ignore please
Hi Sorry I have not tried it yet with the new Oct bookworm
Hi Sorry I thought it was about the soundhat
I have not tried it yet with the new Oct bookworm
Best wishes Tobie van Dyk
From: Kk @.> Sent: Monday, 23 October 2023 07:41 To: waveshare/LCD-show @.> Cc: Tobias van Dyk @.>; Mention @.> Subject: Re: [waveshare/LCD-show] 3.5inch RPi LCD (C) failed to install driver on pi4B (Issue #58)
which one of these ? please suggest. https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-desktop
— Reply to this email directly, view it on GitHubhttps://github.com/waveshare/LCD-show/issues/58#issuecomment-1774471078, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFJPEA7NEJHP5A52MVRDS7DYAX7PDAVCNFSM6AAAAAAXPTJ3WOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZUGQ3TCMBXHA. You are receiving this because you were mentioned.Message ID: @.@.>>
got it running on Pi 4B with kernel 6.1 on bullseye and bookworm (Raspberry PI OS 64-bit version) following [waveshare wiki instructions] (https://www.waveshare.com/wiki/3.5inch_RPi_LCD_(C)#Install_the_touch_driver)
(example for C version)
also assuming x-org is used (and not wayland on bookworm)
do not mind calibration errors, on install
setup afterwards as @TobiasVanDyk mentioned:
14 sudo apt --fix-broken install
following must be run with root privilege:
./LCD35C-show
# now
sudo ./LCD35C-show
then updating (or creating) /usr/share/X11/xorg.conf.d/99-fbdev.conf as mentioned here:
https://forums.raspberrypi.com/viewtopic.php?t=161512#p1048180
...
# output to LCD screen
Option "fbdev" "/dev/fb1"
# or replace with this to output to HDMI instead
Option "fbdev" "/dev/fb0"
...
@JimJ92120 Thank you, it worked perfectly for the A version on a Pi 4B with bookworm. The only thing I'm strungling with now is how to rotate the display. When I launch sudo ./LCD35-show 180 it inverts the touchscreen but not the actual display. I tried many things from X conf file, xrandr options, raspberry config.txt file. Nothing appears to be working.
Any solution ?
Are you using X11 or Wayland? You may find that xrandr works with X11 but not Wayland.
@tuxrinku maybe this? https://www.makeuseof.com/how-to-rotate-your-raspberry-pi-screen-without-moving-the-display/
the display_hdmi_rotate worked for me
I tried everything mentioned in this article. Every orientation option is greyed out in the desktop screen option. When I try using xrandr it returns the following error xrandr: output default cannot use rotation "inverted" reflection "none". I tried config.txt options like display_rotate=2, lcd_rotate=2, display_lcd_rotate=2, display_hdmi_rotate=2. None of them worked. I guess it has something to do with fbdev since it was a workaround to make the lcd screen working on bookworm.
I'm using X11, the lcd screen wouldn't work on wayland apparently
Hello! I got this screen: i've been trying with different os, and testing with all ./LCD commands here...
I can't make it work into my Raspberry Pi4b.
Did some 1 succesfully set up this type of spi tftlcd in a RASPI4b?
Helllllp!!
This may give additional info: https://github.com/juj/fbcp-ili9341/issues/40
This may give additional info: juj/fbcp-ili9341#40
Hi Tobias! Thanks for the fast response, i've seen that, but cant find the way to make it work.. im in a fresh instalation...
this is what i get when i run ./fbcp-ili9341 but the screen stillls white.. (ofcourse the screen works, i've tested with some kedei's programs and on a raspi 1b with their custom image and the screen works.. but in my Pi4b doesn't.. really, I won't give up till it works (or i get bored of lying around xD). I'ld love to got my pi4 with this screen xd
sudo apt --fix-broken install got me past the library dependency issues that OP ran into. However, when I navigate to Preferences -> Calibrate Touchscreen I get the following error:
xinput_calibrator: error while loading shared libraries: libX11.so.6: ELF load command/offset not page-aligned
I am on Raspberry Pi 5 - Debian GNU/Linux 12 (bookworm)
Edit:
I noticed in LCD-show directory there was an additional deb file. Instead of using xinput-calibrator_0.7.5-1_armhf.deb I ended up using
sudo dpk -i -B xinput-calibrator_0.7.5+git20140201-1+b2_arm64.deb
xinput_calibrator now works
Are you using X11 or Wayland? You may find that xrandr works with X11 but not Wayland.
I use ssh to connect to pi,should it be X11 root@raspberrypi:~# echo $XDG_SESSION_TYPE tty
Hi I installed the May 64bit RPiOS with Pi4B and LCD(C) then did: 1 sudo apt update 2 sudo apt-get full-upgrade -y 3 sudo reboot 8 git clone https://github.com/waveshare/LCD-show.git 9 cd LCD-show/ 10 chmod +x LCD35C-show 11 ./LCD35C-show 12 sudo apt update 13 sudo apt-get full-upgrade -y 14 sudo apt --fix-broken install
Both the LCD and touch driver worked fine Install messages are here: https://github.com/TobiasVanDyk/RaspberryPi-GPIO-Displays/blob/master/ili9486/pi4B-lcdC-2023/install2.txt
Your method also fails I tried it I did my own research and succeeded I found an updated tutorial on the official website and followed the steps of the tutorial Succeeded in driving the lcd screen Successfully displayed To use the 3.5inch RPi LCD (C) screen on Bullseye 64-bit and on Bookworm systems, manual configuration is required to succeed I'm using a system that's 2023-10-... 10-raspios-bookworm-arm64 on a Raspberry Pi 4B.