Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow building ros-core for humble on MacOS #421

Merged
merged 2 commits into from
Jul 20, 2024

Conversation

wentasah
Copy link
Contributor

@wentasah wentasah commented Jul 6, 2024

This fixes build issues on MacOS identified in #419. With these commits, it's possible to build humble.ros-core on MacOS. Unfortunately, building ros-core still fails on iron and rolling due to lttng being a dependency of fastrtps. I think this can be fixed, but will require more work, maybe in other repositories, so I don't try to fix it here.

This fixes the following error:

    make[2]: *** No rule to make target
    '/nix/store/03q8gn91mj95y5bqbcl90hyvmpqpz738-python3-3.11.7/lib/libpython3.11.so',
    needed by
    'rosidl_generator_py/builtin_interfaces/libbuiltin_interfaces__rosidl_generator_py.dylib'.
    Stop.
CycloneDDS depends on Linux-only libraries such as acl and cannot be
built on MacOS. Removing CycloneDDS from rmw-implementation
dependencies is OK, because there are other RMW implementations, which
build fine on MacOS. For example FastDDS, which is the default one.

The result of this change is that on MacOS one cannot switch to
CycloneDDS at run-time by selecting it in the RMW_IMPLEMENTATION
environment variable.

Specifically, this commit avoids to following error:

       error: Package ‘acl-2.3.1’ in
       /nix/store/.../pkgs/development/libraries/acl/default.nix:40 is
       not available on the requested hostPlatform:
       hostPlatform.config = "aarch64-apple-darwin"
@hegde-atri
Copy link

this works completely fine for me (MacOS Sonoma 14.5) 👍🏼

@lopsided98 lopsided98 merged commit 6cbeea1 into lopsided98:develop Jul 20, 2024
@stevalkr stevalkr mentioned this pull request Sep 15, 2024
6 tasks
@wentasah wentasah deleted the macos-ros-core-humble branch November 18, 2024 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants