在安装ros之前,卸载掉所有opencv,安装ros后发现除了ros自带的opencv3.2,也安装了opencv4,最后解决方法如下
进入/etc/apt/sources.list.d/nvidia-l4t-apt-source.list 文件
注释掉以下两行代码
deb https://repo.download.nvidia.com/jeston/common r32.4 main
deb https://repo.download.nvidia.com/jeston/t194 r32.4 main
然后执行
sudo apt-get update
sudo apt-get install libopencv-dev