RmlUi icon indicating copy to clipboard operation
RmlUi copied to clipboard

Support for Android

Open paulocoutinhox opened this issue 2 years ago • 4 comments

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.

paulocoutinhox avatar May 13 '22 06:05 paulocoutinhox

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.

mikke89 avatar May 13 '22 09:05 mikke89

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 avatar May 13 '22 15:05 paulocoutinhox

The most problem is with SHELL.

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

paulocoutinhox avatar May 13 '22 15:05 paulocoutinhox

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

hero-clashes avatar Nov 03 '22 20:11 hero-clashes