Code Monkey home page Code Monkey logo

tes3awy / opencv-3.2.0-compiling-on-raspberry-pi Goto Github PK

View Code? Open in Web Editor NEW
70.0 15.0 36.0 450 KB

Download, Compile, Build, and Install OpenCV 3.2.0 with Extra Modules on RPI running Raspberry Pi OS

License: GNU Affero General Public License v3.0

raspberry-pi-3 opencv3 raspberry-pi opencv rpi python opencv-contrib opencv-python opencv-contrib-python raspberry-pi-os raspberry-pi-camera swapfile swap-service python2 raspbian raspbian-os

opencv-3.2.0-compiling-on-raspberry-pi's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opencv-3.2.0-compiling-on-raspberry-pi's Issues

Illegal instruction

I compiled opencv 3.2 and followed every step till the last one but as soon as I import cv2 the command prompt says illegal instruction and quits out of python shell. library compiled for raspberry pi zero W, running raspbian stretch lite.

Step 13 - compile

Compiling with -j3 failed for me.

make alone tooks 7h or so but it worked fine.

Installing OpenCV 3.3.0 with opencv-contrib on Raspberry Pi 3, but got error during make

Hi,
I installing opencv 3.3.0 on my raspberry pi 3, using the cmake with the following configure:
cmake -D CMAKE_BUILD_TYPE=RELEASE
-D INSTALL_C_EXAMPLES=OFF
-D INSTALL_PYTHON_EXAMPLES=ON
-D CMAKE_INSTALL_PREFIX=/usr/local
-D WITH_V4L=ON
-D INSTALL_CREATE_DISTRIB=ON
-D ENABLE_NEON=ON
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules
-D BUILD_EXAMPLES=ON ..

But ended up, with the following error

CMakeFiles/opencv_perf_imgproc.dir/__/imgproc/perf/opencl/perf_pyramid.cpp.o: file not recognized: File truncated
collect2: error: ld returned 1 exit status
modules/world/CMakeFiles/opencv_perf_imgproc.dir/build.make:1033: recipe for target 'bin/opencv_perf_imgproc' failed
make[2]: *** [bin/opencv_perf_imgproc] Error 1
CMakeFiles/Makefile2:5038: recipe for target 'modules/world/CMakeFiles/opencv_perf_imgproc.dir/all' failed
make[1]: *** [modules/world/CMakeFiles/opencv_perf_imgproc.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Step 12 error on Raspberry Pi 3

Hello! This checklist you've written is super super helpful, thank you for the work. A question for you, if you think you can figure out what's going on - I followed your directions line by line, but when running sudo make -j3, I get the following error:

[ 36%] Linking CXX shared library ../../lib/libopencv_videoio.so
[ 38%] Built target opencv_shape
/usr/bin/ld: /usr/local/lib/libx264.a(common.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libx264.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
modules/videoio/CMakeFiles/opencv_videoio.dir/build.make:227: recipe for target 'lib/libopencv_videoio.so.3.1.0' failed
make[2]: *** [lib/libopencv_videoio.so.3.1.0] Error 1
CMakeFiles/Makefile2:5832: recipe for target 'modules/videoio/CMakeFiles/opencv_videoio.dir/all' failed
make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Now, there's people that say you can get past this issue by just passing WITH_FFMPEG to false during the cmake step just before this - but I'm working with .avi files, so I can't just skip this because I'll need it to actually work. Any thoughts on how to fix this one?

Created menu assisted bash script for opencv3 install

Menu Assisted Opencv 3.2.0 Install https://github.com/pageauc/opencv3-setup

I have created a bash script that implements most of your steps using a whiptail menu. This allows a bit of an assist for users that might need help cutting and pasting commands into a terminal session. I did have lockup problem running make on a RPI3 with -j3 so changed to -j2 and seems to work better although slower. I have not tested this extensively on other RPI models. Raise an github issue if there are problems

I have credited your repo on the Readme.md

Thanks Claude Pageau

Add SWAP size on Raspberry Pi B+

Hello!
In order to maximize success you should consider to insert a small guide on how to add more swap space to the Raspberry. I've been stuck for a lot of time because of the lack of RAM.

If you want I can insert a small guide into the existing file.

Bye,
Mattia.

sudo apt-get install libgtk2.0-dev [SOLVED]

The following error

The following packages have unmet dependencies:
libglib2.0-dev: Depends: libglib2.0-0 (= 2.24.0-0ubuntu4) but 2.24.1-0ubuntu1 is to be installed
E: Broken packages

Can be solved by
sudo aptitude install libglib2.0-dev

Then, it will be asked for downgrade some version

The following actions will resolve these dependencies:
Install the following packages:
libelfg0 [0.8.13-5 (now, oldstable)]
Downgrade the following packages:
libglib2.0-0 [2.48.0-1 bpo8+1 (now) -> 2.42.1-1 (oldstable)]
libglib2.0-bin [2.48.0-1 bpo8+1 (now) -> 2.42.1-1 (oldstable)]
Accept this solution? [Y/n/q/?]

And finally
sudo apt-get install libglib2.0-dev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.