Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
5 years, 1 month ago
Hi everyone I hope someone could help solve this issue,I'm trying to install openCV 3.3.0 with python 3.5 on the raspberry pi 3 for the second time ( first time I got no module named cv2 ) but this time I didn't even got there , it seems like I'm blocked here with the error of 'segmentation fault' and i can't understand why !
this is what I typed in the terminal
pi@raspberrypi:~ $ source ~/.profile
pi@raspberrypi:~ $ workon cv
(cv) pi@raspberrypi:~ $ cd opencv-3.3.0
(cv) pi@raspberrypi:~/opencv-3.3.0 $ cd build
(cv) pi@raspberrypi:~/opencv-3.3.0/build $ ls
(cv) pi@raspberrypi:~/opencv-3.3.0/build $ cmake -DCMAKE_BUILD_TYPE=RELEASE\
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.3.0/modules \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D PYTHON_EXECUTABLE=/home/pi/.virtualenvs/cv/bin/python3.5 \
-D PYTHON_LIBRARY=/usr/lib/arm-linux-gnueabihf/libpython3.5m.so \
-D INSTALL_C_EXAMPLES=OFF \
-D BUILD_EXAMPLES=ON ..
Apr 15, 2018 at 18:22
Could be running out of memory. Use htop to view cpu and ram usage when running command. Configure your RPI to add swap memory if needed.
Sep 27, 2019 at 16:28
I did encounter this same scenario.
It was fixed when I change the uSD card, from
then re-image the new uSD card using latest raspbian.
16 GiB Class 10
Apr 19, 2018 at 8:06
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only