-
Notifications
You must be signed in to change notification settings - Fork 2.3k
HarmonyOS/OpenHarmony Port #13152
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
base: main
Are you sure you want to change the base?
HarmonyOS/OpenHarmony Port #13152
Conversation
@slouken Request for review |
Can you please rebase on top of current master and remove all commits which you did not author? git fetch https://github.com/libsdl-org/SDL main
git rebase -i FETCH_HEAD
<remove all commits which you did not author. In vim, "dd" removes the current line, "<ESC>:wq" saves and exits)>
git push [email protected]:Jack253-png/SDL HEAD:OpenMinecraft-Dev -f |
Seeing you implemented vulkan support, does SDL_gpu work? Do the SDL_gpu_examples work? |
I will test later, because I don't have test platform, I need to find other people to do this. |
Sorry, for now the official emulator only supports opengles2, so the vulkan/gles3 test cases couldn't pass |
Can you enable tests in CI, so we can see what's passing? |
Unfortunately, it's hard to download emulator in CI (it's terrible internet speed), The opengles2 demo is included, but it's hard for you and other developers outside China to build it. |
It just crashes with vulkan error -6, it must be tested through the real Huawei phones or tablets |
Do you intend to test it on hardware soon? |
But I don't have any real machines, it's sooooooo expensive |
Is there anyone with a real Huawei device that can work with you to run tests and validate functionality? |
No, but harmonyos has its strange non-standard apis, the tests may likely fail. Although I have tested opengles2 through a simple triangle demo, the renderer still refused to work because of shader compilation issues. I can't solve the problem by myself. |
If you’re still early in development, you can continue to work in this branch until you’re ready. Just mark it draft and feel free to continue iterating. |
I noticed you added a x86-64 OpenHarmony ci job. Perhaps it is possible to run it on ordinary Intel/AMD hardware? |
The official emulator on Windows is x86-64, but the emulator is impossible to embed into the CI testing, it requires a China Huawei account, perhaps I need to find an OpenHarmony emulator for testing. HarmonyOS and OpenHarmony is just like Google Android and AOSP |
But the OpenHarmony is hard to compile, this CI testing maybe impossible if Huawei official developers doesn't notice this library |
There is an OpenHarmony-based emulator for global developers in English from European derivative called Oniro that works with QEMU environment, you can check it out: https://docs.oniroproject.org/device-development/developer-boards/emulator/ |
Don't worry I already communicated this with Huawei engineers via Oniro matrix channel |
Or you can try the current wrapper app, I wrote a opengles2 triangle demo, you could run it |
perfect! I will test it and keep you updated on it. I want to make sure if you wrote it within SDL or SDL ohos shell itself so I can test it on DevEco Studio with the QEMU Oniro emulator? |
Huawei offers a cloud debugging service for Chinese developers with a free daily quota of 300 minutes, you can refer to this document to test it on a real machine. |
I have already synced it. You can run the one in the SDL repo directly |
ah great! |
I done it! Tested it and it runs successfully without any code/runtime errors |
You could try to port the audio subsystem, I am not familiar with it |
oh ok, I will research on hooking the audio subsystem of OpenHarmony/HarmonyOS with SDL and test it |
Open PR if you have done it |
Any progress? |
Have you succeed in porting audio subsystem? |
Description
SDL support for harmonyos
Existing Issue(s)
#9837