waveshareteam / LCD-show

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FBCP not found in newef versions of raspbian - Fixed by adafruit

Robotto opened this issue · comments

I'm not making a pull request, but you can fix it by adding code that pulls and install fbcp to your install scripts.. (copied from https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/pitft-fbcp.sh )

# FBCP INSTALL -------------------------------------------------------------

echo "Downloading and installing fbcp..."
apt-get --yes --force-yes install cmake
cd /tmp
curl -LO https://github.com/tasanakorn/rpi-fbcp/archive/master.zip
unzip master.zip
cd rpi-fbcp-master
mkdir build
cd build
cmake ..
make
install fbcp /usr/local/bin/fbcp
cd ../..
rm -rf rpi-fbcp-master

# Add fbcp to /rc.local:
grep fbcp /etc/rc.local >/dev/null
if [ $? -eq 0 ]; then
	# fbcp already in rc.local, but make sure correct:
	sed -i "s/^.*fbcp.*$/\/usr\/local\/bin\/fbcp \&/g" /etc/rc.local >/dev/null
else
	# Insert fbcp into rc.local before final 'exit 0'
sed -i "s/^exit 0/\/usr\/local\/bin\/fbcp \&\\nexit 0/g" /etc/rc.local >/dev/null
fi

Hi there. It worked great. I'd like to add a few suggestions.

It'd be great to add something like this:

apt install make gcc g++ libc-dev libraspberrypi-dev

Those packages will install the required dependencies for compiling everything.