您当前的位置: 首页 >  Python

RuiH.AI

暂无认证

  • 5浏览

    0关注

    268博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Debug:libvtkRenderingPythonTkWidgets.so does not exist

RuiH.AI 发布时间:2022-05-13 10:12:37 ,浏览量:5

Debug:libvtkRenderingPythonTkWidgets.so does not exist

问题描述 ubnuntu18用apt装完VTK后,其它工程中带了VTK库的,编译时会报上面这个警告Warning: libvtkRenderingPythonTkWidgets.so does not exist,或者是像下面这个长警告:

The imported target "vtkRenderingPythonTkWidgets" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtk" references the file
   "/usr/bin/vtk"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.

问题解决 安装python-vtk6后,建立一个软连接:

sudo ln -s /usr/lib/python2.7/dist-packages/vtk/libvtkRenderingPythonTkWidgets.x86_64-linux-gnu.so /usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so

再次编译相关工程,就不会再报上面这个警告了。

关注
打赏
1658390299
查看更多评论
立即登录/注册

微信扫码登录

0.4109s