编译nlink_parser-master出现报错信息
/usr/bin/ld: can't find -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
ubuntu18.04
终端输入
sudo ln -s /opt/ros/melodic/lib/libserial.so /usr/lib/libserial.so
ubuntu20.04.04
终端输入
sudo ln -s /opt/ros/noetic/lib/libserial.so /usr/lib/libserial.so
重新编译问题解决