mrpt-ros-pkg / mrpt_slam

ROS wrappers for SLAM algorithms in MRPT
http://wiki.ros.org/mrpt_slam
BSD 3-Clause "New" or "Revised" License
114 stars 49 forks source link

Error about variant #43

Closed ganechean closed 6 years ago

ganechean commented 6 years ago

When I try to compile mrpt_slam in workspace of ROS, an error occurred as follow:

error: ‘variant’ in namespace ‘std’ does not name a template type typename std::variant<T...> ReadVariant()

How can I solve it?

jlblancoc commented 6 years ago

We're still in the process of making mrpt_slam (and its build instructions) compatible with mrpt master. Please, try using mrpt 1.5 in the meanwhile.

jlblancoc commented 6 years ago

Alternatively, make sure of installing the minimum compiler version for your case: https://github.com/mrpt/mrpt#32-build-from-sources

jlblancoc commented 6 years ago

The reason for this error was quite intricate... it should be finally solved after https://github.com/MRPT/mrpt/pull/808

Cheers.