Installing CUDA-toolkit and VisionWorks on Jetson TX2, Xavier and Nano
|
Introduction
In this wiki you will find the steps required to install Cuda-toolkit and VisionWorks in the Jetson TX2/Xavier/Nano, sometimes we do not want to install the complete JetPack installation and we reduce it removing some third-party packages. If you want to add Cuda and VisionWorks after flashing the Jetson TX2/Xavier/Nano this is a good option to install them.
Installing dependencies
In order to avoid issues installing Cuda-toolkit, please install the next packages in the Jetson TX2/Xavier/Nano:
sudo apt install libtbb2 libtbb-dev
Installing CUDA
Before starting to install cuda please cp the cuda-repo*.deb file located in the Jetpack downloads directory to the Jetson TX2/Xavier/Nano. Make sure to run the next commands on the Jetson TX2/Xavier/Nano.
sudo dpkg -i cuda-repo-<distro>_<version>_<architecture>.deb sudo apt-get update sudo apt-key add /var/cuda-repo-l4t-<cuda_version>-local/7fa2af80.pub sudo apt-get install cuda-toolkit-<cuda_version> echo "# Add 32-bit CUDA library & binary paths:" >> ~/.bashrc echo "export PATH=/usr/local/cuda-<cuda_version>/bin:$PATH" >> ~/.bashrc echo "export LD_LIBRARY_PATH=/usr/local/cuda-<cuda_version>/lib:$LD_LIBRARY_PATH" >> ~/.bashrc source ~/.bashrc # In order to test run: cd /usr/local/cuda/samples/1_Utilities/deviceQuery/ sudo make
Installing VisionWorks
Before starting to install Cuda-toolkit please copy the libvisionworks-repo*.deb file located in the Jetpack downloads directory to the Jetson TX2/Xavier/Nano. Make sure to run the next commands on the Jetson TX2/Xavier/Nano.
sudo add-apt-repository universe; sudo dpkg -i libvisionworks-repo_<visworks_ver>_<architecture>.deb sudo apt-get update sudo apt-get install libvisionworks libvisionworks-dev libvisionworks-samples
Compile VisionWorks examples
cd /usr/share/visionworks/sources ./install-samples.sh ~/ cd ~/VisionWorks-1.6-Samples/ make
For direct inquiries, please refer to the contact information available on our Contact page. Alternatively, you may complete and submit the form provided at the same link. We will respond to your request at our earliest opportunity.
Links to RidgeRun Resources and RidgeRun Artificial Intelligence Solutions can be found in the footer below.