Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

opencv with non default python executable

Hello

Following the manual of opencv-3.2, I used the following command

cmake -D CMAKE_BUILD_TYPE=Release \\
-D CMAKE_INSTALL_PREFIX=/opt/opencv-3.2.0/built/ \\
-D PYTHON2\(3\)_EXECUTABLE=/opt/python/bin/python3.3  \\
..

I expect that the compiler uses python 3.3, however, the output of the cmake command shows

--   Python 2:
--     Interpreter:                 /usr/bin/python2 (ver 2.6.6)
--
--   Python 3:
--     Interpreter:                 NO
--
--   Python (for build):            /usr/bin/python2

What did I miss in the command line?