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

OSG doesn't support OSX arm64? #1202

Closed
remoe opened this issue Feb 2, 2023 · 4 comments
Closed

OSG doesn't support OSX arm64? #1202

remoe opened this issue Feb 2, 2023 · 4 comments

Comments

@remoe
Copy link
Contributor

remoe commented Feb 2, 2023

How one can build OSG for OSX arm64 (Apple Silicon) ?

SET(CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "Build architectures for OSX")

It is not supported?

@robertosfield
Copy link
Collaborator

I don't recall OSX + ARM64 being in the testing mix for the 3.6.5 so officially I'd say it's not supported. I don't there was even OSX + ARM64 hardware available back when it 3.6.5 was released.

However, I no idea if it might work. The OSG can be built on arm, but whether the OSX code paths can be coaxed to do it I can't say. You'll need to experiment with override the defaults like the CMAKE_OSX_ARCHITECTURES above to see if you can do it.

@remoe
Copy link
Contributor Author

remoe commented Feb 3, 2023

Ok, thanks. It's possible to build it with following additional settings for CMake:

-DCMAKE_OSX_ARCHITECTURES=arm64
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13

@remoe remoe closed this as completed Feb 3, 2023
@hejian01
Copy link

Hello, according to your method, I was able to compile and build successfully on an M1 chip computer, but it seems that I cannot use the new features of OpenGL 3.3 or OpenGL 4.1. I also tried setting OSG_GL3_AVAILABLE = ON, but it didn't work.Can you guide me on this? @remoe @robertosfield

@remoe
Copy link
Contributor Author

remoe commented May 25, 2023

one find some information (osgEarth) here https://docs.osgearth.org/en/latest/build.html

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

No branches or pull requests

3 participants