Robotics StackExchange | Archived questions

Hi I have problems installing Gazebo in Windows

cd ..\..\sdformat
mkdir build
cd build
# if you want debug, run ..\configure Debug
..\configure

When I use ..\configure I get the following error:

image description

Asked by nmahabadi on 2016-06-08 09:11:20 UTC

Comments

Your comment implies your error is in the sdformat step, but your screenshot shows the gazebo step. Please update your text to say the right step.

Asked by Peter Mitrano on 2016-06-08 22:59:13 UTC

The specific error is one I haven't encountered, and I do most of the windows development for gazebo. Did you install any other version of protobuf at any point?

Asked by Peter Mitrano on 2016-06-08 23:35:14 UTC

Answers

(Deleted previous convoluted answer)

Try creating a new directory called x64 under gz-ws\protobuf-2.6.0-win64-vc12\vsprojects and then copy the Debug and Release directories to it.

The FindProtobuf.cmake mdoule in cmake v3.5.2 looks in the x64 directory instead of directly in the vsprojects directory.

Asked by azaclauson on 2016-06-09 07:24:50 UTC

Comments

note ONLY do this if you are absolutely sure that CMAKE_SIZEOF_VOID_P is defined as 8. you can check that with message("\n\n size: ${CMAKE_SIZEOF_VOID_P}\n\n") Look in FindProtobuf.cmake for explanation of why

Asked by Peter Mitrano on 2016-06-14 10:36:12 UTC

Hi thanks for the reply! You are right I meant to built gazebo:

cd ....\gazebo mkdir build cd build

if you want debug, run ..\configure Debug

..\configure nmake gzclient nmake gzserver nmake install

I tried the work around you suggested, (I downloaded protobuf-2.6.0-win64-vc12) and set the path in the config file. image description

now I get the following error (missing Protobuf Compilor):

image description

Any idea?

Asked by nmahabadi on 2016-06-10 04:20:13 UTC

Comments

Check that you have downloaded all the protobuf dependencies, and that they have correct paths.

Asked by nkoenig on 2016-06-10 11:07:59 UTC

it is shockingly possible that using "D:" instead of "C:" may cause a problem at some point. Just warning you. Although I don't think that's relevant here. I dig into the FindProtobuf.cmake file that should be on your system somewhere

Asked by Peter Mitrano on 2016-06-11 23:11:01 UTC