使用标准方法:conda

conda install -c https://conda.anaconda.org/menpo ffmpeg

conda install -c https://conda.anaconda.org/menpo opencv3

Installing OpenCV 2.4.x with FFMPEG(installed) , Python on Anaconda

conda install conda-build
conda install cmake
git clone https://github.com/menpo/conda-opencv
conda config --add channels menpo

go to the conda-opencv/conda folder and edit the build.sh file. Modify the following cmake flag in that file:

-DWITH_FFMPEG =1

Depending upon the version of cmake installed by Anaconda, edit the meta.yaml as follows:

...
requirements:
    build:-
      cmake 3.3.x  
# change x to whatever version is installed

If you want to know which version of cmake is installed, you can issue:

$ conda list
$ conda build /conda
$ conda install /PATH/TO/OPENCV/PACKAGE.tar.gz

If you installed Anaconda in your home directory, then the path would be

/home/anaconda3/conda-bld/linux-64/

results matching ""

    No results matching ""