ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Adding QT libraries with qt-plugin

asked 2022-10-01 11:26:51 -0600

Harry gravatar image

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 EXTERNAL_DEPENDS_LIB and EXTERNAL_DEPENDS

please help

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-10-01 14:46:34 -0600

Harry gravatar image

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} )

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-10-01 11:26:51 -0600

Seen: 173 times

Last updated: Oct 01 '22