grfmt_png.cpp:226: error: `png_set_expand_gray_1_2_4_to_8' undeclared (Bug #740)


Added by Valérie Vallet over 14 years ago. Updated about 14 years ago.


Status:Done Start date:
Priority:Low Due date:
Assignee:- % Done:

0%

Category:build/install
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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

Revision 0c64fc61
Added by Andrey Kamaev almost 12 years ago

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

Also available in: Atom PDF