首页 > 系统服务 > 详细

Compiling OpenCV: VTK Not Found on Ubuntu 16.04 LTS

时间:2019-05-27 21:51:47      阅读:766      评论:0      收藏:0      [点我收藏+]

 

When installing OpenCV:

/usr/bin/vtk not found

libvtkRenderingPythonTkWidgets.so not found
/usr/bin/vtk not found

libvtkRenderingPythonTkWidgets.so not found

Do:

sudo apt install libvtk6-dev python-vtk6

Then:

sudo update-alternatives --install /usr/bin/vtk vtk /usr/bin/vtk6 10
sudo ln -s /usr/lib/python2.7/dist-packages/vtk/libvtkRenderingPythonTkWidgets.x86_64-linux-gnu.so /usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so

 

The file /usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so is also not found but both of these appear to be vtk6-related bugs. The above fixes the vtk dependency but the libvtkRenderingPythonTkWidgets.so only seems to exist in /usr/lib/python2.7/dist-packages/vtk. Creating a symlink with the following does the trick for this one~

 

 

 

参考:

https://github.com/autowarefoundation/autoware/issues/795

Compiling OpenCV: VTK Not Found on Ubuntu 16.04 LTS

原文:https://www.cnblogs.com/jins-note/p/10933421.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!