Build OpenCV 3.0.0 for Python 3.4 on Ubuntu

asked 2015-03-03 07:17:01 -0600

victorp gravatar image

I'm tring to compile OpenCV 3.0.0 (beta) with Python 3 support. However when runnig CMake I get the following error:

Could NOT find PythonLibs (missing:  PYTHON_INCLUDE_DIRS) (found suitable exact version "3.4.0")

And then further down:

Python 3:
    Interpreter:                 /usr/bin/python3.4 (ver 3.4)
    Libraries:                   NO
    numpy:                       /usr/lib/python3/dist-packages/numpy/core/include (ver 1.8.2)
    packages path:               lib/python3.4/dist-packages

Therefore the make target opencv_python3 is not available. But I have python3.4 and python3.4-dev installed of course. On Ubuntu 14.02.

thanks!

edit retag flag offensive close merge delete