To configure and build you do not need to “sudo”. Does it change anything removing it? Can you please post the actual output of the cmake command on a clean build area.
I solved the first problem removing the png.h from /usr/include
Now I have other
/usr/bin/ld: /usr/local/lib/libpython3.5m.a(myreadline.o): realocação R_X86_64_32 contra `.rodata.str1.1’ não pode ser usada quando estiver fazendo um objeto compartilhado; recompilar com -fPIC
/usr/local/lib/libpython3.5m.a: error adding symbols: Valor inaceitável
collect2: error: ld returned 1 exit status
bindings/pyroot/CMakeFiles/PyROOT.dir/build.make:954: recipe for target ‘lib/libPyROOT.so’ failed
make[2]: *** [lib/libPyROOT.so] Error 1
CMakeFiles/Makefile2:20192: recipe for target ‘bindings/pyroot/CMakeFiles/PyROOT.dir/all’ failed
make[1]: *** [bindings/pyroot/CMakeFiles/PyROOT.dir/all] Error 2
Makefile:149: recipe for target ‘all’ failed
make: *** [all] Error 2