Ask Your Question

Alprobit's profile - activity

2016-09-03 08:01:12 -0600 received badge  Necromancer (source)
2015-07-10 08:47:42 -0600 received badge  Enthusiast
2015-05-09 01:06:11 -0600 received badge  Editor (source)
2015-05-07 00:05:50 -0600 answered a question Compile Python3 lib of OpenCV3.0

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

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 that run make -j6 and make install. After that I got working cv2 module for both python2 and python3.