Gazebo | Ignition | Community
Ask Your Question

Standalone gzserver executable

asked 2018-01-10 16:32:15 -0500

pchidamb gravatar image

Is it possible to create a Standalone gzserver executable. In other words if the executable is build on a certain PC , can it be used on another PC with the same specs without any installations? If possible what are the steps that must be performed? If not why?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2018-01-10 18:14:43 -0500

Jose Luis Rivero gravatar image

updated 2018-01-10 18:18:03 -0500

It is an interesting question. My instinct will quickly answer no because gzserver is built with a good bunch of shared libraries that needs to be loaded at runtime:

ldd /usr/bin/gzserver-8.2.0 | wc -l

Using cmake we could try to build gazebo libraries as static but that won't solve the problem of finding the rest of the libraries used by gazebo in their static (.a) versions. Build the whole stack of libraries that does not supply the static version from source can be ... eeh time consuming, being optimistic.

Seems like some people found your use case before and built some tools to generate static binaries (like I've never used but sounds like a more reasonable approach to me. Please report your findings if you happen to go this way.

edit flag offensive delete link more

answered 2018-01-16 10:59:00 -0500

seechew gravatar image

I am also interested in this topic. While looking at Gazebo source code, I notice there are files that shows example of compiling executable. Perhaps one can leverage this. Here is the link,

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-01-10 16:32:15 -0500

Seen: 394 times

Last updated: Jan 16 '18