This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Qt + opengl problem: QEglContext::createSurface(): Unable to create EGL surface, error = 0x300b

Other Parts Discussed in Thread: AM3894

Hi,

I'm using an AM3894 board and i'm having problems in configuring QT embedded version 4.7.1 with OpenGL enabled.

I followed your guide to integrate SGX accelerated Qt (http://processors.wiki.ti.com/index.php/Building_Qt_with_OpenGL_ES_accelerated_by_SGX) and i've already used the patch suggested in this post: http://e2e.ti.com/support/dsp/omap_applications_processors/f/447/p/101221/355122.aspx#355122 , but i still have the same error when i try to execute opengl demos, for example:

(nb: QT_DEBUG_PLUGINS=1)

root@dm816x-evm:/opt/QT/examples/opengl/hellogl_es2# ./hellogl_es2 -qws -display powervr
QFactoryLoader::QFactoryLoader() looking at "/opt/QT/plugins/gfxdrivers/libqgfxpvregl.so"
keys ("powervr")
QFactoryLoader::QFactoryLoader() looking at "/opt/QT/plugins/mousedrivers/libqlinuxtpmousedriver.so"
keys ("LinuxTP")
QFactoryLoader::QFactoryLoader() looking at "/opt/QT/plugins/mousedrivers/libqpcmousedriver.so"
keys ("Auto", "IntelliMouse", "Microsoft", "MouseSystems", "MouseMan")
QEglContext::createSurface(): Unable to create EGL surface, error = 0x300b

Let me describe which is my system:

- host machine Ubuntu 10.04;

- ezsdk 5_01_01_80;

- kernel 2.6.37;

- TI Graphics drivers (1.6.16.3977 drivers from Graphics_SDK_4_03_00_02);

- Qt 4.7.1

- CodeSourcery for ARM/GNU Linux 2009;

These are the steps i've done to configure my system:

- downloaded and extracted Qt 4.7.1 on my host;

- downloaded the tarball http://processors.wiki.ti.com/images/7/76/Linux-TIarmv7-sgx-g%2B%2B.tar.gz and extracted into /mkspecs/qws, modified qmake.conf with my paths of graphics_SDK and codesourcery.

- applied the patch https://gforge.ti.com/gf/download/docmanfileversion/263/4451/wsegl_pvr2d_1.6.3977.tar.gz;

- cross compiled Qt Embedded 4.7.1 (with gcc 4.4.3) in this way:

./configure -prefix /opt/QT -embedded arm -platform qws/linux-x86-g++ -xplatform qws/linux-TIarmv7-sgx-g++ -depths 16,24,32 -opensource -confirm-license
-no-mmx -no-3dnow -no-sse -no-sse2 -no-glib -no-cups -no-largefile -no-accessibility -no-openssl -no-gtkstyle -qt-mouse-pc -no-mouse-tslib -qt-mouse-linuxtp
-qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -fast -opengl es2 -openvg -qt-gfx-transformed -qt-gfx-vnc -qt-gfx-linuxfb -qt-gfx-multiscreen
-plugin-gfx-powervr -D QT_QWS_CLIENTBLIT -v

make, make install INSTALL_ROOT=/home/katia/targetfs

- export in the target LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/opt/QT/lib

- edited the file /etc/powervr.ini like this: [default] WindowSystem=libpvrQWSWSEGL.so

The other demos (without opengl support) works fine; but for example when i execute the demo affine and i click the button "Use OpenGL" i obtain these errors:

QGLContext::makeCurrent(): Cannot make invalid context current
QGLShader: could not create shader
Warning: "" failed to compile!

I've attached some tests i've done, if they could help.

Thank you everybody in advance.

Katia