【未解决】No rule to make target ‘/usr/lib/x86_64-linux-gnu/libGL.so‘

这篇具有很好参考价值的文章主要介绍了【未解决】No rule to make target ‘/usr/lib/x86_64-linux-gnu/libGL.so‘。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

测试ros自带的PCL1.8是否能用,网上找个测试代码,编译阶段报错:

cmake ..

-- Could NOT find ensenso (missing: ENSENSO_LIBRARY ENSENSO_INCLUDE_DIR) 
** WARNING ** io features related to ensenso will be disabled
-- Could NOT find DAVIDSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR) 
** WARNING ** io features related to davidSDK will be disabled
-- Could NOT find DSSDK (missing: _DSSDK_LIBRARIES) 
** WARNING ** io features related to dssdk will be disabled
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
-- 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.

** WARNING ** io features related to libusb-1.0 will be disabled
-- Could NOT find ensenso (missing: ENSENSO_LIBRARY ENSENSO_INCLUDE_DIR) 
** WARNING ** visualization features related to ensenso will be disabled
-- Could NOT find DAVIDSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR) 
** WARNING ** visualization features related to davidSDK will be disabled
-- Could NOT find DSSDK (missing: _DSSDK_LIBRARIES) 
** WARNING ** visualization features related to dssdk will be disabled
-- Could NOT find RSSDK (missing: _RSSDK_LIBRARIES) 
** WARNING ** visualization features related to rssdk will be disabled
-- looking for PCL_COMMON
 

make 

make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libGL.so', needed by 'pcl_test'.  Stop.
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/pcl_test.dir/all' failed
make[1]: *** [CMakeFiles/pcl_test.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2 

报错:

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

解决方法[参考]:

sudo ln -s /usr/bin/vtk6 /usr/bin/vtk

尝试1:

cmake 提示与vtk有关的错误, 于是尝试重装vtk[参考]:

sudo apt-get remove libvtk7 
sudo apt-get remove libvtk6**   //vtk6*

结果,被告知ros和pcl也要跟随者vtk一起被卸载(安装ros时会自带pcl1.8和vtk6.1):

The following packages will be REMOVED:
  libopencv-contrib-dev libopencv-contrib3.2 libopencv-dev libopencv-viz-dev
  libopencv-viz3.2 libopencv3.2-java libopencv3.2-jni libpcl-apps1.8
  libpcl-dev libpcl-io1.8 libpcl-recognition1.8 libpcl-surface1.8
  libpcl-visualization1.8 libvtk6-dev libvtk6-java libvtk6-jni libvtk6-qt-dev
  libvtk6.3 libvtk6.3-qt pcl-tools python-opencv python-vtk6 python3-opencv
  ros-melodic-camera-calibration ros-melodic-compressed-depth-image-transport
  ros-melodic-compressed-image-transport ros-melodic-cv-bridge
  ros-melodic-depth-image-proc ros-melodic-desktop ros-melodic-desktop-full
  ros-melodic-gazebo-plugins ros-melodic-gazebo-ros-pkgs
  ros-melodic-image-geometry ros-melodic-image-pipeline ros-melodic-image-proc
  ros-melodic-image-publisher ros-melodic-image-rotate
  ros-melodic-image-transport-plugins ros-melodic-image-view
  ros-melodic-pcl-conversions ros-melodic-pcl-ros ros-melodic-perception
  ros-melodic-perception-pcl ros-melodic-rqt-common-plugins
  ros-melodic-rqt-image-view ros-melodic-simulators
  ros-melodic-stereo-image-proc ros-melodic-theora-image-transport
  ros-melodic-vision-opencv ros-melodic-viz tcl-vtk6 vtk6
0 upgraded, 0 newly installed, 52 to remove and 20 not upgraded.
After this operation, 331 MB disk space will be freed.
Do you want to continue? [Y/n] n

果断选择n,因为ros卸载后,之前配置的环境白配置了。

尝试2:

通过 [vtk官网]查看vtk如何卸载,在官网的资源-入门找到[vtk使用手册],发现vtk要求OpenGL版本最低为3.2

【未解决】No rule to make target ‘/usr/lib/x86_64-linux-gnu/libGL.so‘,windows问题解决,linux,运维,服务器

查看自己的OpenGL版本:

glxinfo | grep 'OpenGL version'

版本为:3.1

【未解决】No rule to make target ‘/usr/lib/x86_64-linux-gnu/libGL.so‘,windows问题解决,linux,运维,服务器文章来源地址https://www.toymoban.com/news/detail-520932.html

到了这里,关于【未解决】No rule to make target ‘/usr/lib/x86_64-linux-gnu/libGL.so‘的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包