Steps:
- Clone latest openCV source from github:
git clone https://github.com/opencv/opencv.git
- Create a build directory:
mkdir ./opencv/platforms/linux/arm_build
- Run
cmake
inside the build directory with arm compilers specified:CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ cmake -DCMAKE_TOOLCHAIN_FILE=../arm-gnueabi.toolchain.cmake ../../..
- Run
make