grfmt_png.cpp:226: error: `png_set_expand_gray_1_2_4_to_8' undeclared (Bug #740)
Description
Compilation on linux with gcc-4.1.0 fails for
grfmt_png.cpp
/home/vallet/INSTALL/opencv-dev/trunk/opencv/modules/highgui/src/grfmt_png.cpp: In member function @virtual bool cv::PngDecoder::readData(cv::Mat&)':
/home/vallet/INSTALL/opencv-dev/trunk/opencv/modules/highgui/src/grfmt_png.cpp:226: error: @png_set_expand_gray_1_2_4_to_8' was not declared in this scope
/home/vallet/INSTALL/opencv-dev/trunk/opencv/modules/highgui/src/grfmt_png.cpp:226: warning: unused variable 'png_set_expand_gray_1_2_4_to_8'
maker2: * [modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_png.o] Error 1
maker1: * [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
Associated revisions
Merge pull request #740 from evil0sheep:2.4
History
Updated by stathis -- over 14 years ago
Is it picking up an old libpng from the system? You need at least 1.4.0 if I'm not mistaken.
Updated by Vadim Pisarevsky about 14 years ago
probably fixed in r4337
- Status changed from Open to Done
- (deleted custom field) set to fixed