cpostbitbuckets / opencv-cross-compile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

debian vagrant box to cross compile opencv

This was inspired by:

Cross Compile opencv to raspberry pi

Optimizing opencv on the raspberry pi

This project is a simple vagrant/ansible project to

  • bring up a debian VM
  • install opencv required dev libraries
  • download opencv binaries

Bring up the VM

Bring up the vagrant box. This will create a new debian/stretch VM, install all the arm development libraries on it and compile/install/package opencv

vagrant up

Copy the dist

Once the vagrant build is complete, copy the ~/opencv-build/dist folder off the vagrant vm. You will probably have to add vagrant ssh-config to your ~/.ssh/config file

vagrant ssh-config >> ~/.ssh/config
mkdir -p dist
scp vagrant@debian:/home/vagrant/opencv-build/dist/* dist/

Install on the pi

Follow the instructions to install the libraries on the pi: Cross Compile opencv to raspberry pi

About


Languages

Language:Shell 100.0%