chamfermatching.cpp:969:30: error: the compiler can assume that the address of ‘annotate_img’

chamfermatching.cpp:969:30: error: the compiler can assume that the address of ‘annotate_img’

我编译的版本是opencv2.4.9 
解决办法 
找到opencv-2.4.9/build/modules/contrib/CMakeFiles/opencv_contrib.dir/flags.make文件,删掉-Werror=address,然后重新

make

你可能感兴趣的:(opencv)