您的位置:首页 > 运维架构

OpenCV2.4.9移植ARM,Ubuntu12.04

2016-10-09 08:48 1416 查看
最近参考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 scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:134: error: 'CODEC_ID_MPEG4' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:136: error: 'CODEC_ID_MPEG4' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:138: error: 'CODEC_ID_MSMPEG4V3' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:139: error: 'CODEC_ID_MSMPEG4V3' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:142: error: 'CODEC_ID_MSMPEG4V3' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:143: error: 'CODEC_ID_MSMPEG4V3' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:144: error: 'CODEC_ID_MSMPEG4V3' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:145: error: 'CODEC_ID_MSMPEG4V3' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:146: error: 'CODEC_ID_MSMPEG4V3' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:147: error: 'CODEC_ID_MSMPEG4V3' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:148: error: 'CODEC_ID_MSMPEG4V3' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:150: error: 'CODEC_ID_MSMPEG4V2' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:153: error: 'CODEC_ID_MSMPEG4V2' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:155: error: 'CODEC_ID_MSMPEG4V1' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:157: error: 'CODEC_ID_WMV1' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:160: error: 'CODEC_ID_WMV2' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:161: error: 'CODEC_ID_DVVIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:162: error: 'CODEC_ID_DVVIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:163: error: 'CODEC_ID_DVVIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:164: error: 'CODEC_ID_DVVIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:165: error: 'CODEC_ID_MPEG1VIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:166: error: 'CODEC_ID_MPEG1VIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:167: error: 'CODEC_ID_MPEG2VIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:168: error: 'CODEC_ID_MPEG2VIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:169: error: 'CODEC_ID_MPEG1VIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:170: error: 'CODEC_ID_MPEG1VIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:171: error: 'CODEC_ID_MPEG1VIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:172: error: 'CODEC_ID_MPEG2VIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:173: error: 'CODEC_ID_MPEG2VIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:174: error: 'CODEC_ID_MPEG2VIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:175: error: 'CODEC_ID_MJPEG' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:176: error: 'CODEC_ID_MJPEG' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:177: error: 'CODEC_ID_LJPEG' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:178: error: 'CODEC_ID_MJPEG' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:179: error: 'CODEC_ID_MJPEG' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:180: error: 'CODEC_ID_MJPEG' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:181: error: 'CODEC_ID_MJPEG' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:182: error: 'CODEC_ID_MJPEG' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:183: error: 'CODEC_ID_HUFFYUV' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:184: error: 'CODEC_ID_FFVHUFF' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:185: error: 'CODEC_ID_CYUV' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:186: error: 'CODEC_ID_RAWVIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:187: error: 'CODEC_ID_RAWVIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:188: error: 'CODEC_ID_RAWVIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:189: error: 'CODEC_ID_RAWVIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:190: error: 'CODEC_ID_RAWVIDEO' was not declared in this scope

/usr/loc
ab23
al/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:191: error: 'CODEC_ID_RAWVIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:192: error: 'CODEC_ID_RAWVIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:193: error: 'CODEC_ID_RAWVIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:194: error: 'CODEC_ID_RAWVIDEO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:195: error: 'CODEC_ID_INDEO3' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:196: error: 'CODEC_ID_INDEO3' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:197: error: 'CODEC_ID_VP3' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:198: error: 'CODEC_ID_VP3' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:199: error: 'CODEC_ID_ASV1' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:200: error: 'CODEC_ID_ASV2' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:201: error: 'CODEC_ID_VCR1' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:202: error: 'CODEC_ID_FFV1' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:203: error: 'CODEC_ID_XAN_WC4' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:204: error: 'CODEC_ID_MSRLE' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:205: error: 'CODEC_ID_MSRLE' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:206: error: 'CODEC_ID_MSVIDEO1' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:207: error: 'CODEC_ID_MSVIDEO1' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:208: error: 'CODEC_ID_MSVIDEO1' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:209: error: 'CODEC_ID_MSVIDEO1' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:210: error: 'CODEC_ID_MSVIDEO1' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:211: error: 'CODEC_ID_MSVIDEO1' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:212: error: 'CODEC_ID_CINEPAK' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:213: error: 'CODEC_ID_TRUEMOTION1' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:214: error: 'CODEC_ID_MSZH' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:215: error: 'CODEC_ID_ZLIB' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:216: error: 'CODEC_ID_SNOW' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:217: error: 'CODEC_ID_4XM' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:218: error: 'CODEC_ID_FLV1' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:219: error: 'CODEC_ID_SVQ1' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:220: error: 'CODEC_ID_TSCC' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:221: error: 'CODEC_ID_ULTI' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:222: error: 'CODEC_ID_VIXL' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:223: error: 'CODEC_ID_QPEG' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:224: error: 'CODEC_ID_QPEG' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:225: error: 'CODEC_ID_QPEG' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:226: error: 'CODEC_ID_WMV3' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:227: error: 'CODEC_ID_LOCO' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:228: error: 'CODEC_ID_THEORA' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:230: error: 'CODEC_ID_WNV1' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:231: error: 'CODEC_ID_AASC' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:232: error: 'CODEC_ID_INDEO2' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:233: error: 'CODEC_ID_FRAPS' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:234: error: 'CODEC_ID_TRUEMOTION2' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:237: error: 'CODEC_ID_FLASHSV' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:238: error: 'CODEC_ID_JPEGLS' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:239: error: 'CODEC_ID_VC1' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:240: error: 'CODEC_ID_VC1' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:241: error: 'CODEC_ID_CSCD' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:242: error: 'CODEC_ID_ZMBV' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:243: error: 'CODEC_ID_KMVC' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:246: error: 'CODEC_ID_VP5' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:247: error: 'CODEC_ID_VP6' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:248: error: 'CODEC_ID_VP6' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:249: error: 'CODEC_ID_VP6' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:250: error: 'CODEC_ID_VP6F' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:251: error: 'CODEC_ID_JPEG2000' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:252: error: 'CODEC_ID_VMNC' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:256: error: 'CODEC_ID_TARGA' was not declared in this scope

/usr/local/arm/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:258: error: 'CODEC_ID_NONE' was not declared in this scope

make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o] Error 1

make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2

make: *** [all] Error 2

root@ubuntu:/usr/local/arm/opencv-2.4.9/build# 

不知道有没有人遇到过类似的错误
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息