ofxImGui doesn't show-up on Android?

I tried to run simple codes for ofxImGui but only an empty window is opened on Android.I tried to copy-paste “example-demo”(which came with ofxImGui addon) code into “androidguiexample” named example Openframework project and still there is just an empty window when I run the app on my smartphone although it compiles without problems.

If I use ofxGui instead of ofxImGui it works without problem.

How can I solve this problem?I am using Openframeworks 0.10.0 and Android Studio and ofxImGui latest version from “master” ,under Windows 7 and trying to run the app on an Android 7 based phone.

Here is related catlog:

12-19 00:38:02.162 405-405/? E/SELinux: avc: denied { find } for service=mtk-perfservice pid=592 uid=1041 scontext=u:r:audioserver:s0 tcontext=u:object_r:mtk_perf_service:s0 tclass=service_manager permissive=0
12-19 00:38:02.165 592-1002/? E/AudioALSAPlaybackHandlerBase: openPcmDriver(), pcm_start(0xe8a83620) fail due to cannot start channel: Broken pipe
12-19 00:38:02.238 1131-1366/? E/libPerfService: write file (/proc/fliperfs/cg_threshold) fail, count: -1
12-19 00:38:02.239 592-1001/? E/AudioFlinger: getNextBuffer, track(0xe9a12080) get null buffer, mState 6, mFillingUpStatus 2
12-19 00:38:02.361 1131-13449/? E/Sensors: handleToDriver handle(0)
12-19 00:38:02.361 1131-13449/? E/Sensors: go to batchsensor(0)
12-19 00:38:02.445 8471-8487/? E/ofShader: sorry, it looks like you can’t run ‘ARB_shader_objects’
12-19 00:38:02.445 8471-8487/? E/ofShader: please check the capabilites of your graphics card: http://www.ozone3d.net/gpu_caps_viewer
12-19 00:38:02.445 8471-8487/? E/ofShader: setupShaderFromSource(): failed creating GL_FRAGMENT_SHADER shader
12-19 00:38:02.445 8471-8487/? E/ofShader: sorry, it looks like you can’t run ‘ARB_shader_objects’
12-19 00:38:02.445 8471-8487/? E/ofShader: please check the capabilites of your graphics card: http://www.ozone3d.net/gpu_caps_viewer
12-19 00:38:02.445 8471-8487/? E/ofShader: setupShaderFromSource(): failed creating GL_VERTEX_SHADER shader
12-19 00:38:02.445 8471-8487/? E/ofShader: linkProgram(): trying to link GLSL program, but no shaders created yet

If I use:

ofGLESWindowSettings settings;
settings.glesVersion = 2;
ofCreateWindow(settings);

Then errors change to:

12-19 03:55:02.915 20401-20417/? E/ofShader: setupShaderFromSource(): failed creating GL_VERTEX_SHADER shader
12-19 03:55:02.915 20401-20417/? E/ofShader: setupShaderFromSource(): failed creating GL_VERTEX_SHADER shader
12-19 03:55:02.915 20401-20417/? E/ofShader: setupShaderFromSource(): failed creating GL_VERTEX_SHADER shader
12-19 03:55:02.915 20401-20417/? E/ofShader: setupShaderFromSource(): failed creating GL_VERTEX_SHADER shader
12-19 03:55:02.916 20401-20417/? E/ofShader: setupShaderFromSource(): failed creating GL_VERTEX_SHADER shader
12-19 03:55:02.916 20401-20417/? E/ofShader: setupShaderFromSource(): failed creating GL_FRAGMENT_SHADER shader
12-19 03:55:02.916 20401-20417/? E/ofShader: setupShaderFromSource(): failed creating GL_FRAGMENT_SHADER shader
12-19 03:55:02.916 20401-20417/? E/ofShader: setupShaderFromSource(): failed creating GL_FRAGMENT_SHADER shader
12-19 03:55:02.916 20401-20417/? E/ofShader: setupShaderFromSource(): failed creating GL_FRAGMENT_SHADER shader
12-19 03:55:02.917 20401-20417/? E/ofShader: setupShaderFromSource(): failed creating GL_FRAGMENT_SHADER shader
12-19 03:55:02.917 20401-20417/? E/ofShader: setupShaderFromSource(): failed creating GL_VERTEX_SHADER shader
12-19 03:55:02.917 20401-20417/? E/ofShader: setupShaderFromSource(): failed creating GL_FRAGMENT_SHADER shader
12-19 03:55:02.917 20401-20417/? E/ofShader: bindDefaults(): trying to link GLSL program, but no shaders created yet
12-19 03:55:02.917 20401-20417/? E/ofShader: bindDefaults(): trying to link GLSL program, but no shaders created yet
12-19 03:55:02.917 20401-20417/? E/ofShader: bindDefaults(): trying to link GLSL program, but no shaders created yet
12-19 03:55:02.917 20401-20417/? E/ofShader: bindDefaults(): trying to link GLSL program, but no shaders created yet
12-19 03:55:02.917 20401-20417/? E/ofShader: bindDefaults(): trying to link GLSL program, but no shaders created yet
12-19 03:55:02.917 20401-20417/? E/ofShader: linkProgram(): trying to link GLSL program, but no shaders created yet
12-19 03:55:02.917 20401-20417/? E/ofShader: linkProgram(): trying to link GLSL program, but no shaders created yet
12-19 03:55:02.917 20401-20417/? E/ofShader: linkProgram(): trying to link GLSL program, but no shaders created yet
12-19 03:55:02.917 20401-20417/? E/ofShader: linkProgram(): trying to link GLSL program, but no shaders created yet
12-19 03:55:02.917 20401-20417/? E/ofShader: linkProgram(): trying to link GLSL program, but no shaders created yet
12-19 03:55:02.917 20401-20417/? E/ofShader: bindDefaults(): trying to link GLSL program, but no shaders created yet
12-19 03:55:02.917 20401-20417/? E/ofShader: linkProgram(): trying to link GLSL program, but no shaders created yet
12-19 03:55:02.918 20401-20417/? E/ofShader: setupShaderFromSource(): failed creating GL_VERTEX_SHADER shader
12-19 03:55:02.918 20401-20417/? E/ofShader: setupShaderFromSource(): failed creating GL_VERTEX_SHADER shader
12-19 03:55:02.919 20401-20417/? E/ofShader: setupShaderFromSource(): failed creating GL_FRAGMENT_SHADER shader
12-19 03:55:02.919 20401-20417/? E/ofShader: setupShaderFromSource(): failed creating GL_FRAGMENT_SHADER shader
12-19 03:55:02.919 20401-20417/? E/ofShader: bindDefaults(): trying to link GLSL program, but no shaders created yet
12-19 03:55:02.919 20401-20417/? E/ofShader: bindDefaults(): trying to link GLSL program, but no shaders created yet
12-19 03:55:02.919 20401-20417/? E/ofShader: linkProgram(): trying to link GLSL program, but no shaders created yet
12-19 03:55:02.919 20401-20417/? E/ofShader: linkProgram(): trying to link GLSL program, but no shaders created yet
12-19 03:55:02.947 20401-20417/? E/ofShader: setupShaderFromSource(): failed creating GL_FRAGMENT_SHADER shader
12-19 03:55:02.947 20401-20417/? E/ofShader: setupShaderFromSource(): failed creating GL_VERTEX_SHADER shader
12-19 03:55:02.947 20401-20417/? E/ofShader: linkProgram(): trying to link GLSL program, but no shaders create

After a bit more research, I noticed that shader example came with of 0.10.0 for android didn’t work too, I saw the same errors in logcat.

Then I researched more and inside “OF 0.11.0 Release” thread I saw Inceptionizta81 named user’s message about shader and android, he wrote that shaders started working on Android after Of 0.11.0 upgrade.

So I downloaded Of 0.11.0 for Android and tried, the shader example worked.Then I tried ofxImGui, it worked too, great! :slight_smile:

1 Like