Building Qt-Applications for BeagleBoard

724 views
Skip to first unread message

rubik...@googlemail.com

unread,
Aug 2, 2009, 12:46:21 PM8/2/09
to Beagle Board
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

rubik...@googlemail.com

unread,
Aug 3, 2009, 5:55:15 PM8/3/09
to Beagle Board
Is nobody using qt for BeagleBoard?
When not?
What i should use for graphical application on framebuffer? Clutter?

Regards

Michael

On 2 Aug., 18:46, "rubiktu...@googlemail.com"

Kiam Peng Wee

unread,
Aug 3, 2009, 11:25:00 PM8/3/09
to beagl...@googlegroups.com
>
> 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.

Amit Pundir

unread,
Aug 4, 2009, 12:55:13 AM8/4/09
to beagl...@googlegroups.com
On Tue, Aug 4, 2009 at 3:25 AM,
rubik...@googlemail.com<rubik...@googlemail.com> wrote:
>
> Is nobody using qt for BeagleBoard?
> When not?
> What i should use for graphical application on framebuffer? Clutter?
>

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

Ihar Hrachyshka

unread,
Aug 4, 2009, 1:28:03 AM8/4/09
to beagl...@googlegroups.com
Try to use 'meta-toolchain-qte' found in .dev branch. It works for me.

>
> Regards
>
> Michael
>
> >
>

Mark Hatch

unread,
Aug 4, 2009, 10:04:49 AM8/4/09
to beagl...@googlegroups.com
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

Shah, Varun

unread,
Aug 4, 2009, 10:26:09 AM8/4/09
to beagl...@googlegroups.com
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



-----Original Message-----
From: beagl...@googlegroups.com [mailto:beagl...@googlegroups.com] On Behalf Of Amit Pundir
Sent: Monday, August 03, 2009 11:55 PM
To: beagl...@googlegroups.com
Subject: [beagleboard] Re: Building Qt-Applications for BeagleBoard


Shah, Varun

unread,
Aug 4, 2009, 11:02:57 AM8/4/09
to beagl...@googlegroups.com
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

Amit Pundir

unread,
Aug 5, 2009, 2:42:48 PM8/5/09
to beagl...@googlegroups.com
On Tue, Aug 4, 2009 at 7:56 PM, Shah, Varun<varu...@ti.com> wrote:
>
> 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

dharsh

unread,
Aug 20, 2009, 5:13:31 AM8/20/09
to Beagle Board
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

On Aug 5, 8:42 pm, Amit Pundir <pundira...@gmail.com> wrote:
> On Tue, Aug 4, 2009 at 7:56 PM, Shah, Varun<varuns...@ti.com> wrote:
>
> > It seems that with theqt-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 theopenvgextension included in latestqt-e 4.6 [http://labs.trolltech.com/blogs/2009/06/24/openvg-support-in-qt-46/]
>
> I tried to runopenvgexample (qt/examples/openvg/star) on Beagle but
> it failed because we need an updated or a separate screen driver
> plugin for PVROpenVGimplementation. Also -graphicssystem switch

Amit Pundir

unread,
Aug 21, 2009, 1:29:07 AM8/21/09
to beagl...@googlegroups.com
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

dharsh

unread,
Aug 21, 2009, 6:58:45 AM8/21/09
to Beagle Board
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

On Aug 21, 7:29 am, Amit Pundir <pundira...@gmail.com> wrote:
> On Thu, Aug 20, 2009 at 2:43 PM, dharsh<dharshan...@gmail.com> wrote:
>
> > Hello Amit,
> > I am trying to buildQTlibraries withOpenVGsupport for beagleboard.
> > Also,i am using the latestQTsource from thehttp://qt.gitorious.org/qt.
> > Thanks for the concern and highly appreciate your help.
>
> Hi Dharshan,
>
> Yes I'm able to buildQtwithOpenVGand OpenGLES-2.0 support. But I
> did not get the error which you are getting.
>
> I configuredQtwith 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

Alejandro Thoux

unread,
Aug 23, 2009, 4:11:51 PM8/23/09
to beagl...@googlegroups.com
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.

Ihar Hrachyshka

unread,
Aug 24, 2009, 3:18:47 AM8/24/09
to beagl...@googlegroups.com
On Sun, Aug 2, 2009 at 1:46 PM, rubik...@googlemail.com
<rubik...@googlemail.com> wrote:
> >
> > 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
> >
> >

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

Reply all
Reply to author
Forward
0 new messages