Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 2088

Segmentation fault while import cv2 in centos

$
0
0
I'm installing Opencv3 on Centos 2.6 with Python 2.6. I get the error when I `import cv`. I get a `Segmentation fault` error. I'm installing OpenCV like this: yum update && \ yum install -y libjpeg-turbo && \ yum install -y libtiff-devel && \ yum install -y libpng-devel && \ yum install -y cmake python-devel numpy gcc gcc-c++ gtk2-devel libdc1394-devel libv41-devel ffmpeg-devel gstreamer-plugins-base-devel && \ yum groupinstall -y "Development Tools" cmake -D CMAKE_BUILD_TYPE=RELEASE -D \ CMAKE_INSTALL_PREFIX=/usr/local -D \ OPENCV_EXTRA_MODULES_PATH=/opencv_contrib/modules/ .. make -j4 make install /usr/local/lib/python2.6/site-packages/cv2.so /usr/lib/python2.6/site-packages/ Importing cv2 gives a segmentation fault error. I get the following output: [root@localhost ~]# python Python 2.6.6 (r266:84292, Jul 23 2015, 15:22:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 Segmentation fault

Viewing all articles
Browse latest Browse all 2088

Trending Articles