catkin_make报错

老师您好!我按照ros for beginners的教程下载了melodic版本的文件,运行到catkin_make的时候报错。错误信息如下:请问要怎么解决?
/usr/bin/ld: warning: libopencv_imgcodecs.so.3.2, needed by /opt/ros/melodic/lib/libcv_bridge.so, may conflict with libopencv_imgcodecs.so.3.3
/usr/bin/ld: warning: libpng12.so.0, needed by /usr/local/lib/libopencv_imgcodecs.so.3.3.1, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libopencv_core.so.3.3, needed by /usr/local/lib/libopencv_imgcodecs.so.3.3.1, may conflict with libopencv_core.so.3.2
/usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_get_IHDR@PNG12_0' /usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_get_tRNS@PNG12_0’
/usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_set_palette_to_rgb@PNG12_0' /usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_write_image@PNG12_0’
/usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_set_read_fn@PNG12_0' /usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_set_bgr@PNG12_0’
/usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_read_image@PNG12_0' /usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_write_info@PNG12_0’
/usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_set_packing@PNG12_0' /usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_destroy_write_struct@PNG12_0’
/usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_set_strip_alpha@PNG12_0' /usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_destroy_read_struct@PNG12_0’
/usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_set_rgb_to_gray@PNG12_0' /usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_create_write_struct@PNG12_0’
/usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_write_end@PNG12_0' /usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_set_compression_level@PNG12_0’
/usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_read_update_info@PNG12_0' /usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_set_write_fn@PNG12_0’
/usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_set_filter@PNG12_0' /usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_set_strip_16@PNG12_0’
/usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_create_info_struct@PNG12_0' /usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_init_io@PNG12_0’
/usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_set_swap@PNG12_0' /usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_set_tRNS_to_alpha@PNG12_0’
/usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_set_interlace_handling@PNG12_0' /usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_read_end@PNG12_0’
/usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_set_compression_strategy@PNG12_0' /usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_get_io_ptr@PNG12_0’
/usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_set_expand_gray_1_2_4_to_8@PNG12_0' /usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_create_read_struct@PNG12_0’
/usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_error@PNG12_0' /usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_set_gray_to_rgb@PNG12_0’
/usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_set_IHDR@PNG12_0' /usr/local/lib/libopencv_imgcodecs.so.3.3.1: undefined reference to png_read_info@PNG12_0’
collect2: error: ld returned 1 exit status
ROS-Academy-for-Beginners/dependlib/hector_slam/hector_compressed_map_transport/CMakeFiles/map_to_image_node.dir/build.make:172: recipe for target ‘/home/cxl/catkin_ws/devel/lib/hector_compressed_map_transport/map_to_image_node’ failed
make[2]: *** [/home/cxl/catkin_ws/devel/lib/hector_compressed_map_transport/map_to_image_node] Error 1
CMakeFiles/Makefile2:5641: recipe for target ‘ROS-Academy-for-Beginners/dependlib/hector_slam/hector_compressed_map_transport/CMakeFiles/map_to_image_node.dir/all’ failed
make[1]: *** [ROS-Academy-for-Beginners/dependlib/hector_slam/hector_compressed_map_transport/CMakeFiles/map_to_image_node.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 96%] Linking CXX executable /home/cxl/catkin_ws/devel/lib/openslam_gmapping/icptest
[ 96%] Built target icptest
[ 96%] Linking CXX executable /home/cxl/catkin_ws/devel/lib/openslam_gmapping/scanmatch_test
[ 96%] Built target scanmatch_test
[ 96%] Linking CXX shared library /home/cxl/catkin_ws/devel/lib/libgridfastslam.so
[ 96%] Built target gridfastslam
Makefile:140: recipe for target ‘all’ failed
make: *** [all] Error 2
Invoking “make -j12 -l12” failed
查找了很久也没有找到解决办法。

这个错误是啥意思啊?
/usr/bin/ld: warning: libopencv_imgcodecs.so.3.2, needed by /opt/ros/melodic/lib/libcv_bridge.so, may conflict with libopencv_imgcodecs.so.3.3
/usr/bin/ld: warning: libpng12.so.0, needed by /usr/local/lib/libopencv_imgcodecs.so.3.3.1, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libopencv_core.so.3.3, needed by /usr/local/lib/libopencv_imgcodecs.so.3.3.1, may conflict with libopencv_core.so.3.2

问题已经解决查看https://github.com/DroidAITech/ROS-Academy-for-Beginners/issues/105