Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I had the same problem with opencv-3.0.0-beta and opencv-3.0.0-rc1.

My working solution with cmake-gui tool:

  1. the build directory MUST BE empty (otherwise I got "Libraries: NO" for Python3)
  2. set source code directory and build directory paths
  3. add new entries (usgin "Add entry" button) that has to have non-default values (e.g., OPENCV_EXTRA_MODULES_PATH:PATH=../opencv_contrib/modules for extra modules)
  4. press configure only once
  5. if configuration satisfies your requirements (including Python 3 Libraries path correctness) then press generate otherwise go to step 1 (in the step 3 add necessary options).

After that run make -j6 and make install. After that I got working cv2 module for both python2 and python3.

I had the same problem with opencv-3.0.0-beta and opencv-3.0.0-rc1.

My working solution with cmake-gui tool:

  1. the build directory MUST BE empty (otherwise I got "Libraries: NO" for Python3)
  2. set source code directory and build directory paths
  3. add new entries (usgin "Add entry" button) that has to have non-default values (e.g., OPENCV_EXTRA_MODULES_PATH:PATH=../opencv_contrib/modules for extra modules)
  4. press configure only once
  5. if configuration satisfies your requirements (including Python 3 Libraries path correctness) then press generate otherwise go to step 1 (in the step 3 add necessary options).

After that than run make -j6 and make install. After that than I got working cv2 module for both python2 and python3.

I had the same problem with opencv-3.0.0-beta and opencv-3.0.0-rc1.

My working solution with cmake-gui tool:

  1. the build directory MUST BE empty (otherwise I always got "Libraries: NO" for Python3)Python3 even through specify direct path to library)
  2. set source code directory and build directory paths
  3. add new entries (usgin "Add entry" button) that has to have non-default values (e.g., OPENCV_EXTRA_MODULES_PATH:PATH=../opencv_contrib/modules for extra modules)
  4. press configure only once
  5. if configuration satisfies your requirements (including Python 3 Libraries path correctness) then press generate otherwise go to step 1 (in the step 3 add necessary options).

After than run make -j6 and make install. After than I got working cv2 module for both python2 and python3.

I had the same problem with opencv-3.0.0-beta and opencv-3.0.0-rc1.

My working Working solution for me with cmake-gui tool:

  1. the build directory MUST BE empty (otherwise I always got "Libraries: NO" for Python3 even through specify direct path to library)
  2. set source code directory and build directory paths
  3. add new entries (usgin "Add entry" button) that has to have non-default values (e.g., OPENCV_EXTRA_MODULES_PATH:PATH=../opencv_contrib/modules for extra modules)
  4. press configure only once
  5. if configuration satisfies your requirements (including Python 3 Libraries path correctness) then press generate otherwise go to step 1 (in the step 3 add necessary options).

After than that run make -j6 and make install. After than that I got working cv2 module for both python2 and python3.