Is there an OpenGL example can work correctly on Android?



  • I have tried all OpenGL examples on Qt 5.1 or 5.2 Beta and found no example can work correctly.

    For Example,

    Project: hellogl_es2
    Environment: Windows 7, Qt 5.2 Beta, Android target SDK 18, Moto Xoom Android 4.1.2

    I only see a black screen on the tablet after successful deployment and then quit automatically.

    Application Output:
    @Starting remote process.D/dalvikvm( 3088): Trying to load lib /data/data/org.qtproject.example.hellogl_es2/lib/libgnustl_shared.so 0x4267f6b8
    D/dalvikvm( 3088): Added shared lib /data/data/org.qtproject.example.hellogl_es2/lib/libgnustl_shared.so 0x4267f6b8
    D/dalvikvm( 3088): No JNI_OnLoad found in /data/data/org.qtproject.example.hellogl_es2/lib/libgnustl_shared.so 0x4267f6b8, skipping init
    D/dalvikvm( 3088): Trying to load lib /data/data/org.qtproject.example.hellogl_es2/lib/libQt5Core.so 0x4267f6b8
    D/dalvikvm( 3088): Added shared lib /data/data/org.qtproject.example.hellogl_es2/lib/libQt5Core.so 0x4267f6b8
    D/dalvikvm( 3088): Trying to load lib /data/data/org.qtproject.example.hellogl_es2/lib/libQt5Gui.so 0x4267f6b8
    D/dalvikvm( 3088): Added shared lib /data/data/org.qtproject.example.hellogl_es2/lib/libQt5Gui.so 0x4267f6b8
    D/dalvikvm( 3088): No JNI_OnLoad found in /data/data/org.qtproject.example.hellogl_es2/lib/libQt5Gui.so 0x4267f6b8, skipping init
    D/dalvikvm( 3088): Trying to load lib /data/data/org.qtproject.example.hellogl_es2/lib/libQt5Widgets.so 0x4267f6b8
    D/dalvikvm( 3088): Added shared lib /data/data/org.qtproject.example.hellogl_es2/lib/libQt5Widgets.so 0x4267f6b8
    D/dalvikvm( 3088): No JNI_OnLoad found in /data/data/org.qtproject.example.hellogl_es2/lib/libQt5Widgets.so 0x4267f6b8, skipping init
    D/dalvikvm( 3088): Trying to load lib /data/data/org.qtproject.example.hellogl_es2/lib/libQt5OpenGL.so 0x4267f6b8
    D/dalvikvm( 3088): Added shared lib /data/data/org.qtproject.example.hellogl_es2/lib/libQt5OpenGL.so 0x4267f6b8
    D/dalvikvm( 3088): No JNI_OnLoad found in /data/data/org.qtproject.example.hellogl_es2/lib/libQt5OpenGL.so 0x4267f6b8, skipping init
    D/dalvikvm( 3088): Trying to load lib /data/data/org.qtproject.example.hellogl_es2/lib/libQt5Svg.so 0x4267f6b8
    D/dalvikvm( 3088): Added shared lib /data/data/org.qtproject.example.hellogl_es2/lib/libQt5Svg.so 0x4267f6b8
    D/dalvikvm( 3088): No JNI_OnLoad found in /data/data/org.qtproject.example.hellogl_es2/lib/libQt5Svg.so 0x4267f6b8, skipping init
    D/dalvikvm( 3088): Trying to load lib /data/data/org.qtproject.example.hellogl_es2/lib/libQt5Xml.so 0x4267f6b8
    D/dalvikvm( 3088): Added shared lib /data/data/org.qtproject.example.hellogl_es2/lib/libQt5Xml.so 0x4267f6b8
    D/dalvikvm( 3088): No JNI_OnLoad found in /data/data/org.qtproject.example.hellogl_es2/lib/libQt5Xml.so 0x4267f6b8, skipping init
    D/dalvikvm( 3088): Trying to load lib /data/data/org.qtproject.example.hellogl_es2/plugins/platforms/android/libqtforandroidGL.so 0x4267f6b8
    D/dalvikvm( 3088): Added shared lib /data/data/org.qtproject.example.hellogl_es2/plugins/platforms/android/libqtforandroidGL.so 0x4267f6b8
    I/Qt ( 3088): qt start
    D/dalvikvm( 3088): Trying to load lib /data/data/org.qtproject.example.hellogl_es2/lib/libhellogl_es2.so 0x4267f6b8
    D/dalvikvm( 3088): Added shared lib /data/data/org.qtproject.example.hellogl_es2/lib/libhellogl_es2.so 0x4267f6b8
    D/dalvikvm( 3088): No JNI_OnLoad found in /data/data/org.qtproject.example.hellogl_es2/lib/libhellogl_es2.so 0x4267f6b8, skipping init
    D/libEGL ( 3088): loaded /system/lib/egl/libEGL_tegra.so
    D/libEGL ( 3088): loaded /system/lib/egl/libGLESv1_CM_tegra.so
    D/libEGL ( 3088): loaded /system/lib/egl/libGLESv2_tegra.so
    W/QtA11y ( 3088): Could not activate platform accessibility.
    W/QtA11y ( 3088): Could not activate platform accessibility.
    W/dalvikvm( 3088): dvmFindClassByName rejecting 'org/qtproject/qt5/android/QtNativeInputConnection'
    W/dalvikvm( 3088): dvmFindClassByName rejecting 'org/qtproject/qt5/android/QtExtractedText'
    W/Qt ( 3088): kernel\qplatformwindow.cpp:300 (virtual void QPlatformWindow::propagateSizeHints()): This plugin does not support propagateSizeHints()
    W/Qt ( 3088): kernel\qplatformwindow.cpp:261 (virtual void QPlatformWindow::setParent(const QPlatformWindow*)): This plugin does not support setParent!
    W/Qt ( 3088): kernel\qplatformwindow.cpp:261 (virtual void QPlatformWindow::setParent(const QPlatformWindow*)): This plugin does not support setParent!
    W/Qt ( 3088): kernel\qplatformwindow.cpp:300 (virtual void QPlatformWindow::propagateSizeHints()): This plugin does not support propagateSizeHints()

    'org.qtproject.example.hellogl_es2' died@

    The article "Qt for Android examples status":http://qt-project.org/wiki/Qt_for_Android_examples_status says the status of examples cube and hellogl_es2 are OK. So please tell me how to make them work on Android Devices.



  • I eventually found one - "Scene Graph - OpenGL Under QML":http://qt-project.org/doc/qt-5/qtquick-scenegraph-openglunderqml-example.html.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.