I followed the same tutorial to install opencv and I had the same problem. This works for me:
sudo apt-get autoremove libtiff5-dev
sudo apt-get install libtiff5-dev
Enter the opencv directory.
cd build/ (I assume it has already been created, otherwise create it)
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..
make
then continue with the manual.
source
share