I installed the opencv on a new ubuntu system. I use the same method of installation instructions in my pass records. However, it didn't work. some error happened.
one is missng libpng16.so
sudo apt-get install libpng16-dev
another is missing gtk2.0
sudo apt-get install libgtk2.0-dev (if it said some packages isn't installed, just install them)