vectorgrp / sil-kit

Vector SIL Kit – Open-Source Library for Connecting Software-in-the-Loop Environments
https://vectorgrp.github.io/sil-kit-docs
MIT License
107 stars 32 forks source link

Support for Mac OS #117

Closed raychenv closed 1 month ago

raychenv commented 2 months ago

Do you have plan to support Mac OS? so development and test of silkit can also be made on Mac OS.

I tried to compile sil-kit (v4.0.52) on Mac OS v14.4(clang version 15.0.0). It works. But I need fix some compilation issues in files:

I ran SilKitDemoCan binary generated, the result is as expected:

[2024-09-19 13:37:13.299] [CanReader] [info] >> CAN frame: canId=3 timestamp=0s "CAN 0" now=0.005s, duration=0.005s [2024-09-19 13:37:14.305] [CanReader] [info] >> CAN frame: canId=3 timestamp=0.005s "CAN 1" now=0.01s, duration=0.005s ..... [2024-09-19 13:37:13.299] [CanReader] [info] >> CAN frame: canId=3 timestamp=0s "CAN 0" now=0.005s, duration=0.005s [2024-09-19 13:37:14.305] [CanReader] [info] >> CAN frame: canId=3 timestamp=0.005s "CAN 1" now=0.01s, duration=0.005s

MariusBgm commented 2 months ago

Hi @raychenv , thanks for reaching out and notifying us about the state of macOs. We definitely support macOs, but it's currently not part of the continuous testing environment. We manually test it, but the latest changes in the files you mentioned uses non-portable linux-isms.

I created an internal issue to track and improve this.

raychenv commented 2 months ago

@MariusBgm, thanks for the clarification and for opening an internal issue to track this. Looking forward to the improvements.