Ask Your Question
0

cv2.so missing after opencv installed

asked 2013-04-03 09:16:20 -0600

alex1306 gravatar image

Today I tried to install opencv 2.4.4 to Ubuntu 12.10

The cv2.so missed, so import cv2 not work.

root@-:~# find / -name "cv.py"
/root/opencv-2.4.4/modules/python/src2/cv.py
root@-:~# find / -name "cv2.so"
root@-:~#

Python 2.7.3

Where is cv2.so ?

My setup steps look like

wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.4/OpenCV-2.4.4a.tar.bz2
tar -xjf OpenCV-2.4.4a.tar.bz2
cd opencv-2.4.4
mkdir release
cd release 
cmake -D CMAKE_BUILD_TYPE=RELEASE   -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON ..
make && make install
echo "/usr/local/lib" >> /etc/ld.so.conf.d/opencv.conf
ldconfig  
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig" >> /etc/bash.bashrc
echo "export PKG_CONFIG_PATH" >> /etc/bash.bashrc
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-04-03 14:14:15 -0600

Guanta gravatar image

I think 'BUILD_PYTHON_SUPPORT' changed to 'BUILD_opencv_python' . Please try this. Btw.: you can also use 'ccmake' (the curser interface for 'cmake') to see all opencv-build-options.

edit flag offensive delete link more

Comments

Thanks, I'll try it

alex1306 gravatar imagealex1306 ( 2013-04-04 22:59:05 -0600 )edit
1

It has changed to "BUILD_opencv_python2" in version 3.0.0-beta of OpenCV.

Shubham199 gravatar imageShubham199 ( 2015-06-22 05:02:23 -0600 )edit

Question Tools

Stats

Asked: 2013-04-03 09:16:20 -0600

Seen: 8,160 times

Last updated: Apr 03 '13