-
Notifications
You must be signed in to change notification settings - Fork 22
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
Mac M1 arm64 support #4
Comments
It should be possible to compile the PhysX code for M1 (see e.g. this issue for the original PhysX code). Unfortunately I don't have an M1 Mac so it's a bit difficult for me to test and, unfortunately, I'm a bit busy lately so I'm not sure when / if I'm able to do that in the near future. You might be able to adopt the commit, linked in the issue, and compile physx-jni for arm64 yourself. |
Hello, if you are interested on my work trying to port to the M1 architecture I built the repo physx-jni for macos-arm64 and linked the native to kool project.
So I replaced to #version 330 for testing purposes with hope that is the same syntax than 300 es. Now I get no errors. Except the last one which stuck me, maybe you can help me.
Full logs here: https://pastebin.com/7YSgE4hq |
Hmm, you usually get the "no context is current" error message when a gl function is called from a different thread than the one that was used to initialize OpenGL. However, there's the second part of the message saying that a functions is not available and I assume that is the case here. You mentioned that you use OpenGL core up to version 4.1 but the function which is used here is actually OpenGL 4.3 (org.lwjgl.opengl.GL43.glCopyImageSubData). It should be possible to replace |
Ok thank you for your comment. I switched all the GL43 calls (OffscreenPass2dGl/OffscreenPassCubeGl with GL_TEXTURE_CUBE_MAP instead)
AND
Now I get no more errors in the console, and the screen is like that for all demos So I think for the moment there is no possibilities for me to find a way since I don't know what to check. Thank you very much for your game engine |
As OpenGL has been deprecated by Apple I tested with Vulkan with some of the tweakings I explained above. Almost all demos doesn't work because of this error:
But luckily ksl-test works great ! 120 FPS on a Macbook Pro M1 I replaced |
Good to know! The Vulkan backend is pretty experimental and definitely needs some more work... But cool that it works at least a little on M1 |
@Protoxy22 I just pushed a small update to the Vulkan backend which should fix the IndexOutOfBoundsException |
Hello, I would like to setup a development environment with kool on my M1 Macbook.
I started to change the lwjgl version from 3.2.4 to 3.3.0 which is compatible with arm64 architectures.
In Dependencies.kt -> lwjglVersion = 3.3.0-SNAPSHOT
And I select the good natives in it natives-macos-arm64.
Note: Add this repository url (https://oss.sonatype.org/content/repositories/snapshots)
I am now looking for physx-jni, to be able to build arm natives, but there is lot of stuff on the cmake.
Is it possible for you to do add the compiling process for arm64 architectures on mac ?
If you don't have a macos arm64, I can build it for you on XCode or look for the Github Workflow.
Thanks in advance !
And great work here.
The text was updated successfully, but these errors were encountered: