Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Compile OpenCV with anaconda python

Hello, I am trying to compile opencv with anaconda python support (I need to use opencv in python). The pre-built packages available from conda channels (e.g. intel or conda-forge) are not usable for me as I require to link the opencv build with own custom compiled ffmpeg as well as I need cuda support.

I am using cmake-gui to configure opencv build environment. The problem I am facing is Cmake is unable to detect anaconda python on its own (given it is installed at the default conda installation path /home/user/minicaonda). If I manually add paths to anaconda as given at the following link the Python Libraries are still not detected. https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/R9gWjl09UFs

As a result cmake configure log shows that python2 & python3 are unavailable. If I run make as it is the cv2.so (or cv2.cpython*.so) is not built.

Can someone guide me on how to resolve this issue?

Compile OpenCV with anaconda python

Hello, I am trying to compile opencv with anaconda python support (I need to use opencv in python). The pre-built packages available from conda channels (e.g. intel or conda-forge) are not usable for me as I require to link the opencv build with intel python distribution (installed via conda), with own custom compiled ffmpeg as well as I need cuda support.

I am using cmake-gui to configure opencv build environment. The problem I am facing is Cmake is unable to detect anaconda python on its own (given it is installed at the default conda installation path /home/user/minicaonda). If I manually add paths to anaconda as given at the following link the Python Libraries are still not detected. https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/R9gWjl09UFs

As a result cmake configure log shows that python2 & python3 are unavailable. If I run make as it is the cv2.so (or cv2.cpython*.so) is not built.

Can someone guide me on how to resolve this issue?