这个错误通常是由于缺少pthread库引起的,可以尝试通过以下步骤解决:

  1. 安装pthread库:
sudo apt-get install libpthread-stubs0-dev
  1. 清理catkin_make生成的文件:
cd ~/ucar_ws
rm -rf build/ devel/
  1. 重新运行catkin_make:
cd ~/ucar_ws
catkin_make

如果还是出现同样的错误,尝试升级系统及所有依赖库到最新版本:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

然后再次尝试运行catkin_make。

在ubuntu2004系统中在ucar_ws工作空间下catkin_make报以下错误怎么解决homebbsucar_wsbuildCMakeFilesCMakeErrorlog中显示Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following outputChange Dir homebbsucar

原文地址: https://www.cveoy.top/t/topic/fUQn 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录