ethz-asl / ethzasl_ptam

Modified version of Parallel Tracking and Mapping (PTAM)
http://wiki.ros.org/ethzasl_ptam
235 stars 184 forks source link

Could not find "ptam_com" when catkin_make #109

Closed liu-zg15 closed 5 years ago

liu-zg15 commented 5 years ago

Hi, I am new to PTAM and ROS. I follow the installing process on ROS: http://wiki.ros.org/ethzasl_ptam#Installation cd ~/catkin_ws/src git clone https://github.com/ethz-asl/ethzasl_ptam cd .. catkin_make But error happens when I tried to make it:

Base path: /home/gone/catkin_ws Source space: /home/gone/catkin_ws/src Build space: /home/gone/catkin_ws/build Devel space: /home/gone/catkin_ws/devel Install space: /home/gone/catkin_ws/install #### #### Running command: "make cmake_check_build_system" in "/home/gone/catkin_ws/build" #### -- Using CATKIN_DEVEL_PREFIX: /home/gone/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /home/gone/catkin_ws/devel;/opt/ros/kinetic -- This workspace overlays: /home/gone/catkin_ws/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/gone/catkin_ws/build/test_results -- Found gmock sources under '/usr/src/gmock': gmock will be built -- Found gtest sources under '/usr/src/gmock': gtests will be built -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.7.14 -- BUILD_SHARED_LIBS is on -- Using CATKIN_WHITELIST_PACKAGES: ptam -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 1 packages in topological order: -- ~~ - ptam -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- +++ processing catkin package: 'ptam' -- ==> add_subdirectory(ethzasl_ptam/ptam) CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package): Could not find a package configuration file provided by "ptam_com" with any of the following names: ` ptam_comConfig.cmake` ` ptam_com-config.cmake` Add the installation prefix of "ptam_com" to CMAKE_PREFIX_PATH or set "ptam_com_DIR" to a directory containing one of the above files. If "ptam_com" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): ethzasl_ptam/ptam/CMakeLists.txt:10 (find_package) -- Could not find the required component 'ptam_com'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "ptam_com" with any of the following names: ` ptam_comConfig.cmake` ` ptam_com-config.cmake` Add the installation prefix of "ptam_com" to CMAKE_PREFIX_PATH or set "ptam_com_DIR" to a directory containing one of the above files. If "ptam_com" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): ethzasl_ptam/ptam/CMakeLists.txt:10 (find_package) -- Configuring incomplete, errors occurred! See also "/home/gone/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/gone/catkin_ws/build/CMakeFiles/CMakeError.log". Makefile:318: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed I don't know why this happens and I can't find any issue about this. Can anybody help me?

liu-zg15 commented 5 years ago

Actually, I find some errors are caused by the ROS version. I use the ROS kinectia system and I solve this problem by git clone -b kineticbuild https://github.com/lucasw/ethzasl_ptam.git and redo the catkin_make. Hope this will be helpful!