Getting error while colcon build of SlicerROS2, help me out.
-
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 2Failed <<< ROS2 [1min 22s, exited with code 2]
Summary: 0 packages finished [1min 29s]
1 package failed: ROS2
1 package had stderr output: ROS2 -
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 ? -
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 ?@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 -
@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 -
@jsulm
yes, they are installed, but for version 5.12.8akanksha@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] -
@jsulm
yes, they are installed, but for version 5.12.8akanksha@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]@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.
-
@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.
-