srl-freiburg / pedsim_ros

Pedestrian simulator powered by the social force model
https://github.com/srl-freiburg/pedsim_ros
BSD 2-Clause "Simplified" License
447 stars 169 forks source link

Build fail in Noetic #95

Open Alex108306 opened 1 month ago

Alex108306 commented 1 month ago

Screenshot from 2024-05-12 22-54-27 I have encountered this issue.

Alex108306 commented 1 month ago

some issue with file "additional_topic_subscriber.h"

Alex108306 commented 1 month ago

/home/giang/ped_ws/src/pedsim_ros/2ndparty/spencer_tracking_rviz_plugin/src/additional_topic_subscriber.h:71:125: required from here /opt/ros/noetic/include/rviz/properties/ros_topic_property.h:59:5: error: ‘QObject’ is an inaccessible base of ‘rviz::_AdditionalTopicSubscriber’

WasFun00 commented 1 month ago

have u ever solved?

Alex108306 commented 1 month ago

Yeah I've solved it. There is an error in syntax.

nanaminh commented 3 weeks ago

@Alex108306 Hello, I am having the same problem. Could you share how you solved the problem?

nanaminh commented 2 weeks ago

For anyone looking for the solution later, here's how I solved the problem:

In additional_topic_subscriber.h, line 63, change class _AdditionalTopicSubscriber: QObject to class _AdditionalTopicSubscriber: public QObject