编译uwb 包 出错 /usr/bin/ld: 找不到 -lserial

编译出现报错信息

/usr/bin/ld: 找不到 -lserial
collect2: error: ld returned 1 exit status
nlink_parser-master/CMakeFiles/nutils.dir/build.make:580: recipe for target '/home/ywk/Project/catkin_ws/devel/lib/libnutils.so' failed
make[2]: *** [/home/ywk/Project/catkin_ws/devel/lib/libnutils.so] Error 1
CMakeFiles/Makefile2:3020: recipe for target 'nlink_parser-master/CMakeFiles/nutils.dir/all' failed
make[1]: *** [nlink_parser-master/CMakeFiles/nutils.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

终端输入

sudo ln -s /opt/ros/melodic/lib/libserial.so /usr/lib/libserial.so  

重新编译问题解决

你可能感兴趣的:(其他)