Ubuntu16.04上编译PCL库出现这个问题,/home/chnn/anaconda3/lib/libpng.so: undefined reference to inflateValidate@ZLIB_1.2.9 collect2: error: ld returned 1 exit status,搜索了一下sudo apt search libpng,安装libpng16-dev即可。
解决方法: