Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. OGLES2 shader problem for Qt5/Android app on Jolla/Sailfish

OGLES2 shader problem for Qt5/Android app on Jolla/Sailfish

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 631 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yalnte
    wrote on last edited by
    #1

    I've tried to run my Qt5 APK on a Jolla smartphone. It will install amd run but not compile the vertex and fragment shaders.

    My app uses Qt5.2.1 & OGLES2 and is compiled for Android 4.4.2.

    I'm compiling the shaders from embedded strings to work around issues finding files on the system. This approach works on the Nexus 7.

    My code is :

    @#ifdef LCD_BUILD_ANDROID
    myCode = "precision mediump int; precision mediump float; uniform sampler2D texture; varying vec2 v_texcoord; varying mediump vec4 color; void main(){ gl_FragColor = color; }";
    if (!fragShd->compileSourceCode(myCode)){
    QMessageBox::warning(this,QString("OpenGL Warning"),QString("Could not compile fragment shader [hardcoded]"),QMessageBox::Ok);
    }
    #else
    if (!fragShd->compileSourceFile(myPath)){
    QMessageBox::warning(this,QString("OpenGL Warning"),QString("Could not compile fragment shader ")+QString(myPath),QMessageBox::Ok);
    }
    #endif
    @

    Does anyone know how I can solve this please?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved