RobustFieldAutonomyLab / LeGO-LOAM

LeGO-LOAM: Lightweight and Ground-Optimized Lidar Odometry and Mapping on Variable Terrain
BSD 3-Clause "New" or "Revised" License
2.37k stars 1.11k forks source link

The imported target "vtk**" references the file "/usr/bin/***" but this file does not exist。Ubuntu 20 #245

Open SYLJSTK opened 2 years ago

SYLJSTK commented 2 years ago

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 imported target "vtkRenderingPythonTkWidgets" references the file "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so" but this file does not exist. Possible reasons include:

-- The imported target "vtk" references the file "/usr/bin/vtk" but this file does not exist. Possible reasons include:

-- The imported target "pvtk" references the file "/usr/bin/pvtk" but this file does not exist. Possible reasons include:

stale[bot] commented 2 years ago

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.

yongchao987 commented 2 years ago

I've had the same problem recently.

SYLJSTK commented 2 years ago

I can not solve the prolem. You can try the Ubuntu 18

L-Reichardt commented 2 years ago

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.

yinhaosen commented 2 years ago

@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.

shrinivas96 commented 1 year ago

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 :)

Vicktoria13 commented 10 months ago

did someone manage to resolve this problem ? I also have this pvtk error and others...

anath93 commented 9 months ago

@Vicktoria13 Did you ever solve this ?

Did anyone resolve this issue ?

image

hitbuyi commented 5 months ago

I have the same problem


-- 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.
anath93 commented 5 months ago

@hitbuyi I resolved this by building the entire kernel again, in my case I was using custom real time kernel. But you can re-image your controller which might be easy.