Has someone been able to build OpenCv on Mac Os X Lion ? I have tried using homebrew but I get the following linking error
Linking CXX shared library ../../lib/libopencv_highgui.dylib
Undefined symbols for architecture x86_64:
"_png_set_gray_1_2_4_to_8", referenced from:
cv:
ngDecoder::readData(cv::Mat&) in grfmt_png.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [lib/libopencv_highgui.2.3.1.dylib] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2
Linking CXX shared library ../../lib/libopencv_highgui.dylib
Undefined symbols for architecture x86_64:
"_png_set_gray_1_2_4_to_8", referenced from:
cv:
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [lib/libopencv_highgui.2.3.1.dylib] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2