Gazebo | Ignition | Community
Ask Your Question

gazebo/examples/plugins/camera build error

asked 2020-05-09 20:31:09 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.


I am trying to build the camera example under plugins, using the latest gazebo-11. While trying to make I get the following error:

/usr/include/sdformat-9.2/sdf/Param.hh:72:57: error: expected constructor, destructor, or type conversion before ‘;’ token template<class T> ParamStreamer(T) -> ParamStreamer<T>; /usr/include/sdformat-9.2/sdf/Param.hh:83:47: error: ‘variant’ is not a member of ‘std’ ParamStreamer<std::variant<Ts...>> sv)

I am attaching the full error output. C:\fakepath\error.yaml

Any help on this problem greatly appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2020-10-20 06:02:29 -0500

tanmay gravatar image

I had the same error.. In the following warnings it said something about variant being supported by c++17 and so I added the following lines in the begenning of CMakeLists.txt and it worked:



edit flag offensive delete link more

Question Tools

1 follower


Asked: 2020-05-09 20:31:09 -0500

Seen: 283 times

Last updated: May 09 '20