Building Qt-Applications for BeagleBoard

Hi,

I want to make applications for beagleboard with Qt-embedded.

I have:

1.Angstrom console-image on the beagleboard
2. installed qt-embedded with "opkg install qt-embedded"
3. when i start "qt-demo -qws" it works fine!
4. then i downloaded the qt-embedded file from Qt
5. i changed the qmake file for my toolchain
6. and used "./configure -embedded arm -xplatform qws/linux-arm-g++ -
qt-gfx-linuxfb -qt-gfx-transformed -nomake examples -nomake demos"
to compile it. --> it compiles with no problems!
7. Then i write a simple hello world application and transfered it to
the beagleboard
8. when i start "./hello -qws" it shows me something like "X-Server
not found"

what have i done wrong?

Regards

Michael

Is nobody using qt for BeagleBoard?
When not?
What i should use for graphical application on framebuffer? Clutter?

Regards

Michael

Is nobody using qt for BeagleBoard?
When not?

there is. i am using it.

What i should use for graphical application on framebuffer? Clutter?

i think qt is fine.

I'm using Qt on BeagleBoard.

Start from here:
http://groups.google.com/group/beagleboard/browse_thread/thread/06354a2c618365d6/5fb6ba77850ba65b?lnk=raot&pli=1

You can use Clutter too for your graphical application.

Regards,
Amit Pundir

Hi,

I want to make applications for beagleboard with Qt-embedded.

I have:

1.Angstrom console-image on the beagleboard
2. installed qt-embedded with "opkg install qt-embedded"
3. when i start "qt-demo -qws" it works fine!
4. then i downloaded the qt-embedded file from Qt
5. i changed the qmake file for my toolchain
6. and used "./configure -embedded arm -xplatform qws/linux-arm-g++ -
qt-gfx-linuxfb -qt-gfx-transformed -nomake examples -nomake demos"
to compile it. --> it compiles with no problems!
7. Then i write a simple hello world application and transfered it to
the beagleboard
8. when i start "./hello -qws" it shows me something like "X-Server
not found"

what have i done wrong?

Try to use 'meta-toolchain-qte' found in .dev branch. It works for me.

Hi,

We are developing software using Qt on Beagle for several of our customers.
Although they will probably not use the actual beagleboard for their volume
shipments, it makes a good development platform while they complete their
hardware design.

Mark

In the thread below, please consider the following change:

(6) Create/modify /etc/powervr.ini and not powerver.ini to include the lines below:

[default]
WindowSystem=libpvrQWSWSEGL.so

It seems that with the qt-e, the hellogl_es demo works for GLES1.1 and 2.0, but applications using QGLWidget like 2dpainting found under examples/opengl [http://doc.trolltech.com/4.4/opengl-2dpainting.html] does not work and throws an error.

Please let me know if anybody got it working.

Also, did anyone try out the openvg extension included in latest qt-e 4.6 [http://labs.trolltech.com/blogs/2009/06/24/openvg-support-in-qt-46/]

Regards,
Varun Shah

Hello,

Did anyone get the qt4-x11 applications for opengles 2.0 like hello_gles working on Beagleboard? If so can you please list the steps?

Regards,
Varun

It seems that with the qt-e, the hellogl_es demo works for GLES1.1 and 2.0, but applications using QGLWidget like 2dpainting found under examples/opengl [http://doc.trolltech.com/4.4/opengl-2dpainting.html\] does not work and throws an error.

Please let me know if anybody got it working.

I have not tried to run it but will let you know if it works.

Also, did anyone try out the openvg extension included in latest qt-e 4.6 [http://labs.trolltech.com/blogs/2009/06/24/openvg-support-in-qt-46/\]

I tried to run openvg example (qt/examples/openvg/star) on Beagle but
it failed because we need an updated or a separate screen driver
plugin for PVR OpenVG implementation. Also -graphicssystem switch
doesn't work for QWS.

Regards,
Amit Pundir

Hello Amit,
I am trying to build QT libraries with OpenVG support for beagleboard.
I am using the following configure options:
./configure -prefix /opt/qt-embedded/ -embedded arm -little-endian -
fast -D QT_NO_QWS_CURSOR -D QT_QWS_CLIENTBLIT -depths 16,24,32 -
xplatform qws/linux-omap3-g++ -arch arm -no-xinerama -no-xkb -openvg -
plugin-gfx-powervr -qt-mouse-pc -no-openssl -no-cups -no-phonon -no-
largefile -no-qt3support -no-xmlpatterns -no-webkit -no-stl

But getting the following error:
                 from pvreglscreenplugin.cpp:42:
/home/omap3/OMAP35x_Graphics_SDK_new/GFX_Linux_SDK/OVG/SDKPackage/
Builds/OVG/Include/GLES/egl.h:186: error: expected initializer before
'eglGetError'
/home/omap3/OMAP35x_Graphics_SDK_new/GFX_Linux_SDK/OVG/SDKPackage/
Builds/OVG/Include/GLES/egl.h:188: error: expected initializer before
'eglGetDisplay'
/home/omap3/OMAP35x_Graphics_SDK_new/GFX_Linux_SDK/OVG/SDKPackage/
Builds/OVG/Include/GLES/egl.h:189: error: expected initializer before
'eglInitialize'
/home/omap3/OMAP35x_Graphics_SDK_new/GFX_Linux_SDK/OVG/SDKPackage/
Builds/OVG/Include/GLES/egl.h:190: error: expected initializer before
'eglTerminate'
/home/omap3/OMAP35x_Graphics_SDK_new/GFX_Linux_SDK/OVG/SDKPackage/
Builds/OVG/Include/GLES/egl.h:192: error: expected initializer before
'eglQueryString'

I guess you were able to sucessfully build the QT libraries with the
OpenVG support.
Also,i am using the latest QT source from the http://qt.gitorious.org/qt.
Thanks for the concern and highly appreciate your help.

Thanks and Regards,
Dharshan

Hi Dharshan,

Yes I'm able to build Qt with OpenVG and OpenGLES-2.0 support. But I
did not get the error which you are getting.

I configured Qt with following options:

./configure -embedded arm -xplatform qws/linux-arm-g++ -prefix
/home/amit/beagle_rootfs/usr/local/qt_4.6 -confirm-license -D
QT_QWS_CLIENTBLIT -D QT_NO_QWS_CURSOR -opensource -opengl es2
-plugin-gfx-powervr -openvg -debug -depths 16,24,32 -qt-mouse-pc
-no-openssl -no-cups -no-qt3support -no-phonon -no-largefile
-no-xinerama -no-xkb -no-webkit -no-svg

Also make sure you have set the following paths correctly in your
qws/<target>/qmake.conf:

QMAKE_INCDIR =
QMAKE_LIBDIR =
QMAKE_INCDIR_OPENGL =
QMAKE_LIBDIR_OPENGL =
QMAKE_INCDIR_EGL =
QMAKE_LIBDIR_EGL =
QMAKE_INCDIR_OPENVG =
QMAKE_LIBDIR_OPENVG =

QMAKE_LIBS_EGL = -lEGL -lIMGegl -lsrv_um
QMAKE_LIBS_OPENGL = -lEGL -lGLESv2 -lIMGegl -lsrv_um
QMAKE_LIBS_OPENGL_QT = -lEGL -lGLESv2 -lIMGegl -lsrv_um
QMAKE_LIBS_OPENVG = -lEGL -lOpenVG -lOpenVGU -lIMGegl -lsrv_um

Regards
Amit Pundir

Hello Amith,

I managed to compile QT with openvg support,
Before running the star example,i set the powervr screen driver
export QWS_DISPLAY="powervr"
Than when i run the OpenVG example star using the command

./star -qws -graphicssystem openvg
or ./star -qws

I get an error has:
powervr: driver not found
Aborted.

Are you getting the same error or were you able to run the example.

Thanks and Regards,
Dharshan

Hi Michael,
I think that you should try with an Angstrom image with X11 support like “x11-image” instead of “console-image”. I didn’t do it myself but it could be a good test.

Regards,
Alex.

Have you tried Qt/Embedded SDK from OpenEmbedded for building your own
Qt/E apps?