Skip to content

Support for Building MuJoCo from Source Using Bazel #2186

@bd-jahn

Description

@bd-jahn

The feature, motivation and pitch

Hello MuJoCo Team,

Our team has been integrating MuJoCo within a larger Bazel project. Currently, we fetch and link the prebuilt release binaries from this repository for C++ projects and download mujoco-py from PyPI for Python projects.

While this setup works well in most cases, we’d like to build the libraries directly using Bazel for several reasons, including hermeticity, reducing ODR issues from common dependencies, and improved integration with our existing infrastructure. I’ve developed an initial proof of concept that compiles libmujoco.so using Bazel targeting Ubuntu 22.04 / x86 configuration, and I’m open to contributing it to the community.

I understand that the current CMake build system is more comprehensive, supporting a range of configurations and Python bindings, but I wanted to get your guidance before proceeding further.

Thank you!

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions