Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Getting error while colcon build of SlicerROS2, help me out.
Forum Updated to NodeBB v4.3 + New Features

Getting error while colcon build of SlicerROS2, help me out.

Scheduled Pinned Locked Moved Solved Installation and Deployment
7 Posts 3 Posters 654 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    akanksha
    wrote on last edited by
    #1

    akanksha@inhmctehpws1580-HP-Z4-G4-Workstation:~/ros2_ws$ colcon build --cmake-args -DSlicer_DIR:PATH=/home/akanksha/Slicer-SuperBuild-Debug/Slicer-build -DOPENSSL_INCLUDE_DIR:PATH=/home/akanksha/Slicer-SuperBuild-Debug/OpenSSL/include -DOPENSSL_SSL_LIBRARY:PATH=/home/akanksha/Slicer-SuperBuild-Debug/OpenSSL/libssl.so -DOPENSSL_CRYPTO_LIBRARY:PATH=/home/akanksha/Slicer-SuperBuild-Debug/OpenSSL/libcrypto.so
    WARNING: Package name "ROS2" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits, underscores, and dashes.
    Starting >>> ROS2
    [Processing: ROS2]
    [Processing: ROS2]
    --- stderr: ROS2
    WARNING: Package name "ROS2" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits, underscores, and dashes.
    CMake Warning at /home/akanksha/Slicer/CMake/SlicerMacroBuildLoadableModule.cmake:191 (add_library):
    Cannot generate a safe runtime search path for target qSlicerROS2Module
    because files in some directories may conflict with libraries in implicit
    directories:

    runtime library [libQt5Widgets.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /opt/qt/5.15.2/gcc_64/lib
    runtime library [libQt5Gui.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /opt/qt/5.15.2/gcc_64/lib
    runtime library [libQt5Core.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /opt/qt/5.15.2/gcc_64/lib
    

    Some of these libraries may not be found correctly.
    Call Stack (most recent call first):
    CMakeLists.txt:111 (slicerMacroBuildLoadableModule)

    CMake Warning at /home/akanksha/Slicer-SuperBuild-Debug/CTK/CMake/ctkFunctionAddExecutableUtf8.cmake:18 (add_executable):
    Cannot generate a safe runtime search path for target
    qSlicerROS2ModuleGenericCxxTests because files in some directories may
    conflict with libraries in implicit directories:

    runtime library [libQt5Widgets.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /opt/qt/5.15.2/gcc_64/lib
    runtime library [libQt5Gui.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /opt/qt/5.15.2/gcc_64/lib
    runtime library [libQt5Core.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /opt/qt/5.15.2/gcc_64/lib
    

    Some of these libraries may not be found correctly.
    Call Stack (most recent call first):
    /home/akanksha/Slicer/CMake/SlicerMacroBuildLoadableModule.cmake:284 (ctk_add_executable_utf8)
    CMakeLists.txt:111 (slicerMacroBuildLoadableModule)

    .
    .
    .
    .
    .
    .
    .
    .
    .
    .

      |                                                                                       ^
      |                                                                                        ;
    

    /opt/qt/5.15.2/gcc_64/include/QtCore/qbytearray.h:346:5: error: ‘int QByteArray::QT_DEPRECATED_VERSION_X_5_15(int)’ cannot be overloaded with ‘int QByteArray::QT_DEPRECATED_VERSION_X_5_15(int)’
    346 | QT_DEPRECATED_VERSION_X_5_15("Use QString's toUtf8(), toLatin1() or toLocal8Bit()")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qbytearray.h:338:5: note: previous declaration ‘int QByteArray::QT_DEPRECATED_VERSION_X_5_15(int)’
    338 | QT_DEPRECATED_VERSION_X_5_15("Use QString's toUtf8(), toLatin1() or toLocal8Bit()")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qbytearray.h:349:34: error: expected identifier before string constant
    349 | QT_DEPRECATED_VERSION_X_5_15("Use QString's toUtf8(), toLatin1() or toLocal8Bit()")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qbytearray.h:349:34: error: expected ‘,’ or ‘...’ before string constant
    /opt/qt/5.15.2/gcc_64/include/QtCore/qbytearray.h:349:87: error: expected ‘;’ at end of member declaration
    349 | QT_DEPRECATED_VERSION_X_5_15("Use QString's toUtf8(), toLatin1() or toLocal8Bit()")
    | ^
    | ;
    /opt/qt/5.15.2/gcc_64/include/QtCore/qbytearray.h:349:5: error: ‘int QByteArray::QT_DEPRECATED_VERSION_X_5_15(int)’ cannot be overloaded with ‘int QByteArray::QT_DEPRECATED_VERSION_X_5_15(int)’
    349 | QT_DEPRECATED_VERSION_X_5_15("Use QString's toUtf8(), toLatin1() or toLocal8Bit()")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qbytearray.h:338:5: note: previous declaration ‘int QByteArray::QT_DEPRECATED_VERSION_X_5_15(int)’
    338 | QT_DEPRECATED_VERSION_X_5_15("Use QString's toUtf8(), toLatin1() or toLocal8Bit()")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qbytearray.h:351:34: error: expected identifier before string constant
    351 | QT_DEPRECATED_VERSION_X_5_15("Use QString's toUtf8(), toLatin1() or toLocal8Bit()")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qbytearray.h:351:34: error: expected ‘,’ or ‘...’ before string constant
    /opt/qt/5.15.2/gcc_64/include/QtCore/qbytearray.h:351:87: error: expected ‘;’ at end of member declaration
    351 | QT_DEPRECATED_VERSION_X_5_15("Use QString's toUtf8(), toLatin1() or toLocal8Bit()")
    | ^
    | ;
    /opt/qt/5.15.2/gcc_64/include/QtCore/qbytearray.h:351:5: error: ‘int QByteArray::QT_DEPRECATED_VERSION_X_5_15(int)’ cannot be overloaded with ‘int QByteArray::QT_DEPRECATED_VERSION_X_5_15(int)’
    351 | QT_DEPRECATED_VERSION_X_5_15("Use QString's toUtf8(), toLatin1() or toLocal8Bit()")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qbytearray.h:338:5: note: previous declaration ‘int QByteArray::QT_DEPRECATED_VERSION_X_5_15(int)’
    338 | QT_DEPRECATED_VERSION_X_5_15("Use QString's toUtf8(), toLatin1() or toLocal8Bit()")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qbytearray.h:353:34: error: expected identifier before string constant
    353 | QT_DEPRECATED_VERSION_X_5_15("Use QString's toUtf8(), toLatin1() or toLocal8Bit()")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qbytearray.h:353:34: error: expected ‘,’ or ‘...’ before string constant
    /opt/qt/5.15.2/gcc_64/include/QtCore/qbytearray.h:353:87: error: expected ‘;’ at end of member declaration
    353 | QT_DEPRECATED_VERSION_X_5_15("Use QString's toUtf8(), toLatin1() or toLocal8Bit()")
    | ^
    | ;
    /opt/qt/5.15.2/gcc_64/include/QtCore/qbytearray.h:353:5: error: ‘int QByteArray::QT_DEPRECATED_VERSION_X_5_15(int)’ cannot be overloaded with ‘int QByteArray::QT_DEPRECATED_VERSION_X_5_15(int)’
    353 | QT_DEPRECATED_VERSION_X_5_15("Use QString's toUtf8(), toLatin1() or toLocal8Bit()")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qbytearray.h:338:5: note: previous declaration ‘int QByteArray::QT_DEPRECATED_VERSION_X_5_15(int)’
    338 | QT_DEPRECATED_VERSION_X_5_15("Use QString's toUtf8(), toLatin1() or toLocal8Bit()")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:55,
    from /opt/qt/5.15.2/gcc_64/include/QtCore/qhashfunctions.h:44,
    from /opt/qt/5.15.2/gcc_64/include/QtCore/qlist.h:47,
    from /usr/include/x86_64-linux-gnu/qt5/QtGui/qicon.h:45,
    from /usr/include/x86_64-linux-gnu/qt5/QtGui/QIcon:1,
    from /home/akanksha/Slicer/Base/QTGUI/qSlicerAbstractModule.h:25,
    from /home/akanksha/Slicer/Base/QTGUI/qSlicerLoadableModule.h:28,
    from /home/akanksha/ros2_ws/src/slicer_ros2_module/qSlicerROS2Module.h:22,
    from /home/akanksha/ros2_ws/src/slicer_ros2_module/qSlicerROS2Module.cxx:22:
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstringview.h:191:34: error: expected identifier before string constant
    191 | QT_DEPRECATED_VERSION_X_5_14(R"(Use u"~" or QStringView(u"~") instead of QStringViewLiteral("~"))")
    | ^
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstringview.h:191:34: error: expected ‘,’ or ‘...’ before string constant
    In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:105,
    from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtGlobal:1,
    from /home/akanksha/Slicer-SuperBuild-Debug/CTK/Libs/Core/ctkPimpl.h:134,
    from /home/akanksha/Slicer/Base/QTGUI/qSlicerLoadableModule.h:25,
    from /home/akanksha/ros2_ws/src/slicer_ros2_module/qSlicerROS2Module.h:22,
    from /home/akanksha/ros2_ws/src/slicer_ros2_module/qSlicerROS2Module.cxx:22:
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstringview.h:192:5: error: expected constructor, destructor, or type conversion before ‘constexpr’
    192 | Q_DECL_CONSTEXPR QStringView(const Array &str, QtPrivate::Deprecated_t) noexcept
    | ^~~~~~~~~~~~~~~~
    In file included from /opt/qt/5.15.2/gcc_64/include/QtCore/qhashfunctions.h:44,
    from /opt/qt/5.15.2/gcc_64/include/QtCore/qlist.h:47,
    from /usr/include/x86_64-linux-gnu/qt5/QtGui/qicon.h:45,
    from /usr/include/x86_64-linux-gnu/qt5/QtGui/QIcon:1,
    from /home/akanksha/Slicer/Base/QTGUI/qSlicerAbstractModule.h:25,
    from /home/akanksha/Slicer/Base/QTGUI/qSlicerLoadableModule.h:28,
    from /home/akanksha/ros2_ws/src/slicer_ros2_module/qSlicerROS2Module.h:22,
    from /home/akanksha/ros2_ws/src/slicer_ros2_module/qSlicerROS2Module.cxx:22:
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:608:52: error: expected identifier before string constant
    608 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:608:52: error: expected ‘,’ or ‘...’ before string constant
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:608:91: error: expected ‘;’ at end of member declaration
    608 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^
    | ;
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:611:52: error: expected identifier before string constant
    611 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:611:52: error: expected ‘,’ or ‘...’ before string constant
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:611:91: error: expected ‘;’ at end of member declaration
    611 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^
    | ;
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:611:23: error: ‘int QString::QT_DEPRECATED_VERSION_X_5_15(int)’ cannot be overloaded with ‘int QString::QT_DEPRECATED_VERSION_X_5_15(int)’
    611 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:608:23: note: previous declaration ‘int QString::QT_DEPRECATED_VERSION_X_5_15(int)’
    608 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:614:52: error: expected identifier before string constant
    614 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:614:52: error: expected ‘,’ or ‘...’ before string constant
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:614:91: error: expected ‘;’ at end of member declaration
    614 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^
    | ;
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:614:23: error: ‘int QString::QT_DEPRECATED_VERSION_X_5_15(int)’ cannot be overloaded with ‘int QString::QT_DEPRECATED_VERSION_X_5_15(int)’
    614 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:608:23: note: previous declaration ‘int QString::QT_DEPRECATED_VERSION_X_5_15(int)’
    608 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:617:52: error: expected identifier before string constant
    617 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:617:52: error: expected ‘,’ or ‘...’ before string constant
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:617:91: error: expected ‘;’ at end of member declaration
    617 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^
    | ;
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:617:23: error: ‘int QString::QT_DEPRECATED_VERSION_X_5_15(int)’ cannot be overloaded with ‘int QString::QT_DEPRECATED_VERSION_X_5_15(int)’
    617 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:608:23: note: previous declaration ‘int QString::QT_DEPRECATED_VERSION_X_5_15(int)’
    608 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:621:52: error: expected identifier before string constant
    621 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:621:52: error: expected ‘,’ or ‘...’ before string constant
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:621:91: error: expected ‘;’ at end of member declaration
    621 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^
    | ;
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:621:23: error: ‘int QString::QT_DEPRECATED_VERSION_X_5_15(int)’ cannot be overloaded with ‘int QString::QT_DEPRECATED_VERSION_X_5_15(int)’
    621 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:608:23: note: previous declaration ‘int QString::QT_DEPRECATED_VERSION_X_5_15(int)’
    608 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:623:52: error: expected identifier before string constant
    623 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:623:52: error: expected ‘,’ or ‘...’ before string constant
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:623:91: error: expected ‘;’ at end of member declaration
    623 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^
    | ;
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:623:23: error: ‘int QString::QT_DEPRECATED_VERSION_X_5_15(int)’ cannot be overloaded with ‘int QString::QT_DEPRECATED_VERSION_X_5_15(int)’
    623 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:608:23: note: previous declaration ‘int QString::QT_DEPRECATED_VERSION_X_5_15(int)’
    608 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qstring.h:627:52: error: expected identifier before string constant
    627 | Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
    |
    .
    .
    .
    .
    .
    .
    .
    .

      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                QT_DEPRECATED_VARIABLE
    

    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:201:22: error: expected ‘;’ at end of member declaration
    201 | reverse_iterator QT_DEPRECATED_VERSION_5_15 rbegin() { return reverse_iterator(end()); }
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~
    | ;
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:202:22: error: expected ‘;’ at end of member declaration
    202 | reverse_iterator QT_DEPRECATED_VERSION_5_15 rend() { return reverse_iterator(begin()); }
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~
    | ;
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:202:22: error: redeclaration of ‘QSet<T>::reverse_iterator QSet<T>::QT_DEPRECATED_VERSION_5_15’
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:201:22: note: previous declaration ‘QSet<T>::reverse_iterator QSet<T>::QT_DEPRECATED_VERSION_5_15’
    201 | reverse_iterator QT_DEPRECATED_VERSION_5_15 rbegin() { return reverse_iterator(end()); }
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:203:28: error: expected ‘;’ at end of member declaration
    203 | const_reverse_iterator QT_DEPRECATED_VERSION_5_15 rbegin() const noexcept { return const_reverse_iterator(end()); }
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~
    | ;
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:203:28: error: redeclaration of ‘QSet<T>::const_reverse_iterator QSet<T>::QT_DEPRECATED_VERSION_5_15’
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:201:22: note: previous declaration ‘QSet<T>::reverse_iterator QSet<T>::QT_DEPRECATED_VERSION_5_15’
    201 | reverse_iterator QT_DEPRECATED_VERSION_5_15 rbegin() { return reverse_iterator(end()); }
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:204:28: error: expected ‘;’ at end of member declaration
    204 | const_reverse_iterator QT_DEPRECATED_VERSION_5_15 rend() const noexcept { return const_reverse_iterator(begin()); }
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~
    | ;
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:204:28: error: redeclaration of ‘QSet<T>::const_reverse_iterator QSet<T>::QT_DEPRECATED_VERSION_5_15’
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:201:22: note: previous declaration ‘QSet<T>::reverse_iterator QSet<T>::QT_DEPRECATED_VERSION_5_15’
    201 | reverse_iterator QT_DEPRECATED_VERSION_5_15 rbegin() { return reverse_iterator(end()); }
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:205:28: error: expected ‘;’ at end of member declaration
    205 | const_reverse_iterator QT_DEPRECATED_VERSION_5_15 crbegin() const noexcept { return const_reverse_iterator(end()); }
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~
    | ;
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:205:28: error: redeclaration of ‘QSet<T>::const_reverse_iterator QSet<T>::QT_DEPRECATED_VERSION_5_15’
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:201:22: note: previous declaration ‘QSet<T>::reverse_iterator QSet<T>::QT_DEPRECATED_VERSION_5_15’
    201 | reverse_iterator QT_DEPRECATED_VERSION_5_15 rbegin() { return reverse_iterator(end()); }
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:206:28: error: expected ‘;’ at end of member declaration
    206 | const_reverse_iterator QT_DEPRECATED_VERSION_5_15 crend() const noexcept { return const_reverse_iterator(begin()); }
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~
    | ;
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:206:28: error: redeclaration of ‘QSet<T>::const_reverse_iterator QSet<T>::QT_DEPRECATED_VERSION_5_15’
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:201:22: note: previous declaration ‘QSet<T>::reverse_iterator QSet<T>::QT_DEPRECATED_VERSION_5_15’
    201 | reverse_iterator QT_DEPRECATED_VERSION_5_15 rbegin() { return reverse_iterator(end()); }
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:459:12: error: ‘QT_DEPRECATED_VERSION_5_15’ does not name a type; did you mean ‘QT_DEPRECATED_VARIABLE’?
    459 | inline QT_DEPRECATED_VERSION_5_15 bool hasPrevious() const { return c->constBegin() != i; }
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~
    | QT_DEPRECATED_VARIABLE
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:460:12: error: ‘QT_DEPRECATED_VERSION_5_15’ does not name a type; did you mean ‘QT_DEPRECATED_VARIABLE’?
    460 | inline QT_DEPRECATED_VERSION_5_15 const T &previous() { n = --i; return n; }
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~
    | QT_DEPRECATED_VARIABLE
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:461:12: error: ‘QT_DEPRECATED_VERSION_5_15’ does not name a type; did you mean ‘QT_DEPRECATED_VARIABLE’?
    461 | inline QT_DEPRECATED_VERSION_5_15 const T &peekPrevious() const { iterator p = i; return --p; }
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~
    | QT_DEPRECATED_VARIABLE
    /opt/qt/5.15.2/gcc_64/include/QtCore/qset.h:462:12: error: ‘QT_DEPRECATED_VERSION_5_15’ does not name a type; did you mean ‘QT_DEPRECATED_VARIABLE’?
    462 | inline QT_DEPRECATED_VERSION_5_15 bool findPrevious(const T &t)
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~
    | QT_DEPRECATED_VARIABLE
    In file included from /usr/include/c++/9/bits/stl_algobase.h:66,
    from /usr/include/c++/9/bits/char_traits.h:39,
    from /usr/include/c++/9/ios:40,
    from /usr/include/c++/9/istream:38,
    from /usr/include/c++/9/fstream:38,
    from /home/akanksha/Slicer-SuperBuild-Debug/VTK/Common/Core/vtkIOStream.h:29,
    from /home/akanksha/Slicer-SuperBuild-Debug/VTK/Common/Core/vtkSystemIncludes.h:39,
    from /home/akanksha/Slicer-SuperBuild-Debug/VTK/Common/Core/vtkIndent.h:28,
    from /home/akanksha/Slicer-SuperBuild-Debug/VTK/Common/Core/vtkObjectBase.h:53,
    from /home/akanksha/Slicer-SuperBuild-Debug/VTK/Common/Core/vtkObject.h:45,
    from /home/akanksha/Slicer/Libs/MRML/Core/vtkObserverManager.h:22,
    from /home/akanksha/Slicer/Libs/MRML/Logic/vtkMRMLAbstractLogic.h:17,
    from /home/akanksha/Slicer/Libs/MRML/Logic/vtkMRMLApplicationLogic.h:25,
    from /home/akanksha/Slicer/Base/Logic/vtkSlicerApplicationLogic.h:25,
    from /home/akanksha/Slicer/Base/Logic/vtkSlicerModuleLogic.h:18,
    from /home/akanksha/ros2_ws/src/slicer_ros2_module/Logic/vtkSlicerROS2Logic.h:40,
    from /home/akanksha/ros2_ws/src/slicer_ros2_module/qSlicerROS2Module.cxx:19:
    /usr/include/c++/9/bits/stl_iterator_base_funcs.h: In instantiation of ‘constexpr void std::__advance(_BidirectionalIterator&, _Distance, std::bidirectional_iterator_tag) [with _BidirectionalIterator = QHash<QString, QVariant>::const_iterator; _Distance = long long int]’:
    /usr/include/c++/9/bits/stl_iterator_base_funcs.h:206:21: required from ‘constexpr void std::advance(_InputIterator&, _Distance) [with _InputIterator = QHash<QString, QVariant>::const_iterator; _Distance = int]’
    /opt/qt/5.15.2/gcc_64/include/QtCore/qmetatype.h:1322:19: required from ‘static void QtMetaTypePrivate::QAssociativeIterableImpl::advanceImpl(void
    , int) [with T = QHash<QString, QVariant>]’
    /opt/qt/5.15.2/gcc_64/include/QtCore/qmetatype.h:1358:68: required from ‘QtMetaTypePrivate::QAssociativeIterableImpl::QAssociativeIterableImpl(const T*) [with T = QHash<QString, QVariant>]’
    /opt/qt/5.15.2/gcc_64/include/QtCore/qvariant.h:795:141: required from here
    /usr/include/c++/9/bits/stl_iterator_base_funcs.h:169:4: error: no match for ‘operator--’ (operand type is ‘QHash<QString, QVariant>::const_iterator’)
    169 | --__i;
    | ^~~~~
    make[2]: *** [CMakeFiles/qSlicerROS2Module.dir/build.make:96: CMakeFiles/qSlicerROS2Module.dir/qSlicerROS2Module.cxx.o] Error 1
    /bin/ld: /opt/qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5.15.2: .dynsym local symbol at index 3 (>= sh_info of 3)
    /bin/ld: /opt/qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5.15.2: .dynsym local symbol at index 4 (>= sh_info of 3)
    /bin/ld: /opt/qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5.15.2: .dynsym local symbol at index 5 (>= sh_info of 3)
    /bin/ld: /opt/qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5.15.2: .dynsym local symbol at index 6 (>= sh_info of 3)
    /bin/ld: /opt/qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5.15.2: .dynsym local symbol at index 7 (>= sh_info of 3)
    /bin/ld: /opt/qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5.15.2: .dynsym local symbol at index 8 (>= sh_info of 3)
    /bin/ld: /opt/qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5.15.2: .dynsym local symbol at index 9 (>= sh_info of 3)
    /bin/ld: /opt/qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5.15.2: .dynsym local symbol at index 10 (>= sh_info of 3)
    /bin/ld: /opt/qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5.15.2: .dynsym local symbol at index 11 (>= sh_info of 3)
    /bin/ld: /opt/qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5.15.2: .dynsym local symbol at index 12 (>= sh_info of 3)
    /bin/ld: /opt/qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5.15.2: .dynsym local symbol at index 13 (>= sh_info of 3)
    /bin/ld: /opt/qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5.15.2: .dynsym local symbol at index 14 (>= sh_info of 3)
    /bin/ld: /opt/qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5.15.2: .dynsym local symbol at index 15 (>= sh_info of 3)
    /bin/ld: /opt/qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5.15.2: .dynsym local symbol at index 16 (>= sh_info of 3)
    /bin/ld: /opt/qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5.15.2: .dynsym local symbol at index 17 (>= sh_info of 3)
    /bin/ld: /opt/qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5.15.2: .dynsym local symbol at index 18 (>= sh_info of 3)
    /bin/ld: /opt/qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5.15.2: .dynsym local symbol at index 19 (>= sh_info of 3)
    /bin/ld: /opt/qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5.15.2: .dynsym local symbol at index 20 (>= sh_info of 3)
    make[1]: *** [CMakeFiles/Makefile2:197: CMakeFiles/qSlicerROS2Module.dir/all] Error 2
    make: *** [Makefile:141: all] Error 2

    Failed <<< ROS2 [1min 22s, exited with code 2]

    Summary: 0 packages finished [1min 29s]
    1 package failed: ROS2
    1 package had stderr output: ROS2

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      It seems that your distribution provided Qt and the on you installed in /opt are fighting.

      Which version of Qt do you have installed on your system ?
      Did you install the Qt development packages from your distribution ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        It seems that your distribution provided Qt and the on you installed in /opt are fighting.

        Which version of Qt do you have installed on your system ?
        Did you install the Qt development packages from your distribution ?

        A Offline
        A Offline
        akanksha
        wrote on last edited by
        #3

        @SGaist
        ./qt-unified-linux-x64-online.run \

        install \

        qt.qt5.5152.gcc_64 \ 
        
        qt.qt5.5152.qtwebengine \ 
        
        qt.qt5.5152.qtwebengine.gcc_64 \ 
        

        --mirror http://www.nic.funet.fi/pub/mirrors/download.qt-project.org \

        --root /opt/qt \

        --email $QT_ACCOUNT_LOGIN \

        --pw $QT_ACCOUNT_PASSWORD

        I used these steps to install qt 5.15.2 (/opt/qt)
        and by default with linux it is 5.12.8

        jsulmJ 1 Reply Last reply
        0
        • A akanksha

          @SGaist
          ./qt-unified-linux-x64-online.run \

          install \

          qt.qt5.5152.gcc_64 \ 
          
          qt.qt5.5152.qtwebengine \ 
          
          qt.qt5.5152.qtwebengine.gcc_64 \ 
          

          --mirror http://www.nic.funet.fi/pub/mirrors/download.qt-project.org \

          --root /opt/qt \

          --email $QT_ACCOUNT_LOGIN \

          --pw $QT_ACCOUNT_PASSWORD

          I used these steps to install qt 5.15.2 (/opt/qt)
          and by default with linux it is 5.12.8

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @akanksha "Did you install the Qt development packages from your distribution ?"

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply
          0
          • jsulmJ jsulm

            @akanksha "Did you install the Qt development packages from your distribution ?"

            A Offline
            A Offline
            akanksha
            wrote on last edited by
            #5

            @jsulm
            yes, they are installed, but for version 5.12.8

            akanksha@inhmctehpws1580-HP-Z4-G4-Workstation:~/ros2_ws$ apt list --installed | grep qt | grep dev

            WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

            libqt5opengl5-dev/focal-updates,focal-security,now 5.12.8+dfsg-0ubuntu2.1 amd64 [installed,automatic]
            libqt5svg5-dev/focal,now 5.12.8-0ubuntu1 amd64 [installed]
            pyqt5-dev/focal,focal,now 5.14.1+dfsg-3build1 all [installed,automatic]
            qtbase5-dev-tools/focal-updates,focal-security,now 5.12.8+dfsg-0ubuntu2.1 amd64 [installed,automatic]
            qtbase5-dev/focal-updates,focal-security,now 5.12.8+dfsg-0ubuntu2.1 amd64 [installed,automatic]
            qtdeclarative5-dev-tools/focal,now 5.12.8-0ubuntu1 amd64 [installed,automatic]
            qttools5-dev-tools/focal,now 5.12.8-0ubuntu1 amd64 [installed,automatic]
            qtxmlpatterns5-dev-tools/focal,now 5.12.8-0ubuntu1 amd64 [installed,automatic]

            jsulmJ 1 Reply Last reply
            0
            • A akanksha

              @jsulm
              yes, they are installed, but for version 5.12.8

              akanksha@inhmctehpws1580-HP-Z4-G4-Workstation:~/ros2_ws$ apt list --installed | grep qt | grep dev

              WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

              libqt5opengl5-dev/focal-updates,focal-security,now 5.12.8+dfsg-0ubuntu2.1 amd64 [installed,automatic]
              libqt5svg5-dev/focal,now 5.12.8-0ubuntu1 amd64 [installed]
              pyqt5-dev/focal,focal,now 5.14.1+dfsg-3build1 all [installed,automatic]
              qtbase5-dev-tools/focal-updates,focal-security,now 5.12.8+dfsg-0ubuntu2.1 amd64 [installed,automatic]
              qtbase5-dev/focal-updates,focal-security,now 5.12.8+dfsg-0ubuntu2.1 amd64 [installed,automatic]
              qtdeclarative5-dev-tools/focal,now 5.12.8-0ubuntu1 amd64 [installed,automatic]
              qttools5-dev-tools/focal,now 5.12.8-0ubuntu1 amd64 [installed,automatic]
              qtxmlpatterns5-dev-tools/focal,now 5.12.8-0ubuntu1 amd64 [installed,automatic]

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @akanksha said in Getting error while colcon build of SlicerROS2, help me out.:

              yes, they are installed, but for version 5.12.8

              Then uninstall them if you do not need them and do a complete rebuild of the application.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              A 1 Reply Last reply
              0
              • jsulmJ jsulm

                @akanksha said in Getting error while colcon build of SlicerROS2, help me out.:

                yes, they are installed, but for version 5.12.8

                Then uninstall them if you do not need them and do a complete rebuild of the application.

                A Offline
                A Offline
                akanksha
                wrote on last edited by
                #7

                @jsulm Thank you
                This resolved my error

                1 Reply Last reply
                0
                • A akanksha has marked this topic as solved on

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved