当我尝试在 RPI CM4 上执行我的 C++ 演示应用程序时,该应用程序是在 Ubuntu 操作系统上交叉编译的:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
Run Code Online (Sandbox Code Playgroud)
这是我在 RPI 中的错误:
root@rpi-cm4:/home/pi# ./demoApp
./demoApp: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.29' not found (required by ./demoApp)
./demoApp: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by ./demoApp)
Run Code Online (Sandbox Code Playgroud)
有关我的 RPI 的一些信息:
# lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
# uname -a
Linux rpi-cm4 5.15.65-v7l+ #1582 …Run Code Online (Sandbox Code Playgroud)