ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

My compiler doesn't find the gazebo libraries.

asked 2020-03-04 14:11:11 -0500

FranJRO gravatar image

updated 2020-03-04 15:08:29 -0500

gvdhoorn gravatar image

Hello everyone.

I don't understund why, but my compile, visual studio code, Can't find gazebo libraries and make me an error, don't compile. In this case I'm using this libraries (all make and error):

 #include <ignition/math/Pose3.hh>

 #include "gazebo/physics/physics.hh"

 #include "gazebo/common/common.hh"

 #include "gazebo/gazebo.hh"

I've also use another compiler, KDevelop and the same error. I have installed properly gazebo, and I've try with the vcpkg of visual studio but this item can not be installed in my mchine, I don't know why neither. I'm desesperated.

If anyone coul help me, thanks.

edit retag flag offensive close merge delete

Comments

I've added some tags to properly mark this as a "ROS on Windows" question. That is: I'm assuming you are using ROS on Windows 10.

If not, then this question should be posted on the answers.gazebosim.org board instead.

gvdhoorn gravatar image gvdhoorn  ( 2020-03-04 15:09:06 -0500 )edit

Looks like you already posted to the Gazebo Answers forum: My compiler doesn't find the gazebo libraries..

Thanks for letting us know.

gvdhoorn gravatar image gvdhoorn  ( 2020-03-05 02:12:22 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-03-05 03:50:07 -0500

Joe28965 gravatar image

You need to add the include path to your configuration of your c/c++ extension. You can do this by clicking on the line which has the error. The light bulb should show up and you can click it. The first option should be something along the lines of edit "include path" settings click that and add /usr/include/gazebo-7 to the box with include paths. That should resolve your issue. Also, they should just be #include <gazebo/physics/physics.hh>

edit flag offensive delete link more

Comments

Please post this on Gazebo Answers (see link in comment).

This is not a ROS question.

gvdhoorn gravatar image gvdhoorn  ( 2020-03-05 04:28:13 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2020-03-04 14:11:11 -0500

Seen: 953 times

Last updated: Mar 05 '20