1. 程式人生 > >cap_ffmpeg.o error 安裝opencv 2.3.1

cap_ffmpeg.o error 安裝opencv 2.3.1

在make時會出現cap_ffmpeg.o error

具體如下

In file included from /smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg.cpp:45:0:
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1029:10: error: use of enum ‘CodecID’ without previous declaration
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1029:52: error: invalid type in declaration before ‘;’ token


/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1081:46: error: ‘CodecID’ has not been declared
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp: In function ‘AVStream* icv_add_video_stream_FFMPEG(AVFormatContext*, int, int, int, int, double, int)’:
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1114:23: error: invalid conversion from ‘int’ to ‘AVCodecID’ [-fpermissive]

In file included from /smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg.cpp:45:0:
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘bool CvVideoWriter_FFMPEG::open(const char*, int, double, int, int, bool)’:
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1480:5: error: ‘CodecID’ was not declared in this scope

/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1480:13: error: expected ‘;’ before ‘codec_id’
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1525:10: error: ‘codec_id’ was not declared in this scope
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1545:13: error: ‘codec_id’ was not declared in this scope
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1574:48: error: ‘codec_id’ was not declared in this scope
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp: At global scope:
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1791:58: error: ‘CodecID’ has not been declared
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1838:73: error: ‘CodecID’ has not been declared
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp: In static member function ‘static AVStream* OutputMediaStream_FFMPEG::addVideoStream(AVFormatContext*, int, int, int, int, double, AVPixelFormat)’:
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1854:19: error: invalid conversion from ‘int’ to ‘AVCodecID’ [-fpermissive]
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘bool OutputMediaStream_FFMPEG::open(const char*, int, int, double)’:
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1958:5: error: ‘CodecID’ was not declared in this scope
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1958:13: error: expected ‘;’ before ‘codec_id’
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1980:37: error: ‘codec_id’ was not declared in this scope
make2* [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o] Error 1
make2: Leaving directory `/smartbuild/work/opencv.git/release'
make1
[modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2

顯然是由ffmpeg沒有安裝好或者版本不對。 我們用ffmpeg0.1(OpenCV2.3.1之前的版本需要使用ffmpeg 0.7.x.)ffmpeg-0.10

相關推薦

cap_ffmpeg.o error 安裝opencv 2.3.1

在make時會出現cap_ffmpeg.o error 具體如下 In file included from /smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg.cpp:45:0:/smartbuild/wo

Centos6.8 安裝spark-2.3.1 以及 scala-2.12.2

一、Spark概述    Spark 是一個用來實現快速而通用的叢集計算的平臺。     在速度方面,Spark 擴充套件了廣泛使用的 MapReduce 計算模型,而且高效地支援更多計算模式,包括互動式查詢和流處理。 在處理大

windows OpenCV 2.3.1/Opencv2.4.6 + Python 2.7配置

1 .下載 OpenCV 2.3.1 。文中下載了OpenCV-2.3.1-win-superpack (大概124MB,解壓後1G多)。他不需編譯,使用方便 下載地址  2. OpenCV-2.3.1-win-superpack.exe是自解壓檔案,直接執行。即可解壓。預設解壓到opencv資料夾裡。

Ubuntu 12.04 + opencv 2.4.1 + Qt 4.8.3 + Qt creater 2.5.2 安裝配置

整體參考:http://www.cnblogs.com/tornadomeet/archive/2012/07/10/2584702.html 1. opencv庫的安裝參考http://www.samontab.com/web/2012/06/installing-ope

Centos 7 安裝OCSInventory NG 2.3.1全記錄

zip ocsinventory OCSInventory Server 安裝記錄OS:centos 7 coreIP:192.168.8.108hostname:OCSInventoryuser root:ocsadminusr ocs:ocsadminyum install openssh v

Python踩坑之路-Python-3.6 安裝pycrypto 2.6.1各種疑難雜症及解決方案

最近接觸公司後臺管理系統的開發,其中涉及到加密模組pycrypto。 重點來了!!!!敲黑板!!!! pycrypto在PyCharm中跟其他的模組不一樣,pip install pycrypto安裝的是1.4.1版本,然後雖然模組能夠install成功,但

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:

security-sdk-1.0.jar已經存在於D:/secServerSDK-test/src/main/resources/lib下 報錯如下: [email protected] /d/secServerSDK-test/src/main/resources/lib $ mvn inst

【Redis】2、CentOS 7 上安裝 redis3.2.3安裝與配置

sync 倉庫 ace /var/ 發現 wan sudo base str 一、redis源碼安裝 【更正】現在最新穩定的版本已經到了3.2.8 截至到2016.8.11,redis最新穩定版本為3.2.3.本篇文章我們就以此版本為基礎,進行相關的講解。 下載redis源

開發人員學Linux(9):CentOS7編譯安裝Git-2.13.1及使用

centos linux git tortoisegit 1.前言在上一篇講述了如何在CentOS7上編譯安裝Subversion1.9.5和Apache2.4.25,並與Apache2.4.25集成,達到多個SVN版本庫集中授權控制的效果。在傳統的企業裏面使用SVN來作為源代碼版本工具的比例

Centos安裝Ruby2.2.3

下載 sta blank group toc 軟件設置 tro star str 升級軟件包版本 (PS:我沒有升級,一是太慢了,二是不知道更新完之後是否會影響其他的應用) [html] view plain copy #升級所有包,改變軟件設置和系統設置

2.3.1 TextView(文本框)詳解

方便 etop wrap -c radi xmlns info 普通 bsp http://www.runoob.com/w3cnote/android-tutorial-textview.html 1.基礎屬性詳解: 通過下面這個簡單的界面,我們來了解幾個最基本的屬性

php5.5.32編譯安裝imagick-2.3.0php擴展插件遇到的坑

php5.5.32安裝圖形插件遇到的坑插件,調用ImageMagick圖形處理軟件,必須圖形處理軟件先安裝才可以安裝此插件,否則報錯。到pecl.php.net下載源代碼包。地址http://pecl.php.net/package/imagick php5.5不支持 imagick-2.3.0.tgz會報錯

Linux下源碼安裝Peach-2.3.8教程

href 網址 werror 可能 ng- mod .com psutil PE 在peach文件夾下運行 python peach.py ./samples/HelloWorld.xml 提示先安裝4Suite-XML。 根據提示在dependences文件夾下安裝,

Atitit api標準化法 it法學之 目錄 1. 永遠的痛點:介面與協議的標準化 1 2. 標準化優點 1 3. 標準化組織 2 3.1. 應當處理標準化委員會 2 3.2. 標準化提案與表決

Atitit  api標準化法 it法學之   目錄 1. 永遠的痛點:介面與協議的標準化 1 2. 標準化優點 1 3. 標準化組織 2 3.1. 應當處理標準化委員會 2 3.2. 標準化提案與表決 2 4. 標準化方法 2 4.1. Ap

2.3.1 Longest Prefix 最長字首(字典樹)

Description 在生物學中,一些生物的結構是用包含其要素的大寫字母序列來表示的。生物學家對於把長的序列分解成較短的(稱之為元素的)序列很感興趣。 如果一個集合 P 中的元素可以通過串聯(允許重複;串聯,相當於 Pascal 中的 “+” 運算子)組成一個序列 S ,那麼我們認為序列

Atitit 工作流之道 艾提拉著 BPM,即業務流程管理 目錄 1. 流程入門 思想 歷史 分類 1 第二篇 第2章 初識工作流 2 1.1. 2.3 工作流技術相關規範  2.3.1 W

Atitit 工作流之道  艾提拉著   BPM,即業務流程管理   目錄 1. 流程入門 思想 歷史 分類 1 第二篇  第2章 初識工作流 2 1.1.  2.3 工作流技術相關規範  2.3.1 WfMC之

windows安裝logstash6.2.3

1 下載地址:logstash 2  解壓檔案: D:\Program Files\elasticsearch-6.2.3\logstash-6.2.3 3  進入bin目錄,新建檔案 logstash_default.conf input { stdin{ }

離線安裝expat-2.0.1 ——安裝apr-util 遇到 expat.h: No such file or directory 的解決

在安裝apr-util-1.6.1 的過程中 ./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config make 之後出現報錯 xml/ap

CentOS6.5安裝ElasticSearch6.2.3 CentOS6.5安裝ElasticSearch6.2.3

CentOS6.5安裝ElasticSearch6.2.3 1、Elastic 需要 Java 8 環境。(安裝步驟:http://www.cnblogs.com/hunttown/p/5450463.html) 2、安裝包下載: #官網地址 https://www.el