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
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 631 Views 1 Watching
  • 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 6 Apr 2014, 20:53 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

    1/1

    6 Apr 2014, 20:53

    • Login

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