slambook icon indicating copy to clipboard operation
slambook copied to clipboard

ch5编译问题

Open zhouweijlu opened this issue 7 years ago • 9 comments

这是cmake之后的 Boost version: 1.58.0 -- Found the following Boost libraries: -- system -- filesystem -- thread -- date_time -- iostreams -- serialization -- chrono -- atomic -- regex -- Checking for module 'libopenni2' -- No package 'libopenni2' found -- Could NOT find OpenNI2 (missing: OPENNI2_LIBRARY OPENNI2_INCLUDE_DIRS) ** WARNING ** io features related to openni2 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.2/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.2/VTKTargets.cmake" but not all the files it references.

-- looking for PCL_COMPONENT -- Could NOT find PCL_COMPONENT (missing: PCL_COMPONENT_LIBRARY PCL_COMPONENT_INCLUDE_DIR) -- looking for PCL_COMMON -- looking for PCL_OCTREE -- looking for PCL_IO -- Configuring done -- Generating done -- Build files have been written to: /home/wolverine/exercise/ch5/joinMap 编译是可以通过的,可执行文件也可以运行,但是会报错, Loading map.pcd ERROR: In /build/vtk6-dmAaMa/vtk6-6.2.0+dfsg1/Rendering/OpenGL/vtkOpenGLTexture.cxx, line 200 vtkOpenGLTexture (0x1e644e0): No scalar values found for texture input! 有遇到类似问题的吗?

zhouweijlu avatar Nov 27 '17 13:11 zhouweijlu

同求,ERROR: In /build/vtk6-YpT4yb/vtk6-6.2.0+dfsg1/Rendering/OpenGL/vtkOpenGLTexture.cxx, line 200

zwlovefish avatar Feb 28 '18 09:02 zwlovefish

更新下VTK版本呢?

dongmingsun avatar Apr 12 '18 18:04 dongmingsun

Have you addressed this problem ,xiongdei?

szuer2017 avatar Apr 23 '18 02:04 szuer2017

和你的一模一样,解决没?

ChurchKing avatar Sep 08 '18 01:09 ChurchKing

和你的一模一样,解决没?

我已经忘了问题,但是愿意跟你分享一下思路; 原博客里面的问题是: Could NOT find PCL_COMPONENT (missing: PCL_COMPONENT_LIBRARY PCL_COMPONENT_INCLUDE_DIR) 建议重新安装一下PCL_COMPONENT ,再试一下编译。

szuer2017 avatar Sep 15 '18 06:09 szuer2017

所以最后解决办法是什么?

calmelo avatar Jul 14 '20 01:07 calmelo

change COMPONENT to COMPONENTS from the CMake file. add the s.

zoumson avatar Jun 11 '21 07:06 zoumson

modify find pcl in CMakeLists.txt

# find_package( PCL REQUIRED COMPONENT common io )
find_package(PCL REQUIRED)

It will report some warnings. Just ignore it and build.


My Envs: Ubuntu18.04 vscode

Install pcl with code:

sudo apt-get install libpcl-dev pcl-tools

MolianWH avatar Oct 26 '21 13:10 MolianWH

我使用ubuntu18.04编译pcl点云库,也遇到这个问题,可以尝试这样解决:

*书本中原始安装pcl库的命令: sudo apt-get install libpcl-all *替换为: sudo apt-get install libpcl-dev pcl-tools

damagebro avatar Oct 10 '22 09:10 damagebro