Rtabmap_ros won't compile on laptop

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Rtabmap_ros won't compile on laptop

Rodolfo
This post was updated on .
Laptop is Ryzen7 with 16G RAM and Jammy and Humble

/rtabmap_ws$ git clone https://github.com/introlab/rtabmap.git src/rtabmap
Cloning into 'src/rtabmap'...
remote: Enumerating objects: 36584, done.
remote: Counting objects: 100% (781/781), done.
remote: Compressing objects: 100% (420/420), done.
remote: Total 36584 (delta 386), reused 677 (delta 316), pack-reused 35803
Receiving objects: 100% (36584/36584), 62.53 MiB | 29.12 MiB/s, done.
Resolving deltas: 100% (25119/25119), done.

russ@russ-HP-Pavilion-Laptop-15-eh0xxx:~/rtabmap_ws$ git clone --branch ros2 https://github.com/introlab/rtabmap_ros.git src/rtabmap_ros
Cloning into 'src/rtabmap_ros'...
remote: Enumerating objects: 32659, done.
remote: Counting objects: 100% (1652/1652), done.
remote: Compressing objects: 100% (544/544), done.
remote: Total 32659 (delta 1125), reused 1519 (delta 1040), pack-reused 31007
Receiving objects: 100% (32659/32659), 54.48 MiB | 32.97 MiB/s, done.
Resolving deltas: 100% (23149/23149), done.

russ@russ-HP-Pavilion-Laptop-15-eh0xxx:~/rtabmap_ws$ rosdep update && rosdep install --from-paths src --ignore-src -r -y
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
Skip end-of-life distro "ardent"
Skip end-of-life distro "bouncy"
Skip end-of-life distro "crystal"
Skip end-of-life distro "dashing"
Skip end-of-life distro "eloquent"
Add distro "foxy"
Skip end-of-life distro "galactic"
Skip end-of-life distro "groovy"
Add distro "humble"
Skip end-of-life distro "hydro"
Skip end-of-life distro "indigo"
Skip end-of-life distro "jade"
Skip end-of-life distro "kinetic"
Skip end-of-life distro "lunar"
Add distro "melodic"
Add distro "noetic"
Add distro "rolling"
updated cache in /home/russ/.ros/rosdep/sources.cache
#All required rosdeps installed successfully

russ@russ-HP-Pavilion-Laptop-15-eh0xxx:~/rtabmap_ws$ export MAKEFLAGS="-j6"
russ@russ-HP-Pavilion-Laptop-15-eh0xxx:~/rtabmap_ws$ colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
Starting >>> rtabmap
Starting >>> rtabmap_msgs
Starting >>> rtabmap_python
--- stderr: rtabmap_python                                  
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and will not be supported in a future release
  warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
  warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
  warnings.warn(
---
Finished <<< rtabmap_python [0.99s]
[Processing: rtabmap, rtabmap_msgs]                              
--- stderr: rtabmap_msgs                                          
CMake Warning:
  Manually-specified variables were not used by the project:

    CATKIN_INSTALL_INTO_PREFIX_ROOT
    CATKIN_SYMLINK_INSTALL


---
Finished <<< rtabmap_msgs [47.5s]
[Processing: rtabmap]                                        
[Processing: rtabmap]                                        
[Processing: rtabmap]                                        
[Processing: rtabmap]                                        
[Processing: rtabmap]                                        
[Processing: rtabmap]                                        
[Processing: rtabmap]                                        
--- stderr: rtabmap                                          
In file included from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/MainWindow.cpp:30:
/home/russ/rtabmap_ws/build/rtabmap/guilib/src/ui_mainWindow.h: In member function ‘void Ui_mainWindow::setupUi(QMainWindow*)’:
/home/russ/rtabmap_ws/build/rtabmap/guilib/src/ui_mainWindow.h:641:56: warning: ‘QDockWidget::AllDockWidgetFeatures’ is deprecated [-Wdeprecated-declarations]
  641 |         dockWidget_posterior->setFeatures(QDockWidget::AllDockWidgetFeatures);
      |                                                        ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDockWidget:1,
                 from /home/russ/rtabmap_ws/build/rtabmap/guilib/src/ui_mainWindow.h:16,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/MainWindow.cpp:30:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdockwidget.h:82:9: note: declared here
   82 |         AllDockWidgetFeatures Q_DECL_ENUMERATOR_DEPRECATED =
      |         ^~~~~~~~~~~~~~~~~~~~~
In file included from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/MainWindow.cpp:30:
/home/russ/rtabmap_ws/build/rtabmap/guilib/src/ui_mainWindow.h:641:56: warning: ‘QDockWidget::AllDockWidgetFeatures’ is deprecated [-Wdeprecated-declarations]
  641 |         dockWidget_posterior->setFeatures(QDockWidget::AllDockWidgetFeatures);
      |                                                        ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDockWidget:1,
                 from /home/russ/rtabmap_ws/build/rtabmap/guilib/src/ui_mainWindow.h:16,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/MainWindow.cpp:30:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdockwidget.h:82:9: note: declared here
   82 |         AllDockWidgetFeatures Q_DECL_ENUMERATOR_DEPRECATED =
      |         ^~~~~~~~~~~~~~~~~~~~~
/home/russ/rtabmap_ws/src/rtabmap/guilib/src/MainWindow.cpp: In member function ‘void rtabmap::MainWindow::drawKeypoints(const std::multimap<int, cv::KeyPoint>&, const std::multimap<int, cv::KeyPoint>&)’:
/home/russ/rtabmap_ws/src/rtabmap/guilib/src/MainWindow.cpp:4977:39: warning: ‘static QSet<T> QSet<T>::fromList(const QList<T>&) [with T = int]’ is deprecated: Use QSet<T>(list.begin(), list.end()) instead. [-Wdeprecated-declarations]
 4977 |                 _lastIds = QSet<int>::fromList(QList<int>::fromStdList(kpts));
      |                                       ^~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QSet:1,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/../include/rtabmap/gui/MainWindow.h:35,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/MainWindow.cpp:28:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qset.h:416:9: note: declared here
  416 | QSet<T> QSet<T>::fromList(const QList<T> &list)
      |         ^~~~~~~
/home/russ/rtabmap_ws/src/rtabmap/guilib/src/MainWindow.cpp:4977:60: warning: ‘static QList<T> QList<T>::fromStdList(const std::__cxx11::list<T>&) [with T = int]’ is deprecated: Use QList<T>(list.begin(), list.end()) instead. [-Wdeprecated-declarations]
 4977 |                 _lastIds = QSet<int>::fromList(QList<int>::fromStdList(kpts));
      |                                                            ^~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:49,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QMainWindow:1,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/../include/rtabmap/gui/MainWindow.h:34,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/MainWindow.cpp:28:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:416:28: note: declared here
  416 |     static inline QList<T> fromStdList(const std::list<T> &list)
      |                            ^~~~~~~~~~~
/home/russ/rtabmap_ws/src/rtabmap/guilib/src/MainWindow.cpp:4977:71: warning: ‘static QList<T> QList<T>::fromStdList(const std::__cxx11::list<T>&) [with T = int]’ is deprecated: Use QList<T>(list.begin(), list.end()) instead. [-Wdeprecated-declarations]
 4977 |          _lastIds = QSet<int>::fromList(QList<int>::fromStdList(kpts));
      |                                         ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~

In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:49,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QMainWindow:1,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/../include/rtabmap/gui/MainWindow.h:34,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/MainWindow.cpp:28:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:416:28: note: declared here
  416 |     static inline QList<T> fromStdList(const std::list<T> &list)
      |                            ^~~~~~~~~~~
/home/russ/rtabmap_ws/src/rtabmap/guilib/src/MainWindow.cpp:4977:47: warning: ‘static QSet<T> QSet<T>::fromList(const QList<T>&) [with T = int]’ is deprecated: Use QSet<T>(list.begin(), list.end()) instead. [-Wdeprecated-declarations]
 4977 |                 _lastIds = QSet<int>::fromList(QList<int>::fromStdList(kpts));
      |                            ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QSet:1,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/../include/rtabmap/gui/MainWindow.h:35,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/MainWindow.cpp:28:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qset.h:416:9: note: declared here
  416 | QSet<T> QSet<T>::fromList(const QList<T> &list)
      |         ^~~~~~~
/home/russ/rtabmap_ws/src/rtabmap/guilib/src/utilite/UPlot.cpp: In member function ‘void UPlotCurve::draw(QPainter*, const QRect&)’:
/home/russ/rtabmap_ws/src/rtabmap/guilib/src/utilite/UPlot.cpp:795:74: warning: ‘QLineF::IntersectType QLineF::intersect(const QLineF&, QPointF*) const’ is deprecated: Use intersects() instead [-Wdeprecated-declarations]
  795 |                            type = lineItem->line().intersect(QLineF(limits.topLeft(), limits.bottomLeft()), &intersection);
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qmatrix.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/qbrush.h:49,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpalette.h:46,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:48,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qframe.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QFrame:1,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/../include/rtabmap/utilite/UPlot.h:25,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/utilite/UPlot.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qline.h:256:19: note: declared here
  256 |     IntersectType intersect(const QLineF &l, QPointF *intersectionPoint) const;
      |                   ^~~~~~~~~
/home/russ/rtabmap_ws/src/rtabmap/guilib/src/utilite/UPlot.cpp:806:82: warning: ‘QLineF::IntersectType QLineF::intersect(const QLineF&, QPointF*) const’ is deprecated: Use intersects() instead [-Wdeprecated-declarations]
  806 |                            type = lineItem->line().intersect(QLineF(limits.topLeft(), limits.topRight()), &intersection);
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qmatrix.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/qbrush.h:49,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpalette.h:46,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:48,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qframe.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QFrame:1,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/../include/rtabmap/utilite/UPlot.h:25,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/utilite/UPlot.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qline.h:256:19: note: declared here
  256 |     IntersectType intersect(const QLineF &l, QPointF *intersectionPoint) const;
      |                   ^~~~~~~~~
/home/russ/rtabmap_ws/src/rtabmap/guilib/src/utilite/UPlot.cpp:817:90: warning: ‘QLineF::IntersectType QLineF::intersect(const QLineF&, QPointF*) const’ is deprecated: Use intersects() instead [-Wdeprecated-declarations]
  817 |                            type = lineItem->line().intersect(QLineF(limits.bottomLeft(), limits.bottomRight()), &intersection);
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qmatrix.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/qbrush.h:49,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpalette.h:46,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:48,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qframe.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QFrame:1,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/../include/rtabmap/utilite/UPlot.h:25,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/utilite/UPlot.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qline.h:256:19: note: declared here
  256 |     IntersectType intersect(const QLineF &l, QPointF *intersectionPoint) const;
      |                   ^~~~~~~~~
/home/russ/rtabmap_ws/src/rtabmap/guilib/src/utilite/UPlot.cpp:828:98: warning: ‘QLineF::IntersectType QLineF::intersect(const QLineF&, QPointF*) const’ is deprecated: Use intersects() instead [-Wdeprecated-declarations]
  828 |                            type = lineItem->line().intersect(QLineF(limits.topRight(), limits.bottomRight()), &intersection);
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qmatrix.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/qbrush.h:49,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpalette.h:46,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:48,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qframe.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QFrame:1,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/../include/rtabmap/utilite/UPlot.h:25,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/utilite/UPlot.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qline.h:256:19: note: declared here
  256 |     IntersectType intersect(const QLineF &l, QPointF *intersectionPoint) const;
      |                   ^~~~~~~~~
/home/russ/rtabmap_ws/src/rtabmap/guilib/src/DatabaseViewer.cpp: In member function ‘void rtabmap::DatabaseViewer::updateIds()’:
/home/russ/rtabmap_ws/src/rtabmap/guilib/src/DatabaseViewer.cpp:1694:28: warning: ‘static QList<T> QList<T>::fromStdList(const std::__cxx11::list<T>&) [with T = int]’ is deprecated: Use QList<T>(list.begin(), list.end()) instead. [-Wdeprecated-declarations]
 1694 |         ids_ = QList<int>::fromStdList(std::list<int>(ids.begin(), ids.end()));
      |                            ^~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:49,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QMainWindow:1,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/../include/rtabmap/gui/DatabaseViewer.h:33,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/DatabaseViewer.cpp:28:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:416:28: note: declared here
  416 |     static inline QList<T> fromStdList(const std::list<T> &list)
      |                            ^~~~~~~~~~~
/home/russ/rtabmap_ws/src/rtabmap/guilib/src/DatabaseViewer.cpp:1694:39: warning: ‘static QList<T> QList<T>::fromStdList(const std::__cxx11::list<T>&) [with T = int]’ is deprecated: Use QList<T>(list.begin(), list.end()) instead. [-Wdeprecated-declarations]
 1694 |         ids_ = QList<int>::fromStdList(std::list<int>(ids.begin(), ids.end()));
      |                ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:49,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QMainWindow:1,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/../include/rtabmap/gui/DatabaseViewer.h:33,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/DatabaseViewer.cpp:28:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:416:28: note: declared here
  416 |     static inline QList<T> fromStdList(const std::list<T> &list)
      |                            ^~~~~~~~~~~
/home/russ/rtabmap_ws/src/rtabmap/guilib/src/DatabaseViewer.cpp: In member function ‘void rtabmap::DatabaseViewer::regenerateCurrentLocalMaps()’:
/home/russ/rtabmap_ws/src/rtabmap/guilib/src/DatabaseViewer.cpp:3905:39: warning: ‘QList<T> QSet<T>::toList() const [with T = int]’ is deprecated: Use values() instead. [-Wdeprecated-declarations]
 3905 |         QList<int> ids = idsSet.toList();
      |                          ~~~~~~~~~~~~~^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QSet:1,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/../include/rtabmap/gui/DatabaseViewer.h:36,
                 from /home/russ/rtabmap_ws/src/rtabmap/guilib/src/DatabaseViewer.cpp:28:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qset.h:265:14: note: declared here
  265 |     QList<T> toList() const { return values(); }
      |              ^~~~~~
---
Finished <<< rtabmap [4min 38s]
Starting >>> rtabmap_conversions
--- stderr: rtabmap_conversions                                      
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
---
Finished <<< rtabmap_conversions [20.7s]
Starting >>> rtabmap_sync
Starting >>> rtabmap_util
Starting >>> rtabmap_rviz_plugins
--- stderr: rtabmap_sync                                                
CMake Error at CMakeLists.txt:90 (add_library):
  Target "rtabmap_sync" links to target "rtabmap::utilite" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:90 (add_library):
  Target "rtabmap_sync" links to target "rtabmap::core" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:90 (add_library):
  Target "rtabmap_sync" links to target "rtabmap::gui" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


CMake Error at CMakeLists.txt:93 (add_library):
  Target "rtabmap_sync_plugins" links to target "rtabmap::utilite" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:93 (add_library):
  Target "rtabmap_sync_plugins" links to target "rtabmap::core" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:93 (add_library):
  Target "rtabmap_sync_plugins" links to target "rtabmap::gui" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:111 (add_executable):
  Target "rtabmap_rgbd_sync" links to target "rtabmap::utilite" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:111 (add_executable):
  Target "rtabmap_rgbd_sync" links to target "rtabmap::core" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:111 (add_executable):
  Target "rtabmap_rgbd_sync" links to target "rtabmap::gui" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:116 (add_executable):
  Target "rtabmap_rgbdx_sync" links to target "rtabmap::utilite" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:116 (add_executable):
  Target "rtabmap_rgbdx_sync" links to target "rtabmap::core" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:116 (add_executable):
  Target "rtabmap_rgbdx_sync" links to target "rtabmap::gui" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:121 (add_executable):
  Target "rtabmap_stereo_sync" links to target "rtabmap::utilite" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:121 (add_executable):
  Target "rtabmap_stereo_sync" links to target "rtabmap::core" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:121 (add_executable):
  Target "rtabmap_stereo_sync" links to target "rtabmap::gui" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:126 (add_executable):
  Target "rtabmap_rgb_sync" links to target "rtabmap::utilite" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:126 (add_executable):
  Target "rtabmap_rgb_sync" links to target "rtabmap::core" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:126 (add_executable):
  Target "rtabmap_rgb_sync" links to target "rtabmap::gui" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Generate step failed.  Build files cannot be regenerated correctly.
---
Failed   <<< rtabmap_sync [2.70s, exited with code 1]
Aborted  <<< rtabmap_rviz_plugins [4.02s]            
Aborted  <<< rtabmap_util [6.03s]                                

Summary: 4 packages finished [5min 5s]
  1 package failed: rtabmap_sync
  2 packages aborted: rtabmap_rviz_plugins rtabmap_util
  7 packages had stderr output: rtabmap rtabmap_conversions rtabmap_msgs rtabmap_python rtabmap_rviz_plugins rtabmap_sync rtabmap_util
  7 packages not processed

russ@russ-HP-Pavilion-Laptop-15-eh0xxx:~/rtabmap_ws$ colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
Starting >>> rtabmap
Starting >>> rtabmap_msgs
Starting >>> rtabmap_python
Finished <<< rtabmap [1.02s]                                    
--- stderr: rtabmap_python
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and will not be supported in a future release
  warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
  warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
  warnings.warn(
---
Finished <<< rtabmap_python [1.01s]
Finished <<< rtabmap_msgs [5.25s]                      
Starting >>> rtabmap_conversions
Finished <<< rtabmap_conversions [0.33s]                      
Starting >>> rtabmap_sync
Starting >>> rtabmap_util                  
Starting >>> rtabmap_rviz_plugins
--- stderr: rtabmap_util                                          
In file included from /home/russ/rtabmap_ws/src/rtabmap_ros/rtabmap_util/src/MapsManager.cpp:27:
/home/russ/rtabmap_ws/src/rtabmap_ros/rtabmap_util/include/rtabmap_util/MapsManager.h:31:10: fatal error: rtabmap/core/Signature.h: No such file or directory
   31 | #include <rtabmap/core/Signature.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/rtabmap_util_plugins.dir/build.make:76: CMakeFiles/rtabmap_util_plugins.dir/src/MapsManager.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from /home/russ/rtabmap_ws/src/rtabmap_ros/rtabmap_util/src/nodelets/obstacles_detection.cpp:28:
/home/russ/rtabmap_ws/src/rtabmap_ros/rtabmap_util/include/rtabmap_util/obstacles_detection.hpp:36:10: fatal error: rtabmap/core/OccupancyGrid.h: No such file or directory
   36 | #include <rtabmap/core/OccupancyGrid.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/rtabmap_util_plugins.dir/build.make:132: CMakeFiles/rtabmap_util_plugins.dir/src/nodelets/obstacles_detection.cpp.o] Error 1
In file included from /home/russ/rtabmap_ws/src/rtabmap_ros/rtabmap_util/src/nodelets/pointcloud_to_depthimage.cpp:30:
/home/russ/rtabmap_ws/install/rtabmap_conversions/include/rtabmap_conversions/MsgConversion.h:45:10: fatal error: rtabmap/core/Transform.h: No such file or directory
   45 | #include <rtabmap/core/Transform.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/rtabmap_util_plugins.dir/build.make:118: CMakeFiles/rtabmap_util_plugins.dir/src/nodelets/pointcloud_to_depthimage.cpp.o] Error 1
In file included from /home/russ/rtabmap_ws/src/rtabmap_ros/rtabmap_util/src/nodelets/point_cloud_xyzrgb.cpp:28:
/home/russ/rtabmap_ws/src/rtabmap_ros/rtabmap_util/include/rtabmap_util/point_cloud_xyzrgb.hpp:49:10: fatal error: rtabmap/core/Parameters.h: No such file or directory
   49 | #include <rtabmap/core/Parameters.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/rtabmap_util_plugins.dir/build.make:90: CMakeFiles/rtabmap_util_plugins.dir/src/nodelets/point_cloud_xyzrgb.cpp.o] Error 1
In file included from /home/russ/rtabmap_ws/src/rtabmap_ros/rtabmap_util/src/nodelets/point_cloud_xyz.cpp:30:
/home/russ/rtabmap_ws/install/rtabmap_conversions/include/rtabmap_conversions/MsgConversion.h:45:10: fatal error: rtabmap/core/Transform.h: No such file or directory
   45 | #include <rtabmap/core/Transform.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/rtabmap_util_plugins.dir/build.make:104: CMakeFiles/rtabmap_util_plugins.dir/src/nodelets/point_cloud_xyz.cpp.o] Error 1
In file included from /home/russ/rtabmap_ws/src/rtabmap_ros/rtabmap_util/src/nodelets/point_cloud_aggregator.cpp:34:
/home/russ/rtabmap_ws/install/rtabmap_conversions/include/rtabmap_conversions/MsgConversion.h:45:10: fatal error: rtabmap/core/Transform.h: No such file or directory
   45 | #include <rtabmap/core/Transform.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/rtabmap_util_plugins.dir/build.make:146: CMakeFiles/rtabmap_util_plugins.dir/src/nodelets/point_cloud_aggregator.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:155: CMakeFiles/rtabmap_util_plugins.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< rtabmap_util [1.81s, exited with code 2]
Aborted  <<< rtabmap_sync [1.94s]                                            
Aborted  <<< rtabmap_rviz_plugins [11.2s]                                  

Summary: 4 packages finished [17.1s]
  1 package failed: rtabmap_util
  2 packages aborted: rtabmap_rviz_plugins rtabmap_sync
  4 packages had stderr output: rtabmap_python rtabmap_rviz_plugins rtabmap_sync rtabmap_util
  7 packages not processed

russ@russ-HP-Pavilion-Laptop-15-eh0xxx:~/rtabmap_ws$ colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
Starting >>> rtabmap
Starting >>> rtabmap_msgs
Starting >>> rtabmap_python
Finished <<< rtabmap [0.75s]                                      
--- stderr: rtabmap_python                                            
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and will not be supported in a future release
  warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
  warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
  warnings.warn(
---
Finished <<< rtabmap_python [0.97s]
Finished <<< rtabmap_msgs [5.64s]                      
Starting >>> rtabmap_conversions
Finished <<< rtabmap_conversions [0.38s]                  
Starting >>> rtabmap_sync
Starting >>> rtabmap_util
Starting >>> rtabmap_rviz_plugins
--- stderr: rtabmap_rviz_plugins                                      
In file included from /home/russ/rtabmap_ws/src/rtabmap_ros/rtabmap_rviz_plugins/src/MapCloudDisplay.cpp:28:
/home/russ/rtabmap_ws/src/rtabmap_ros/rtabmap_rviz_plugins/include/rtabmap_rviz_plugins/MapCloudDisplay.h:41:10: fatal error: rtabmap/core/Transform.h: No such file or directory
   41 | #include <rtabmap/core/Transform.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/rtabmap_rviz_plugins.dir/build.make:88: CMakeFiles/rtabmap_rviz_plugins.dir/src/MapCloudDisplay.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from /home/russ/rtabmap_ws/build/rtabmap_rviz_plugins/include/rtabmap_rviz_plugins/moc_MapCloudDisplay.cpp:10:
/home/russ/rtabmap_ws/build/rtabmap_rviz_plugins/include/rtabmap_rviz_plugins/../../../../src/rtabmap_ros/rtabmap_rviz_plugins/include/rtabmap_rviz_plugins/MapCloudDisplay.h:41:10: fatal error: rtabmap/core/Transform.h: No such file or directory
   41 | #include <rtabmap/core/Transform.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/rtabmap_rviz_plugins.dir/build.make:130: CMakeFiles/rtabmap_rviz_plugins.dir/include/rtabmap_rviz_plugins/moc_MapCloudDisplay.cpp.o] Error 1
In file included from /home/russ/rtabmap_ws/src/rtabmap_ros/rtabmap_rviz_plugins/src/InfoDisplay.cpp:28:
/home/russ/rtabmap_ws/src/rtabmap_ros/rtabmap_rviz_plugins/include/rtabmap_rviz_plugins/InfoDisplay.h:42:10: fatal error: rtabmap/core/Transform.h: No such file or directory
   42 | #include <rtabmap/core/Transform.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/rtabmap_rviz_plugins.dir/build.make:116: CMakeFiles/rtabmap_rviz_plugins.dir/src/InfoDisplay.cpp.o] Error 1
/home/russ/rtabmap_ws/src/rtabmap_ros/rtabmap_rviz_plugins/src/MapGraphDisplay.cpp:35:10: fatal error: rtabmap/core/Link.h: No such file or directory
   35 | #include <rtabmap/core/Link.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/rtabmap_rviz_plugins.dir/build.make:102: CMakeFiles/rtabmap_rviz_plugins.dir/src/MapGraphDisplay.cpp.o] Error 1
In file included from /home/russ/rtabmap_ws/build/rtabmap_rviz_plugins/include/rtabmap_rviz_plugins/moc_InfoDisplay.cpp:10:
/home/russ/rtabmap_ws/build/rtabmap_rviz_plugins/include/rtabmap_rviz_plugins/../../../../src/rtabmap_ros/rtabmap_rviz_plugins/include/rtabmap_rviz_plugins/InfoDisplay.h:42:10: fatal error: rtabmap/core/Transform.h: No such file or directory
   42 | #include <rtabmap/core/Transform.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/rtabmap_rviz_plugins.dir/build.make:158: CMakeFiles/rtabmap_rviz_plugins.dir/include/rtabmap_rviz_plugins/moc_InfoDisplay.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/rtabmap_rviz_plugins.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< rtabmap_rviz_plugins [0.86s, exited with code 2]
Aborted  <<< rtabmap_sync [0.92s]
Aborted  <<< rtabmap_util [1.52s]                                

Summary: 4 packages finished [7.80s]
  1 package failed: rtabmap_rviz_plugins
  2 packages aborted: rtabmap_sync rtabmap_util
  4 packages had stderr output: rtabmap_python rtabmap_rviz_plugins rtabmap_sync rtabmap_util
  7 packages not processed
russ@russ-HP-Pavilion-Laptop-15-eh0xxx:~/rtabmap_ws$
Reply | Threaded
Open this post in threaded view
|

Re: Rtabmap_ros won't compile on laptop

Rodolfo
Is locally compiled version different from downloading binaries?

sudo apt install ros-humble-rtabmap-ros

But the Humble branch install directions say to compile locally?

Reply | Threaded
Open this post in threaded view
|

Re: Rtabmap_ros won't compile on laptop

matlabbe
Administrator
You can install binaries OR by source. I think those errrors:

CMake Error at CMakeLists.txt:90 (add_library):
  Target "rtabmap_sync" links to target "rtabmap::utilite" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

are because you may have older rtabmap binaries already installed  while you are trying to build from source. Either install only binaries:
sudo apt install ros-humble-rtabmap-ros 
or uninstall binaries:
sudo apt remove ros-humble-rtabmap*
and build source like your did.