I followed this answer to install pcl(point cloud library).
But I get the following error :
[ 30%] Linking CXX executable ../../bin/pcl_openni_grabber_example
/home/nehal/anaconda3/lib/libpng.so: undefined reference to `inflateValidate@ZLIB_1.2.9'
collect2: error: ld returned 1 exit status
io/tools/CMakeFiles/pcl_openni_grabber_example.dir/build.make:289: recipe for target 'bin/pcl_openni_grabber_example' failed
make[2]: *** [bin/pcl_openni_grabber_example] Error 1
CMakeFiles/Makefile2:683: recipe for target 'io/tools/CMakeFiles/pcl_openni_grabber_example.dir/all' failed
make[1]: *** [io/tools/CMakeFiles/pcl_openni_grabber_example.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
How do I resolve the error?