Building Listener on Windows 10

asked 2020-04-22 04:03:59 -0600

theo_shall_burn gravatar image

updated 2020-04-23 03:25:35 -0600

Hey there, i am trying to run the listener tutorial on my windows pc, gazebo itself is running on a linux machine in my LAN. I installed Gazebo using chocolatey, and was able to get all the correct paths into the CMakeLists.txt from the example so the libraries are found and can be used, atleast Cmake doesnt complain and there are no import errors. Only Protobuf had to be built manually, because the lib from the chocolatey-installation seems to be the wrong version.

The chocolatey installation itself should work, atleast i can subscribe to topics from the server by using gz.exe on win10, although the gzclient itself doesnt work correctly, since it crashes during startup. Since i only need the data i get via topics, that doesnt really bother me.

I get the following error message:

LINK : fatal error LNK1104: File "pthread.lib" can't be opened

i managed to remove this error by substituting the pthread by TBB::tbb in the target_link_directories(...), however, new errors just keep appearing. This time it's about several unresolved symbols in libprotobufd.lib, unable to find several *.cc.obj files. I built protobuf again, chose some different options in CMAKE, and these errors disappear, but now it crashes when try to run or debug.

Have you guys got any ideas if this is an issue of gazebo itself, or just bad project setup?

How do i get this supposedly simple program to run under windows 10? I used several versions of msvc, aswell as clang, nothing works.

EDIT: After some more meddling i managed to run the program, but the command Node->Init() always throws astd::bad_alloc exception, is the only way here to build gazebo from sources to be able to debug it myself?

Best regards and thanks in advance

theo

edit retag flag offensive close merge delete