Hi guys,
since several days I’m trying to run a Qt OpenGL application on my Beaglebone Black.
I’ve installed the official Debian image (from Latest Software Images - BeagleBoard) on the micro sd (not emmc) and compiled and installed the 3.12 kernel from Robert C Nelson’s linux-dev git repository.
Then I ran the sgx-build-modules.sh script, which was also provided in Robert’s repository and copied it to the BBB, ran the install scripts for pvrsrv etc. (After changing this line https://github.com/RobertCNelson/linux-dev/blob/am33x-v3.12/sgx_build_modules.sh#L272 from “no” to “yes”) the graphics sdk examples ran properly (evilskull, etc.).
Now I’ve downloaded qt-4.8.6 and configured it with the correct mkspecs and this configure directive:
./configure -v -opensource -confirm-license -prefix /opt/qt -embedded arm -platform qws/linux-x86-g++ -xplatform qws/linux-am335x-g++ -depths 16,24,32 -no-mmx -no-3dnow -no-sse -no-sse2 -no-ssse3 -no-glib -no-cups -no-largefile -no-accessibility -no-openssl -no-gtkstyle -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -fast -little-endian -host-big-endian -no-pch -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-webkit -no-qt3support -nomake examples -nomake demos -nomake docs -nomake translations -qt-mouse-tslib -opengl es2 -plugin-gfx-powervr -D QT_NO_QWS_CURSOR -D QT_QWS_CLIENTBLIT
I used the same compiler which was downloaded with the kernel building script (gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux). Everything configured and maked successfully. Then I copied the neccessary files (libs, plugins, examples) to the BBB.
But now the problems begin. When I want to run the hellogl_es example, it says “can’t create surface”:
debian@beaglebone:/opt/qt/examples/opengl/hellogl_es2$ sudo ./hellogl_es2 -qws -display powervr
QEglContext::createSurface(): Unable to create EGL surface, error = 0x300b
The program starts but only shows a completely green opengl surface (still, the graphics sdk examples run properly). I tried it with running and stopped lightdm, everytime I get the same error.
I think it’s a very simple step to get Qt OpenGL working, but I’ve tried everything without success. Maybe I’ve missed only a patch which isn’t currently in the linux-dev repository or anything?
Many thanks in advance!
Greetings,
Marcel
Here some additional information: