QCustomPlot Discussion and Comments

ROS + QCP compile error.Return to overview

Hi to all.

I am Youngdong and need your help.

I will appreciate if you can help me or give any hints.

As I mentioned in the title, I am trying to combine my original ui (with QCP) with ROS to use in the ROS environment.

The following is the error message I got when I typed 'catkin_make'.

/home/youngdong/ROS/GCS/src/gui/include/gui/qcustomplot.h:473: Error: NOTIFY signal 'layerChanged' of property 'layer' does not exist in class QCPLayerable.
gui/CMakeFiles/gui.dir/build.make:86: recipe for target 'gui/include/gui/moc_qcustomplot.cxx' failed

As it shows, the error comes from the qcustomplot.h file. When I commented the segment of qcustomplot.h,

Q_PROPERTY(QCPLayer* layer READ layer WRITE setLayer NOTIFY layerChanged)

the error disappears.
However, in other place, similar errors continuously happens showing messages like 'xx does not exist in class XX'.

What is the problem? I can't figure out because it seems the problem of QCP.

Thank you all of you.

check this out:
https://github.com/ros-visualization/qt_gui_core/issues/55

you need to replace conflicting emit signals... words with Q_EMIT ...