Digging into the actual root cause, QOpenGLES3Helper has QLibrary load
"libGLESv2.so" but this is failing. Using LD_DEBUG=libs you can see:

      5646:     find library=libGLESv2.so [0]; searching
      5646:      search path=/vendor/lib:/system/lib            
(LD_LIBRARY_PATH)
      5646:       trying file=/vendor/lib/libGLESv2.so
      5646:       trying file=/system/lib/libGLESv2.so
      5646:      search cache=/etc/ld.so.cache
      5646:      search 
path=/lib/arm-linux-gnueabihf:/usr/lib/arm-linux-gnueabihf/vfp:/usr/lib/arm-linux-gnueabihf:/lib/tls/v7l/neon/vfp:/lib/tls/v7l/neon:/lib/tls/v7l/vfp:/lib/tls/v7l:/lib/tls/neon/vfp:/lib/tls/neon:/lib/tls/vfp:/lib/tls:/lib/v7l/neon/vfp:/lib/v7l/neon:/lib/v7l/vfp:/lib/v7l:/lib/neon/vfp:/lib/neon:/lib/vfp:/lib:/usr/lib/tls/v7l/neon/vfp:/usr/lib/tls/v7l/neon:/usr/lib/tls/v7l/vfp:/usr/lib/tls/v7l:/usr/lib/tls/neon/vfp:/usr/lib/tls/neon:/usr/lib/tls/vfp:/usr/lib/tls:/usr/lib/v7l/neon/vfp:/usr/lib/v7l/neon:/usr/lib/v7l/vfp:/usr/lib/v7l:/usr/lib/neon/vfp:/usr/lib/neon:/usr/lib/vfp:/usr/lib
             (system search path)
and off it goes searching all those paths.

Problem is the library is actually called libGLESv2.so.2 on hybris. Qt
isn't able to locate the file as a result. I don't know if the library
should be called libGLESv2.so only for GLESv3, but if so, it would
explain a lot.

For fun, I symlinked libGLESv2.so.2 to libGLESv2.so, for which I got this error:
"OpenGL ES 3.0 entry points not found"
which makes sense as hybris is only exporting GLESv2 symbols, and nothing from 
GLESv3 yet.

So my patch above is actually the best solution until hybris supports
GLESv3.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to qtubuntu in Ubuntu.
https://bugs.launchpad.net/bugs/1594198

Title:
  Terminal app crashes with "Failed to load libGLESv2"

Status in Canonical System Image:
  Fix Committed
Status in qtubuntu package in Ubuntu:
  Fix Released

Bug description:
  Most likely due to [1] (checking), terminal app crashes on startup,
  printing:

  > Failed to load libGLESv2

  An example OOPS can be seen under [2].

  [1] 
https://code.launchpad.net/~gerboland/qtubuntu/adopt-more-eglconvenience2/+merge/295248
  [2] https://errors.ubuntu.com/oops/020da136-3673-11e6-9055-fa163eec78fa

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: qtubuntu-android 0.62+15.04.20160527.1-0ubuntu1
  Uname: Linux 3.10.100-user-01767-gf5aa556-dirty aarch64
  ApportVersion: 2.17.2-0ubuntu1.3touch1
  Architecture: armhf
  Date: Mon Jun 20 01:05:39 2016
  InstallationDate: Installed on 2016-06-18 (1 days ago)
  InstallationMedia: Ubuntu 15.04 - armhf (20160618-020304)
  SourcePackage: qtubuntu
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1594198/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to