javacpp-presets
javacpp-presets copied to clipboard
Added build support for librealsense2 on Apple Silicon arm64
This PR adds build support for Apple Silicon arm64 using the XCode build system as recommended here and here.
Looks good, but we'll also need to update the workflow file for GitHub Actions to get this tested: https://github.com/bytedeco/javacpp-presets/blob/master/.github/workflows/librealsense2.yml As well as the platform/pom.xml file: https://github.com/bytedeco/javacpp-presets/blob/master/librealsense2/platform/pom.xml
And we also need to add it to the list here: https://github.com/bytedeco/javacpp-presets/blob/master/pom.xml#L1448
It's probably easier to use just the normal make to build that since we know that works.
The standard make command did not work on my system, even for the python library. Others are working with XCode as well because of that.
Intel dropped MacOS suppport lately, so it could be related to that.
But let's try it on the Github Actions environment. I am going to adapt it.
It looks like we'll need to build libusb from source as well?
Looks like GitHub Actions now has free M1 runners. Want to give this a try again with that? https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/