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

Support for OSX on ARM (M1) #1289

Closed
Horcrux7 opened this issue Nov 29, 2020 · 6 comments · Fixed by #1546
Closed

Support for OSX on ARM (M1) #1289

Horcrux7 opened this issue Nov 29, 2020 · 6 comments · Fixed by #1546

Comments

@Horcrux7
Copy link

It will be nice if the next release of OpenJpeg can also support OSX on the ARM (M1) platform. I think the future Macs will run on ARM chips instead on Intel chips.

@rouault
Copy link
Collaborator

rouault commented Nov 29, 2020

Why wouldn't it support them ? The library is written in portable C

@Horcrux7
Copy link
Author

Horcrux7 commented Dec 1, 2020

Why wouldn't it support them ? The library is written in portable C

In the latest release I see only binaries for x86 https://github.com/uclouvain/openjpeg/releases/tag/v2.3.1

@rouault
Copy link
Collaborator

rouault commented Dec 1, 2020

In the latest release I see only binaries for x86

There are tons of potential platforms and CPU architectures. Releases include only a subset of what can work. Up to the users to build for their platform of choice.
What could potentially be done in the source code is ARM specific optimizations for the optimized code paths that exist currently for x86. Of course it will require someone to contribute this or fund someone to do so.

@gamma
Copy link

gamma commented Jun 9, 2022

Since Intel platform is going to be obsolete for macOS, it should be considered to have native Apple Silicon support right here as a release.

@Eharve14
Copy link
Contributor

Eharve14 commented Jun 9, 2022

Just to add to this, I compiled and ran this as native an M1 machine when I contributed to the project. There are known compiler issues on the M1 platform that have to be resolved before you compile: https://developer.apple.com/forums/thread/666700

@Dennis-Johnson
Copy link

Was able to compile from source using the suggested CMake method on an M1 Air.

  • MacOS version: Ventura 13.1
  • uname -v : Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103
  • xcode-select --version: xcode-select version 2396

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 a pull request may close this issue.

6 participants
@gamma @Horcrux7 @rouault @Dennis-Johnson @Eharve14 and others