javacpp-presets icon indicating copy to clipboard operation
javacpp-presets copied to clipboard

Added build support for librealsense2 on Apple Silicon arm64

Open cansik opened this issue 2 years ago • 6 comments

This PR adds build support for Apple Silicon arm64 using the XCode build system as recommended here and here.

cansik avatar Sep 21 '22 13:09 cansik

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

saudet avatar Sep 21 '22 23:09 saudet

And we also need to add it to the list here: https://github.com/bytedeco/javacpp-presets/blob/master/pom.xml#L1448

saudet avatar Sep 22 '22 13:09 saudet

It's probably easier to use just the normal make to build that since we know that works.

saudet avatar Sep 23 '22 06:09 saudet

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.

cansik avatar Sep 23 '22 06:09 cansik

It looks like we'll need to build libusb from source as well?

saudet avatar Sep 23 '22 11:09 saudet

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/

saudet avatar Apr 07 '24 01:04 saudet