OpenCV L4T 21 README.txt INSTALLATION INSTRUCTIONS ------------------------------------------------------------------------------- Install OpenCV with the following steps: (1) CUDA Installation (2) OpenCV4Tegra Installation The following sections contain detailed instructions for the installation of these packages. These instructions use the following variables: o specifies the OS version (e.g., ubuntu1404). o specifies the architecture (e.g., amd64. armhf). o specifies the package release version (e.g., 2.4.8.3). o specifies the package release version (e.g., 6.5). o specifies the supported device. (1) CUDA Installation The NVIDIA invented CUDA(TM) technology provides a parallel computing platform and programming model that enables dramatic increases in computing performance by harnessing the power of the graphics processing unit (GPU). Follow the direct target installation instructions based on your platform: o If you are using a host Ubuntu system as a standalone development platform, go to subsection (1-a). o If you are using Jetson Pro or Jetson TK1 as a cross development platform, go to subsection (1-b). o If you are using Jetson Pro Vibrante, go to subsection (1-c). o If you are using Jetson TK1 L4T platforms, go to subsection (1-d). (1-a) To install CUDA on Ubuntu 12.04 or 14.04 Desktop system for standalone development Download the 6.5 CUDA Debian package from https://developer.nvidia.com/linux-tegra-rel-21 To install the package, execute the following commands: $ sudo dpkg -i cuda-repo-__amd64.deb $ sudo apt-get update $ sudo apt-get install cuda CUDA packages are installed to the following location on your host system: $ /usr/local/cuda- (1-b) To install CUDA for cross-build installation on Ubuntu 12.04 or 14.04 Host system Download the CUDA version defined in the corresponding Platforms section for the target operating system from https://developer.nvidia.com/linux-tegra-rel-21. The armhf foreign architecture must be enabled in order to install the cross-armhf toolkit. To enable armhf as a foreign architecture, the following commands must be executed: On Ubuntu 12.04 $ sudo sh -c \ 'echo "foreign-architecture armhf" >> /etc/dpkg/dpkg.cfg.d/multiarch' On Ubuntu 14.04 $ sudo dpkg --add-architecture armhf To complete the installation, execute the following: $ sudo dpkg -i cuda-repo-__amd64.deb $ sudo apt-get update $ sudo apt-get install cuda cuda-cross-armhf The cross-build installation of CUDA includes the standalone development files, which are installed under the same location on your host system: $ /usr/local/cuda- (1-c) To install CUDA on Jetson TK1 - L4T System Execute the following commands: $ sudo dpkg -i cuda-repo-__.deb $ sudo apt-get update $ sudo apt-get install cuda-toolkit-6-5 (2) OpenCV4Tegra Installation (2-a) On Ubuntu 12.04 or 14.04 Desktop Systems On Ubuntu 12.04 $ sudo dpkg -i libopencv4tegra-repo-ubuntu1204_2.4.10.1_amd64.deb On Ubuntu 14.04 $ sudo dpkg -i libopencv4tegra-repo-ubuntu1404_2.4.10.1_amd64.deb To complete the installation: $ sudo apt-get update $ sudo apt-get install libopencv4tegra libopencv4tegra-dev (2-b)To install OpenCV4Tegra on Jetson TK1 - L4T System $ sudo dpkg -i libopencv4tegra-repo_l4t-r21_2.4.10.1_armhf.deb $ sudo apt-get update $ sudo apt-get install libopencv4tegra libopencv4tegra-dev UNINSTALL INSTRUCTIONS -------------------------------------------------------------------------------- This section describes the uninstallation steps for OpenCV4Tegra and CUDA. (1) Uninstall OpenCV4Tegra (2) Uninstall CUDA (1) Uninstall OpenCV4Tegra Uninstall OpenCV4Tegra packages, purge local repositories, and update the apt cache using the following commands: $ sudo apt-get remove libopencv4tegra libopencv4tegra-dev $ sudo apt-get purge libopencv4tegra-repo $ sudo apt-get update (2) Uninstall CUDA Uninstall CUDA packages, purge local repositories, and update the apt cache using the following commands: $ sudo apt-get remove cuda cuda-cross-armhf $ sudo apt-get purge cuda $ sudo apt-get update --------------------------------------------------------------------------------