Successfully built opencv 3.3.0 but no cv2.so found [closed]

asked 2017-08-29 02:52:20 -0600

kmusoy gravatar image

updated 2017-08-29 03:13:54 -0600

under ubuntu 14.04.

The cmake commands are: cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_CUDA=ON -D ENABLE_FAST_MATH=1 -D CUDA_FAST_MATH=1 -D WITH_CUBLAS=1 -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-3.3.0/modules -D BUILD_EXAMPLES=ON ..

After make and make install, there are no cv2.so in neither /usr/local/lib/python2.7/site-packages/ nor the build directory. I checked the build folder of opencv 3.0 previously used, there's cv2.so.

Does anyone know how to solve this? thanks! The cmake output is:

-- Detected version of GNU GCC: 48 (408)
-- Looking for ccache - not found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3") 
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") 
-- Found OpenEXR: /usr/lib/x86_64-linux-gnu/libIlmImf.so
-- checking for module 'gtk+-3.0'
--   package 'gtk+-3.0' not found
-- checking for module 'gstreamer-video-1.0'
--   package 'gstreamer-video-1.0' not found
-- checking for module 'gstreamer-app-1.0'
--   package 'gstreamer-app-1.0' not found
-- checking for module 'gstreamer-riff-1.0'
--   package 'gstreamer-riff-1.0' not found
-- checking for module 'gstreamer-pbutils-1.0'
--   package 'gstreamer-pbutils-1.0' not found
-- checking for module 'gstreamer-base-0.10'
--   package 'gstreamer-base-0.10' not found
-- checking for module 'gstreamer-video-0.10'
--   package 'gstreamer-video-0.10' not found
-- checking for module 'gstreamer-app-0.10'
--   package 'gstreamer-app-0.10' not found
-- checking for module 'gstreamer-riff-0.10'
--   package 'gstreamer-riff-0.10' not found
-- checking for module 'gstreamer-pbutils-0.10'
--   package 'gstreamer-pbutils-0.10' not found
-- 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'
--   package 'libavresample' not found
-- found Intel IPP (ICV version): 2017.0.2 [2017.0.2]
-- at: /home/ccnt514/repo/Programs/opencv3.3/opencv-3.3.0/build/3rdparty/ippicv/ippicv_lnx
-- found Intel IPP IW binaries: 2017.0.2
-- at: /home/ccnt514/repo/Programs/opencv3.3/opencv-3.3.0/build/3rdparty/ippicv/ippicv_lnx/../ippiw_lnx/
-- CUDA detected: 8.0
-- CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-D_FORCE_INLINES
-- Found OpenBLAS libraries: /usr/lib/libopenblas.so
-- Found OpenBLAS include: /usr/include
-- LAPACK(OpenBLAS): LAPACK_LIBRARIES: /usr/lib/libopenblas.so
-- Could NOT find Atlas (missing:  Atlas_CLAPACK_INCLUDE_DIR) 
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Found apache ant 1.9.3: /usr/bin/ant
-- Could NOT find Matlab (missing:  MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) 
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- Caffe:   NO
-- Protobuf:   YES
-- Glog:   NO
-- Looking for tiny_dnn.h
-- Looking for tiny_dnn.h - found
-- Found tiny-dnn in: /home/ccnt514/repo/Programs/opencv3.3/opencv-3.3.0/build/3rdparty/tinydnn/tiny-dnn-1.0.0a3
-- The protocol buffer compiler is ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by berak
close date 2017-08-29 04:48:10.104988

Comments

please add the cmake output to your question (yes, it is long !)

berak gravatar imageberak ( 2017-08-29 02:55:45 -0600 )edit

Hi, I've added the output. took a while for formatting.

kmusoy gravatar imagekmusoy ( 2017-08-29 03:15:19 -0600 )edit

^^ yea, thanks a lot !

berak gravatar imageberak ( 2017-08-29 03:23:12 -0600 )edit

you will need the headers & libs for the python version you want to use (python-dev) also a recent numpy version(>0.9)

berak gravatar imageberak ( 2017-08-29 03:26:56 -0600 )edit

Thanks a lot! Problem solved

kmusoy gravatar imagekmusoy ( 2017-08-29 03:47:28 -0600 )edit