zoukankan      html  css  js  c++  java
  • Compiling OpenCV: VTK Not Found on Ubuntu 16.04 LTS

    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

  • 相关阅读:
    SQL第一讲
    CSS3补充内容
    EXCEL数据导入SQL表的方法
    jq第四讲+实例
    jq第三讲
    jq第二讲
    安卓、苹果日历同步
    安卓、苹果手机备忘录同步
    服务器、客户端双认证
    今天我的博客正式开张了!
  • 原文地址:https://www.cnblogs.com/jins-note/p/10933421.html
Copyright © 2011-2022 走看看