最近参考http://blog.csdn.net/stihy/article/details/51288743这个网址准备在Ubuntu里面交叉编译OpenCV2.4.9,不过在最后一步make的时候出现以下错误
cc1plus: warning: include location "/usr/local/include" is unsafe for cross-compilation [-Wpoison-system-directories]
In file included from /usr/local/arm/opencv-2.4.9/modules/highgui/src/cap_ffmpeg_impl.hpp:60,
from /usr/local/arm/opencv-2.4.9/modules/highgui/src/cap_ffmpeg.cpp:45:
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:104: error: 'CODEC_ID_H264' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:105: error: 'CODEC_ID_H264' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:106: error: 'CODEC_ID_H264' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:107: error: 'CODEC_ID_H264' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:108: error: 'CODEC_ID_H264' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:109: error: 'CODEC_ID_H264' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:111: error: 'CODEC_ID_H263' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:112: error: 'CODEC_ID_H263P' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:113: error: 'CODEC_ID_H263I' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:114: error: 'CODEC_ID_H261' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:117: error: 'CODEC_ID_H263P' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:118: error: 'CODEC_ID_H263P' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:120: error: 'CODEC_ID_MPEG4' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:121: error: 'CODEC_ID_MPEG4' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:122: error: 'CODEC_ID_MPEG4' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:123: error: 'CODEC_ID_MPEG4' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:124: error: 'CODEC_ID_MPEG4' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:125: error: 'CODEC_ID_MPEG4' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:126: error: 'CODEC_ID_MPEG4' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:129: error: 'CODEC_ID_MPEG4' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:130: error: 'CODEC_ID_MPEG4' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:131: error: 'CODEC_ID_MPEG4' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:132: error: 'CODEC_ID_MPEG4' was not declared in this scope
/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:133: error: 'CODEC_ID_MPEG4' was not declared in this