I am trying to get opencv to work with Python3.5 on Ubuntu 16.04
I have followed the steps in the answer to this: How to install OpenCV 3.1 for Python 3.5 On Ubuntu 16.04 LTS?
and also the link in it. I did have to install some other dependencies too.
My first issue is that cmake keeps finding Python3.4 not Python3.5.
-- Python 2:
-- Interpreter: /usr/bin/python2.7 (ver 2.7.11)
-- Libraries: /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.11+)
-- numpy: /usr/local/lib/python2.7/dist-packages/numpy/core/include (ver 1.11.1)
-- packages path: lib/python2.7/dist-packages
--
-- Python 3:
-- Interpreter: /usr/bin/python3.4 (ver 3.4)
--
There are some other missing dependencies too mentioned. I don't know how essential they are. e.g. Matlab:
-- Matlab: Matlab not found or implicitly disabled
also gtk+-3.0 although I thought I had installed that:
-- Checking for module 'gtk+-3.0'
-- No package 'gtk+-3.0' found
and a couple of others:
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for sys/videoio.h
-- Looking for sys/videoio.h - not found
-- Checking for module 'libavresample'
-- No package 'libavresample' found
I did a grep / sed command to modify python3.4 to 3.5 and tried make and make install but it's still not there.
libgtk-3-0
,python3.5
etc.) and the corresponding development header/library packages (libgtk-3-dev
,python3.5-dev
etc.) - the latter packages are what you need for building software from source. – steeldriver Aug 03 '16 at 19:08