1.缺少C++的libstdc++.so.6
如果缺少这个C++ 库,只需要安装一个deb包就可以了。大家如果缺少哪个动态库,就去下载对应的deb包或则源码build一下就可以了。
sudo apt-get update
sudo apt-get install libstdc++6
安装好之后,你可以在/usr/lib/aarch64-linux-gnu这个路径下找到libstdc++.so.6。
deb package link:https://ubuntu.pkgs.org/20.04/ubuntu-updates-main-arm64/libstdc++6_10.3.0-1ubuntu1~20.04_arm64.deb.html
2.缺少twowire--树莓派的I2C库
twowire - I2C library for the Raspberry Pi
twowire link:https://github.com/paulvha/twowire
bcm2835 link:bcm2835: C library for Broadcom BCM 2835 as used in Raspberry Pi
1)首先,树莓派得安装bcm2835库
cd /home/pi
wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.71.tar.gz
tar -zxf bcm2835-1.71.tar.gz // 1.71 was version number at the time of writing
cd bcm2835-1.71
./configure
sudo make
sudo make install
2)其次,安装twowire库,直接下载或则克隆link中代码
download the zip-file (clone or download / download zip-file) in the wanted directory
unzip twowire-master.zip
cd twowire-master
sudo make install