Skip to content

Conversation

@TayebAlsh
Copy link
Contributor

  • Add ros-humble-mavlink.osx.patch to fix macOS endian function compatibility

  • Move mavlink/mavros from Linux-only section to not wasm32 and not win section in vinca.yaml

  • Add build_number entries to trigger rebuilds

    Details

  • macOS's <machine/endian.h> doesn't define the htole16, htole32, htole64, le16toh, le32toh, le64toh functions that Linux provides via <endian.h>. The patch includes <libkern/OSByteOrder.h> and defines macros mapping to the macOS equivalents (OSSwapHostToLittleInt* and OSSwapLittleToHostInt*).

Tested:

  • Built mavlink on osx-arm64
  • Built libmavconn on osx-arm64
  • Built mavros-msgs on osx-arm64
  • Built mavros on osx-arm64

- Add ros-humble-mavlink.osx.patch to fix macOS endian function
  compatibility. macOS's <machine/endian.h> doesn't define htole16/le16toh
  etc., so we include <libkern/OSByteOrder.h> and define macros mapping
  to OSSwapHostToLittleInt* and OSSwapLittleToHostInt* functions.

- Move mavlink and mavros from Linux-only section to the
  "not wasm32 and not win" section in vinca.yaml to enable
  building on macOS.

- Add build_number: 14 for mavlink, libmavconn, mavros_msgs
  to trigger rebuilds.

Tested successfully on osx-arm64: mavlink, libmavconn, mavros-msgs,
and mavros all build without errors.
Copy link
Contributor

@Tobias-Fischer Tobias-Fischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Tobias-Fischer Tobias-Fischer merged commit 8d42564 into RoboStack:main Jan 17, 2026
6 checks passed
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.

2 participants