lcdwiki / LCD-show-ubuntu

3.2" 3.5" 5.0" 7.0" TFT LCD Ubuntu driver for the Raspberry PI and PI 2 and PI 3
106 stars 41 forks source link

MHS35 will never work without fbcp #23

Open xuancong84 opened 10 months ago

xuancong84 commented 10 months ago

I have installed LCD-show-ubuntu on Ubuntu 22.02 LTS (server edition) according to the instruction and it does not work at all.

Taking a closer look at the script (MHS35-show), it does not even install fbcp, definitely another bull-shit repo. So I manually install fbcp, and the build failed because it does not have build-essential. Installing build-essential make compilation pass.

#FBCP install
if false; then
wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
if [ $? -eq 0 ]; then
sudo cp -rf ./usr/99-fbturbo-fbcp.conf  /usr/share/X11/xorg.conf.d/99-fbturbo.conf
sudo cp -rf ./etc/rc.local /etc/
#sudo apt-get update
sudo apt-get install gcc g++ git cmake make libraspberrypi-dev -y 2> error_output.txt
result=`cat ./error_output.txt`
echo -e "\033[31m$result\033[0m"
grep -q "^E:" ./error_output.txt && exit
sleep 2
sudo rm -rf rpi-fbcp
sudo git clone https://github.com/tasanakorn/rpi-fbcp
sudo mkdir ./rpi-fbcp/build
cd ./rpi-fbcp/build/
sudo cmake ..
sudo make
sudo install fbcp /usr/local/bin/fbcp
cd - > /dev/null
fi
fi

As shown above, the 2nd line if false; then skips the entire chunk for downloading and building fbcp (frame buffer copier program). How can TFT display work without it? Definitely another piece of garbage repo, totally untested and working half-way through.