laboshinl / loam_velodyne

Laser Odometry and Mapping (Loam) is a realtime method for state estimation and mapping using a 3D lidar.
http://wiki.ros.org/loam_velodyne
Other
1.69k stars 956 forks source link

loam error #48

Open Zephyr2627 opened 6 years ago

Zephyr2627 commented 6 years ago

i am working on loam using this tutorial https://github.com/daobilige-su/loam_velodyne i successfully downloaded the loam package but when i compile the package it gives me cmake error. I am working with VLP-16 and Kinetic ROS. Here is the Error log.

ubuntu@ubiquityrobot:~$ cd /home/ubuntu/catkin_ws ubuntu@ubiquityrobot:~/catkin_ws$ catkin_make Base path: /home/ubuntu/catkin_ws Source space: /home/ubuntu/catkin_ws/src Build space: /home/ubuntu/catkin_ws/build Devel space: /home/ubuntu/catkin_ws/devel Install space: /home/ubuntu/catkin_ws/install

Running command: "make cmake_check_build_system" in "/home/ubuntu/catkin_ws/build"

-- Using CATKIN_DEVEL_PREFIX: /home/ubuntu/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /home/ubuntu/catkin_workspace/devel;/opt/ros/kinetic -- This workspace overlays: /home/ubuntu/catkin_workspace/devel;/opt/ros/kinetic -- Using PYTHON_EXECUTABLE: /usr/bin/python -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/ubuntu/catkin_ws/build/test_results -- Found gtest sources under '/usr/src/gtest': gtests will be built -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.7.8 -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~ -- ~~ traversing 7 packages in topological order: -- ~~ - fiducial_follow -- ~~ - velodyne (metapackage) -- ~~ - velodyne_msgs -- ~~ - loam_velodyne -- ~~ - velodyne_driver -- ~~ - velodyne_laserscan -- ~~ - velodyne_pointcloud -- ~~~~~~~~~~~~~ -- +++ processing catkin package: 'fiducial_follow' -- ==> add_subdirectory(demos/fiducial_follow) -- +++ processing catkin metapackage: 'velodyne' -- ==> add_subdirectory(velodyne/velodyne) -- +++ processing catkin package: 'velodyne_msgs' -- ==> add_subdirectory(velodyne/velodyne_msgs) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- velodyne_msgs: 2 messages, 0 services -- +++ processing catkin package: 'loam_velodyne' -- ==> add_subdirectory(loam_velodyne) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- 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/arm-linux-gnueabihf/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:

-- Checking for module 'libopenni2' -- No package 'libopenni2' found -- Could NOT find OpenNI2 (missing: OPENNI2_LIBRARY OPENNI2_INCLUDE_DIRS) WARNING visualization features related to openni2 will be disabled -- looking for PCL_COMMON -- looking for PCL_OCTREE -- looking for PCL_IO -- looking for PCL_KDTREE -- looking for PCL_SEARCH -- looking for PCL_SAMPLE_CONSENSUS -- looking for PCL_FILTERS -- looking for PCL_FEATURES -- looking for PCL_KEYPOINTS -- looking for PCL_GEOMETRY -- looking for PCL_SEGMENTATION -- looking for PCL_VISUALIZATION -- looking for PCL_OUTOFCORE -- looking for PCL_SURFACE -- looking for PCL_TRACKING -- looking for PCL_REGISTRATION -- looking for PCL_RECOGNITION -- looking for PCL_APPS -- Could NOT find PCL_APPS (missing: PCL_APPS_LIBRARY) -- looking for PCL_PEOPLE CMake Error: File /home/ubuntu/catkin_ws/src/loam_velodyne/tests/loam.test.in does not exist. CMake Error at loam_velodyne/CMakeLists.txt:51 (configure_file): configure_file Problem configuring file

-- +++ processing catkin package: 'velodyne_driver' -- ==> add_subdirectory(velodyne/velodyne_driver) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- Boost version: 1.58.0 -- Found the following Boost libraries: -- thread -- chrono -- system -- date_time -- atomic -- +++ processing catkin package: 'velodyne_laserscan' -- ==> add_subdirectory(velodyne/velodyne_laserscan) -- +++ processing catkin package: 'velodyne_pointcloud' -- ==> add_subdirectory(velodyne/velodyne_pointcloud) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- Boost version: 1.58.0 -- Found the following Boost libraries: -- signals -- Configuring incomplete, errors occurred! See also "/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeError.log". Makefile:304: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed ubuntu@ubiquityrobot:~/catkin_ws$

StefanGlaser commented 6 years ago

Dear @Zephyr2627,
you are asking the same question about an other repository the second time. I wonder why you don't ask your question in the corresponding project...

Anyhow, reading though your cmake output I can see:

Taking a quick look into the referenced project, there really is no ".../tests/loam.test.in" file. So, either use this project, delete the testing part within the main CMakeLists.txt of your loam_velodyne project, or add the test case again.