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 Android #309

Open
paulocoutinhox opened this issue May 13, 2022 · 4 comments
Open

Support for Android #309

paulocoutinhox opened this issue May 13, 2022 · 4 comments
Labels
good first issue Good for newcomers samples

Comments

@paulocoutinhox
Copy link

Hi,

Im trying compile for Android, but get this error:

In file included from /Users/paulo/Developer/workspaces/cpp/nativium-rmlui/nativium/modules/game/implementation/cpp/nativium/game/ApplicationCoreImpl.cpp:10:
In file included from /Users/paulo/Developer/workspaces/cpp/nativium-rmlui/nativium/modules/game/implementation/cpp/shell/include/ShellRenderInterfaceOpenGL.h:33:
/Users/paulo/Developer/workspaces/cpp/nativium-rmlui/nativium/modules/game/implementation/cpp/shell/include/ShellOpenGL.h:44:10: fatal error: 'GL/glx.h' file not found
#include <GL/glx.h>
         ^~~~~~~~~~

Can you add support for it?

Thanks for the great project.

@mikke89 mikke89 added this to the 5.0 milestone May 13, 2022
@mikke89 mikke89 added good first issue Good for newcomers samples labels May 13, 2022
@mikke89
Copy link
Owner

mikke89 commented May 13, 2022

Hi, yeah, it shouldn't be too much trouble to add an Android backend. There are plenty of people already using the library on Android, but it would be nice to have support for the included samples.

It would be great with a contribution, maybe you could add support for this @paulocoutinhox?

In any case it would make sense to add it as a new backend in the backends branch targeting RmlUi 5.0, see #307 and the existing backends.

@paulocoutinhox
Copy link
Author

Hi,

Im trying make a sample for all platforms (including android), but the error is about opengl dependency:

In file included from /Users/paulo/Developer/workspaces/cpp/nativium-rmlui/nativium/modules/game/implementation/cpp/nativium/game/ApplicationCoreImpl.cpp:10:
In file included from /Users/paulo/Developer/workspaces/cpp/nativium-rmlui/nativium/modules/game/implementation/cpp/shell/include/ShellRenderInterfaceOpenGL.h:33:
/Users/paulo/Developer/workspaces/cpp/nativium-rmlui/nativium/modules/game/implementation/cpp/shell/include/ShellOpenGL.h:44:10: fatal error: 'GL/glx.h' file not found
#include <GL/glx.h>
         ^~~~~~~~~~

@paulocoutinhox
Copy link
Author

The most problem is with SHELL.

I think that Shell need be compatible with GLES/Vulkan/Metal/Etc.

@hero-clashes
Copy link

I was able to use Rml on android using raylib and some custom backend for the rendering and it was easy enough

@mikke89 mikke89 removed this from the 5.0 milestone Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers samples
Projects
None yet
Development

No branches or pull requests

3 participants