Transfer libgazebo9-dev from Ubuntu to Windows
I'm trying to run AirSim and Unreal Engine on my windows laptop, but the package requires libgazebo9-dev, which is only supported on Ubuntu versions. Can I download libgazebo9-dev on Ubuntu and then transfer those files to the windows side? (Running virtual box with Ubuntu)
Otherwise, how can I obtain the lib dependency on my windows in order to run the other simulations and packages?
Asked by Nikita on 2021-06-15 11:12:26 UTC
Answers
Can I download libgazebo9-dev on Ubuntu and then transfer those files to the windows side?
No, the binary library files won't work on Windows. They're compiled on Linux.
Are you talking about this AirSim?
https://microsoft.github.io/AirSim/build_windows.html
Is this you also talking about building it on Mac?
https://github.com/microsoft/AirSim/issues/3790
I don't really know what AirSim is or does but the instructions at the first link worked fine to build it on my Windows machine.
Are you talking about building the GazeboDrone
program?
Some more information will be helpful. There are a number of errors I'm getting beyond providing the equivalent to the libgazebo9-dev
dependency.
This can be achieved by running cmake
from inside a ROS Melodic prompt with ROS installed according to instructions here https://ms-iot.github.io/ROSOnWindows/. Then find_package(gazebo)
will succeed. I don't know if you need all of ROS, but I bet it's the easiest and most painless way to get Gazebo 9 and the source files.
I had this problem with M_PI
in MeshManager.hh
:
https://stackoverflow.com/questions/26065359/m-pi-flagged-as-undeclared-identifier
solved as suggested there.
Now I am getting a linker error in Visual Studio in the GazeboDrone
solution.
LNK1181 cannot open input file 'pthread.lib'
I have an alternate way of providing the dependencies but that's giving me an issue with Google protobuf.
Asked by danzimmerman on 2021-06-23 02:38:26 UTC
Comments
Thank you for answering this! To clarify, that is the AirSim program I am trying to run with Unreal Engine, and I am trying to run the GazeboDrone class in AirSim's repo. The issue I am having is specific with the libgazebo9-dev dependency, as I prefer trying to keep everything on the Windows side, but have only found libgazebo to be functional with certain versions of Ubuntu. I am not trying to run it on mac.
Asked by Nikita on 2021-07-01 14:20:48 UTC
I have posted here (https://github.com/microsoft/AirSim/i...) and here (https://github.com/osrf/gazebo/issues...). I'll try the links you mentioned with ROS, but I'm assuming you have not had any luck getting the plug-ins functioning properly?
Asked by Nikita on 2021-07-01 14:20:51 UTC
Comments