The imported target "vtk**" references the file "/usr/bin/***" but this file does not exist。Ubuntu 20
When I compile the program,I tried to add the soft connection of VTK, but I just deleted the VTK item. The others can't be found in my system
The imported target "vtkParseOGLExt" references the file "/usr/bin/vtkParseOGLExt-7.1" 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-7.1/VTKTargets.cmake" but not all the files it references.
-- 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-7.1/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-7.1/VTKTargets.cmake" but not all the files it references.
-- The imported target "pvtk" references the file "/usr/bin/pvtk" 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-7.1/VTKTargets.cmake" but not all the files it references.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I've had the same problem recently.
I can not solve the prolem. You can try the Ubuntu 18
Issue (possible bug) with how VTK is named on Ubuntu 20. Delete your /devel /build folders and navigate to /usr/bin/vtk. Run the following command to copy the vtk7 file with a new name:
sudo cp ./vtk7 ./vtk
Then compile:
catkin_make -j1
Should work now. If there are any other issues with Ubuntu 20, refer to this Issue.
@L-Reichardt 's solution works. The issue comes from different naming of vtk on ubuntu. It should be /vtk but /vtk7 (with the version) on the machine. You could also try creating a link like sudo ln command.
I have the same set of warnings as @SYLJSTK, but for a different library (PCL). Creating a soft link to /usr/bin/vtk7 as /usr/bin/vtk removes that one warning. There are other references to files such as the vtkParseOGLExt-7.1 or pvtk which do not even exist in my /usr/bin/. I assume it should be as simple as installing some packages which will then have these binaries present in /usr/bin/. But I am not sure exactly what should I install? A simple apt-cache search does not show any packages named pvtk or vtkParseOGLExt-7.1.
Any help regarding this would be very appreciated. Many thanks in advance :)
did someone manage to resolve this problem ? I also have this pvtk error and others...
@Vicktoria13 Did you ever solve this ?
Did anyone resolve this issue ?