Qt with SGX working?

Did anyone managed to compile Qt (any version) with SGX working?
I tried million combinations. Not a single one worked.
There are 100s of "solutions" on internet. Not a single one is
working.

I have this installed:
Ubuntu Oneiric
Kernel v3.0.8-x3 (known that is working with sgx)
SGX installed using create_sgx_package.sh and following procedure.

SGX demos are working perfectly.
Compiled Qt 4.6 using same headers and libraries as given by
create_sgx_package.sh
To compile used patch which adds support for arm target and command ./
configure_omap3

Edited /etc/powervr.ini:
[default]
WindowSystem=libpvrQWSWSEGL.so

Executed:
sudo /etc/init.d/pvr restart

I run:
export QT_DEBUG__PLUGINS=1
./hellogl_es2 -qws -diplay powervr > ~/work/debug.txt 2>&1

After execution:
Green area in helogl_es2 instead of animation. I need to reboot to
restore display on HDMI. Minicom access is working.

Content of debug.txt:
QFactoryLoader::QFactoryLoader() looking at "/opt/qt-embedded/plugins/
gfxdrivers/
libqgfxpvregl.so"
keys
("powervr")
QFactoryLoader::QFactoryLoader() looking at "/opt/qt-embedded/plugins/
mousedrivers/
libqpcmousedriver.so"
keys ("Auto", "IntelliMouse", "Microsoft", "MouseSystems",
"MouseMan")
Cannot open input device '/dev/tty0': Permission
denied
QEglContext::createSurface(): Unable to create EGL surface, error =
0x300b
QGLContext::makeCurrent(): Cannot make invalid context
current
QEglContext::createSurface(): Unable to create EGL surface, error =
0x300b
QFactoryLoader::QFactoryLoader() looking at "/opt/qt-embedded/plugins/
iconengines/
libqsvgicon.so"
keys ("svg", "svgz",
"svg.gz")

Even tried to use patch for 4.6 which should help with error 0x300b.
No success

Any idea about solving this?

I'm willing to accept solution which uses any version of Ubuntu, Qt or
GX drivers :slight_smile:

Additionally when sing FRONT mode SGX tests are working, but not in
FLIP mode.

Finally managed to compile and SGX is working perfectly with
hellogl_es2.
I used
Robert's libraries, ES3.0
qt4.7.4
qt_wsegl_1.6.tar.gz patch (that was actually a problem, i aptched qt
but compiler used headers from SGX SDK so i had to make it use these
files)
Omap3_qt46_config.patch.gz
configured with configure_omap3 (previosly edited and setup)

Other is standard... toolchain 2011.03, Ubuntu oneiric, used kernel
3.0.8-x3 which is working for sure.

Hi,

Can you describe a bit more on compiling QT to work with the SGX?
Please provide the link to the 2 patches that you mentioned below.

Thanks.

James Ang.

Qt related patches for SGX for different versions are at,

https://github.com/prabindh/qt-configs