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

Build for macOS? #1

Open
CarterLi opened this issue Jul 28, 2024 · 6 comments
Open

Build for macOS? #1

CarterLi opened this issue Jul 28, 2024 · 6 comments

Comments

@CarterLi
Copy link

No description provided.

@mmozeiko
Copy link
Owner

I don't have mac hardware, so I have no way of creating it and making sure it works.

@CarterLi
Copy link
Author

I have a mac hardware. I can make sure it works if you make it.

@Destructor17
Copy link

Destructor17 commented Sep 3, 2024

I have a need to build angle for multiple platforms, so i made https://github.com/webrogue-runtime/angle-builder. And it has macos support. I made it only for my own project, so it may change significantly in future. But feel free to use my code in this repo.

@CarterLi, note that my build scripts can run locally too, so you can build angle by your own

@CarterLi
Copy link
Author

CarterLi commented Sep 3, 2024

@Destructor17 Can you bundle the C header files into the artifacts?

@Destructor17
Copy link

Destructor17 commented Sep 3, 2024

@CarterLi I am using Angle to load GLES implementation dynamically from SDL (SDL_GL_LoadLibrary routine). It needs no Angle headers, and I just don't know how to use Angle in other way. If you are sure that it is possible to link an app and Angle, then I will try it in distant future, but, as mentioned previously, my repo is unstable(may change in future) and is made for single project purposes only, so I guess you are better just to get these headres from a Google's repo.

@CarterLi
Copy link
Author

CarterLi commented Sep 4, 2024

I just don't know how to use Angle in other way.

ANGLE is an EGL implementation that translates OpenGL API calls to the native graphic API calls (D3D, Metal, Vulkan, etc). You just use it as if you use EGL.

I used the C headers provided by https://github.com/mmozeiko/build-angle/releases/tag/2024-09-01 and succeeded in acquiring the EGL version

[
  {
    "type": "OpenGL",
    "result": {
      "version": "OpenGL ES 1.1.0 (ANGLE 2.1.23798 git hash: 177d15b3807b)",
      "renderer": "ANGLE (Apple, ANGLE Metal Renderer: Apple M1 Pro, Version 14.6.1 (Build 23G93))",
      "vendor": "Google Inc. (Apple)",
      "slv": "OpenGL ES GLSL ES 1.10 (ANGLE 2.1.23798 git hash: 177d15b3807b)",
      "library": "EGL 1.5 (ANGLE 2.1.23798 git hash: 177d15b3807b)"
    }
  }
]

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