Home | Tutorials | Wiki | Issues
Ask Your Question
0

Building Gazebo on windows syntax error

asked 2016-01-20 08:05:21 -0600

Mr_Orion gravatar image

Scanning dependencies of target gazebo_transport [ 43%] Building CXX object gazebo/transport/CMakeFiles/gazebo_transport.dir/Connection.cc.obj Connection.cc c:\work\gazebo\gazebo\build\gazebo\msgs\logical_camera_sensor.pb.h(102) : error C2059: syntax error : ')' c:\work\gazebo\gazebo\build\gazebo\msgs\logical_camera_sensor.pb.h(102) : error C2238: unexpected token(s) preceding ';' c:\work\gazebo\gazebo\build\gazebo\msgs\logical_camera_sensor.pb.h(109) : error C2059: syntax error : ')' c:\work\gazebo\gazebo\build\gazebo\msgs\logical_camera_sensor.pb.h(109) : error C2238: unexpected token(s) preceding ';' c:\work\gazebo\gazebo\build\gazebo\msgs\logical_camera_sensor.pb.h(173) : error C2589: '(' : illegal token on right side of '::' c:\work\gazebo\gazebo\build\gazebo\msgs\logical_camera_sensor.pb.h(173) : error C2143: syntax error : missing ';' before '::' c:\work\gazebo\gazebo\build\gazebo\msgs\logical_camera_sensor.pb.h(173) : error C2059: syntax error : '::' c:\work\gazebo\gazebo\build\gazebo\msgs\logical_camera_sensor.pb.h(173) : error C2143: syntax error : missing ';' before '{' c:\work\gazebo\gazebo\build\gazebo\msgs\logical_camera_sensor.pb.h(173) : error C2447: '{' : missing function header (old-style formal list?) c:\work\gazebo\gazebo\build\gazebo\msgs\logical_camera_sensor.pb.h(197) : error C2589: '(' : illegal token on right side of '::' c:\work\gazebo\gazebo\build\gazebo\msgs\logical_camera_sensor.pb.h(197) : error C2143: syntax error : missing ';' before '::' c:\work\gazebo\gazebo\build\gazebo\msgs\logical_camera_sensor.pb.h(197) : error C2059: syntax error : '::' c:\work\gazebo\gazebo\build\gazebo\msgs\logical_camera_sensor.pb.h(197) : error C2143: syntax error : missing ';' before '{' c:\work\gazebo\gazebo\build\gazebo\msgs\logical_camera_sensor.pb.h(197) : error C2447: '{' : missing function header (old-style formal list?)

I think, trouble with inclusion of this header in Connection.cc through inclusion of msgs.hh. But can't understand why error apeare.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-01-20 13:06:25 -0600

Mr_Orion gravatar image

Yes, I followed the instructions . But when Connection.cc compile I get this error . Step 11 "nmake gzclient"

edit flag offensive delete link more

Comments

The MSGS project compiled without errors.

Mr_Orion gravatar imageMr_Orion ( 2016-01-20 13:10:48 -0600 )edit
0

answered 2016-01-20 10:32:28 -0600

nkoenig gravatar image

Have you followed the Windows install instructions?

edit flag offensive delete link more

Comments

My mistake in using Gazebo 6.1, but tutorial about Gazebo 6.0. MSGS\*.proto files has difference between Gazebo 6.1 and Gazebo 6.0.

Mr_Orion gravatar imageMr_Orion ( 2016-01-25 01:25:45 -0600 )edit

New errors: [ 85%] Building CXX object gazebo/gui/CMakeFiles/gazebo_gui.dir/SplashScreen.cc.obj SplashScreen.cc C:\Program Files (x86)\Windows Kits\8.1\include\shared\inaddr.h(24) : error C2146: syntax error : missing ';' before identifier ' I think that, problem with order of #include <windows.h> and #include <winsock2.h>

Mr_Orion gravatar imageMr_Orion ( 2016-01-25 07:13:10 -0600 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-01-20 08:05:21 -0600

Seen: 163 times

Last updated: Jan 20 '16