Pre-Conditions:
- DrivePX2 hardware: AutoCruise or AutoChauffeur.
- The latest Nvidia Drive Linux SDK is installed, SDK can be downloaded from : https://developer.nvidia.com/nvidia-drive-downloads
- Git is installed , otherwise run : sudo apt-get install git
- sudo apt-get install git
- git config --global user.email “your email”
- git config --global user.name “your name”
The instructions to build OpenCV on DrivePX2 Linux (V4L) platform:
- Review the instructions at OpenCV: Building OpenCV for Tegra with CUDA
- Read following notes and apply them accordingly:
- cherry pick command for cdb9c contains a white space error, change to git cherry-pick cdb9c
- SDK does not contain default FFMPEG and V4L2, install these packages by :
- sudo apt-get install libx264-dev libx265-dev libvpx-dev ffmpeg
- sudo apt-get install v4l-utils libv4l-dev
- -DCUDA_ARCH_BIN=6.2 // AutoCruise with iGPU
- -DCUDA_ARCH_BIN='6.1 6.2' // AutoChauffeur with both iGPU and dGPU
- Follow V4L instructions from OpenCV: Building OpenCV for Tegra with CUDA to download and build OpenCV .
- Both OpenCV 3.1.0 and 2.4.X are supported.