Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.73 KB

README.md

File metadata and controls

49 lines (38 loc) · 1.73 KB

Build OpenCV package for Raspbian

Requirements

  1. Raspbian zipped image. You can download it from here
  2. OpenCV zipped sources from github
  3. OpenCV modules cloned from github
  4. run python setup.py with root. This need for fdisk and mount

Before run setup.py

Copy downloaded opencv zipped sources and cloned additional modules into opencv/. Raspbian image (zipped or unzipped) must exist into work directory where setup.py installed.

Working directory must have this hierarcy:

  • raspbian.zip
  • opencv/
    • 3.1.0.zip
    • opencv_contrib/
  • README.md
  • setup.py

Run compiling & building

Login with root and simply run:

# python setup.py

❗ Compiling is a long process. Please be patient.

Done

Compiled and builded opencv package will be stored in the working directory. Find the .deb file.

List of references

  1. https://wiki.debian.org/QemuUserEmulation
  2. https://wiki.debian.org/RaspberryPi/qemu-user-static
  3. http://neophob.com/2014/10/run-arm-binaries-in-your-docker-container-using-boot2docker/
  4. https://github.com/dweinstein/dockerfile-qemu-arm-chroot
  5. http://blog.jenrom.com/2014/09/14/%D1%83%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%BA%D0%B0-opencv-%D0%BD%D0%B0-linux/
  6. http://answers.opencv.org/questions/
  7. http://elinux.org/RPi_Software
  8. CrossCompiling: