Thanks, I did the same for JPEG and TIFF:
cmake -DBUILD_ZLIB=ON -DBUILD_JPEG=ON -DBUILD_PNG=ON -DBUILD_TIFF=ON …/opencv-master
It looks like it helped, but now I’m stuck with a different error:
[ 72%] Linking CXX executable ../../bin/opencv_test_highgui
/usr/lib64/libfontconfig.so: undefined reference to `uuid_parse@UUID_1.0'
/usr/lib64/libfontconfig.so: undefined reference to `uuid_generate_random@UUID_1.0'
/usr/lib64/libfontconfig.so: undefined reference to `uuid_unparse@UUID_1.0'
/usr/lib64/libfontconfig.so: undefined reference to `uuid_copy@UUID_1.0'
/usr/bin/ld: link errors found, deleting executable `../../bin/opencv_test_highgui'
/usr/bin/sha1sum: ../../bin/opencv_test_highgui: No such file or directory
collect2: error: ld returned 1 exit status
gmake[2]: *** [bin/opencv_test_highgui] Error 1
gmake[1]: *** [modules/highgui/CMakeFiles/opencv_test_highgui.dir/all] Error 2
gmake: *** [all] Error 2