Robotics StackExchange | Archived questions

Adding QT libraries with qt-plugin

I need to parse an XML file using DOM that will be used on my QT GUI ROS application. the C++ source file can compile and run without ROS support.

for this I add on the .pro fie the QT +=xml.

however, on CMakelists.txt, i don't know how where to add this support and which will be the reference to use, I tested Qt5::xml on EXTERNALDEPENDSLIB and EXTERNAL_DEPENDS

please help

Asked by Harry on 2022-10-01 11:26:51 UTC

Comments

Answers

Solved

libraries to be linked are saved on /usr/lib/x86_64-linux-gnu/cmake

there I found Qt5Xml library and add this entry to CMakelists,txt

set(EXTERNAL_DEPENDS Qt5Widgets Qt5PrintSupport Qt5Multimedia #OpenCV Qt5Xml )

set(EXTERNAL_DEPENDS_LIB Qt5::Widgets Qt5::PrintSupport Qt5::Core Qt5::Xml #${OpenCV_LIBS} )

Asked by Harry on 2022-10-01 14:46:34 UTC

Comments