shawnchao22 发表于 2023-9-7 17:27:24

移植src编译报错问题


·在工作空间编译时,出现如下错误:


/usr/bin/ld: cannot find -loffline_record_lib
/usr/bin/ld: cannot find -lhid_lib
collect2: error: ld returned 1 exit status
make: *** Error 1
make: *** Error 2
make: *** Waiting for unfinished jobs....
[ 94%] Built target global_planner
[ 94%] Built target point_grid
[ 94%] Built target trajectory_planner_ros
make: *** Error 2
Invoking "make -j12 -l12" failed





·根据论坛上的解决方案
安装依赖:rosdep install --from-paths src --ignore-src -r -y,结果提示如下:


ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
robot_pose_ekf: Cannot locate rosdep definition for
turtle_vel_ctrl_pkg: Cannot locate rosdep definition for
wheeltec_robot_rc: Cannot locate rosdep definition for
Continuing to install resolvable dependencies...
#All required rosdeps installed successfully



请教一下老师,该如何解决?

WHEELTEC-Until 发表于 2023-9-12 11:28:05

本帖最后由 WHEELTEC-Until 于 2023-9-12 11:29 编辑

你这里图一的是语音板功能包的报错,如果是没有语音板这个配件的话,可以剔除掉这个功能包,如果是有这个配件的话 ,你检查一下有没有按照我们提供的语音板的资料去编译,我们里面有编译教程,需要按照架构将库文件放入/usr/bin里面

图二的问题,你可以用这一条命令:sudo apt-get install ros-ros版本(英文名称)-缺少的内容(中括号里面的内容)安装
页: [1]
查看完整版本: 移植src编译报错问题