cv2.so missing on ubuntu
I'm trying to install opencv 3 with python 2.7 bindings on ubuntu 14.04. I mostly followed the steps described here, with the only difference on cmake options (I use conda):
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/home/hangsu/miniconda3/envs/cv \
-D WITH_TBB=ON -D WITH_EIGEN=ON \
-D OPENCV_EXTRA_MODULES_PATH=/home/hangsu/opencv/opencv_contrib/modules \
-D BUILD_opencv_python2=ON -D BUILD_opencv_python3=OFF \
-D PYTHON2_EXECUTABLE=/home/hangsu/miniconda3/envs/cv/bin/python2.7 \
-D PYTHON2_INCLUDE_DIR=/home/hangsu/miniconda3/envs/cv/include/python2.7 \
-D PYTHON2_LIBRARY=/home/hangsu/miniconda3/envs/cv/lib/libpython2.7.so.1.0 \
-D PYTHON2_NUMPY_INCLUDE_DIRS=/home/hangsu/miniconda3/envs/cv/lib/python2.7/site-packages/numpy/core/include \
-D PYTHON2_PACKAGES_PATH=lib/python2.7/site-packages ..
cmake output looks correct (only showing relevant parts):
...
-- Found PythonInterp: /home/hangsu/miniconda3/envs/cv/bin/python2.7 (found suitable version "2.7.10", minimum required is "2.7")
-- Found PythonLibs: /home/hangsu/miniconda3/envs/cv/lib/libpython2.7.so.1.0 (found suitable exact version "2.7.10")
-- Found PythonInterp: /usr/bin/python3.4 (found suitable version "3.4.3", minimum required is "3.4")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.4m.so (found suitable exact version "3.4.3")
...
-- Python 2:
-- Interpreter: /home/hangsu/miniconda3/envs/cv/bin/python2.7 (ver 2.7.10)
-- Libraries: /home/hangsu/miniconda3/envs/cv/lib/libpython2.7.so.1.0 (ver 2.7.10)
-- numpy: /home/hangsu/miniconda3/envs/cv/lib/python2.7/site-packages/numpy/core/include (ver 1.10.1)
-- packages path: /home/hangsu/opencv/opencv/build/lib/python2.7/site-packages
...
However after compiling and installation (make -j28; sudo make install), I cannot find "cv2.so" under where I suppose it should be (/home/hangsu/miniconda3/envs/cv/lib/python2.7/site-packages). Is it anywhere else?
Btw I'm using cmake version 3.2.2. I was getting this problem using 2.8.12 so upgraded, but it's not helping.
I am running into the same missing cv2.so problem on attempting to upgrade from 3.1 to 3.2 ; -- Python 2:
gives a suspiciously missing python (for build) field: