Tello_ROS_ORBSLAM icon indicating copy to clipboard operation
Tello_ROS_ORBSLAM copied to clipboard

catkin build errors re orb slam

Open erinline opened this issue 2 years ago • 2 comments

Following the install instructions, everything worked until catkin build. I am on Ubuntu 18/ROS melodic, and I have tried CMakeLists, CMakeLists_changed, CMakeLists_changed2, and CMakeLists_melodic. They all give the same error:

Errors << orb_slam2_ros:make /home/erinline/src/tello_orb_test/Tello_ROS_ORBSLAM/ROS/tello_catkin_ws/logs/orb_slam2_ros/build.make.000.log make[2]: *** No rule to make target '/home/erinline/src/tello_orb_test/Tello_ROS_ORBSLAM/ROS/tello_catkin_ws/src/orb_slam_2_ros/orb_slam2/lib/liborb_slam2_ros.so', needed by '/home/erinline/src/tello_orb_test/Tello_ROS_ORBSLAM/ROS/tello_catkin_ws/devel/.private/orb_slam2_ros/lib/orb_slam2_ros/orb_slam2_ros_rgbd'. Stop. make[2]: *** Waiting for unfinished jobs.... In file included from /home/erinline/src/tello_orb_test/Tello_ROS_ORBSLAM/ROS/tello_catkin_ws/src/orb_slam_2_ros/ros/src/Node.cc:1: /home/erinline/src/tello_orb_test/Tello_ROS_ORBSLAM/ROS/tello_catkin_ws/src/orb_slam_2_ros/ros/include/Node.h:35:10: fatal error: orb_slam2_ros/SaveMap.h: No such file or directory #include "orb_slam2_ros/SaveMap.h"

There is also this error when I scroll down: /home/erinline/src/tello_orb_test/Pangolin/components/pango_display/include/pangolin/display/widgets.h:31:10: fatal error: pangolin/var/var.h: No such file or directory #include <pangolin/var/var.h>

As I said, I followed all the instructions and downloaded and built Pangolin. Please advise.

erinline avatar May 06 '22 01:05 erinline

Just did a catkin clean and rebuild, still with CMakeLists_melodic.txt, and now I get different errors:

Errors     << orb_slam2_ros:cmake /home/erinline/src/tello_orb_test/Tello_ROS_ORBSLAM/ROS/tello_catkin_ws/logs/orb_slam2_ros/build.cmake.000.log
CMake Warning (dev) at CMakeLists.txt:162 (add_executable):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  Target "orb_slam2_ros_rgbd" links to target "Eigen3::Eigen" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:162 (add_executable):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  Target "orb_slam2_ros_rgbd" links to target "Eigen3::Eigen" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:151 (add_executable):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  Target "orb_slam2_ros_stereo" links to target "Eigen3::Eigen" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:151 (add_executable):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  Target "orb_slam2_ros_stereo" links to target "Eigen3::Eigen" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:104 (add_library):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  Target "orb_slam2_ros" links to target "Eigen3::Eigen" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:104 (add_library):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  Target "orb_slam2_ros" links to target "Eigen3::Eigen" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:140 (add_executable):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  Target "orb_slam2_ros_mono" links to target "Eigen3::Eigen" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:140 (add_executable):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  Target "orb_slam2_ros_mono" links to target "Eigen3::Eigen" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error in CMakeLists.txt:
  Imported target "pango_display" includes non-existent path

    "/home/erinline/src/tello_orb_test/Pangolin/build/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in CMakeLists.txt:
  Imported target "pango_display" includes non-existent path

    "/home/erinline/src/tello_orb_test/Pangolin/build/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in CMakeLists.txt:
  Imported target "pango_display" includes non-existent path

    "/home/erinline/src/tello_orb_test/Pangolin/build/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in CMakeLists.txt:
  Imported target "pango_display" includes non-existent path

    "/home/erinline/src/tello_orb_test/Pangolin/build/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in CMakeLists.txt:
  Imported target "pango_display" includes non-existent path

    "/home/erinline/src/tello_orb_test/Pangolin/build/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in CMakeLists.txt:
  Imported target "pango_display" includes non-existent path

    "/home/erinline/src/tello_orb_test/Pangolin/build/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in CMakeLists.txt:
  Imported target "pango_display" includes non-existent path

    "/home/erinline/src/tello_orb_test/Pangolin/build/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in CMakeLists.txt:
  Imported target "pango_display" includes non-existent path

    "/home/erinline/src/tello_orb_test/Pangolin/build/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Generate step failed.  Build files cannot be regenerated correctly.
cd /home/erinline/src/tello_orb_test/Tello_ROS_ORBSLAM/ROS/tello_catkin_ws/build/orb_slam2_ros; catkin build --get-env orb_slam2_ros | catkin env -si  /usr/bin/cmake /home/erinline/src/tello_orb_test/Tello_ROS_ORBSLAM/ROS/tello_catkin_ws/src/orb_slam_2_ros --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/erinline/src/tello_orb_test/Tello_ROS_ORBSLAM/ROS/tello_catkin_ws/devel/.private/orb_slam2_ros -DCMAKE_INSTALL_PREFIX=/home/erinline/src/tello_orb_test/Tello_ROS_ORBSLAM/ROS/tello_catkin_ws/install; cd -

erinline avatar May 06 '22 03:05 erinline

Much of the code was made to work in Python 2 so you have to do some manual tweaks. I've created a PR with updates. It works with orb_slam2 but you may hit snags on ccslam

kielerrr avatar May 17 '22 02:05 kielerrr