Gazebo | Ignition | Community
Ask Your Question
0

gazebo/examples/plugins/camera build error

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

this post is marked as community wiki

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

Hello,

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
0

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

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:

set(CMAKE_CXX_STANDARD 17)

set(CMAKE_CXX_STANDARD_REQUIRED ON)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 156 times

Last updated: May 09 '20