I’m trying to test some code for my Jetson (which I don’t have access to right now) on my desktop, which is running Ubuntu 14.04.5. I installed the CUDA 6.5 toolkit and OpenCV4Tegra, both the “for Ubuntu 14.04” versions, from https://developer.nvidia.com/linux-tegra-rel-21. I dpkg’d and installed both (CUDA then CV), with
sudo apt install cuda-toolkit-6-5
sudo usermod -a -G video $USER
echo "# Add CUDA bin & library paths:" >> ~/.bashrc
echo "export PATH=/usr/local/cuda/bin:$PATH" >> ~/.bashrc
echo "export LD_LIBRARY_PATH=/usr/local/cuda/lib:$LD_LIBRARY_PATH" >> ~/.bashrc
source ~/.bashrc
for CUDA and
sudo apt-get install libopencv4tegra libopencv4tegra-dev
for openCV. The libraries seem to be installed correctly because my code builds, but when I try to run it, I get
OpenCV Error: Gpu API call (CUDA driver version is insufficient for CUDA runtime version) in mallocPitch, file /hdd/buildbot/slaves/slave_ubuntu14/54-O4T-Ubuntu14/opencv/modules/dynamicuda/include/opencv2/dynamicuda/dynamicuda.hpp, line 1134
terminate called after throwing an instance of 'cv::Exception'
what(): /hdd/buildbot/slaves/slave_ubuntu14/54-O4T-Ubuntu14/opencv/modules/dynamicuda/include/opencv2/dynamicuda/dynamicuda.hpp:1134: error: (-217) CUDA driver version is insufficient for CUDA runtime version in function mallocPitch
I tried to fix this by installing cuda-drivers, but it has nvidia-343 as an unmet dependency, which in turn has xorg-video-abi-15 as an unmet dependency, which in turn has libcheese-gtk23 and libcheese7 as unmet dependencies, despite the fact that apt tells me that both are installed with the most recent version. My GPU is a GTX 960, which is CUDA compatible. nvcc is release 6.5, V6.5.16.
Sorry if this is the wrong place for this.