Home > Tech > Qt-Embedded -part 2 (using QVFB)

Qt-Embedded -part 2 (using QVFB)

As promised, here is the follow up post to the Qt Embedded on linux one.

If you wish to compile and run Qt E apps using the Virtual Frame buffer that is bundled with QT, here’s what you need to do:

The Qt site has a well documented  procedure and there is no point in repeating all the steps here again.Just a few things that one should bear in mind:

Note that QtE DOES NOT have  QVFB bundled along with the package.

You need to download the QT/X11 package as well.Unfortunately, the QT4 binaries are not backward compatible with QT3 (or so they claim).I initially used QT4 but then switched over to QT3.

Just get the QT3 sources from someplace.

Unzip and configure the QT3 sources for qvfb.

( you just need to run the configure script with the -fast -no-x-shape -no-x-cursor -no-xrandr options so that its quick- add any other options using –help that might make it quicker)

Now just go to

@prompt$: cd <QT3DIR>/tools/qvfb

and do a

<QT3DIR>/tools/qvfb@prompt$: make

NOTE that we need to build qvfb as a QT3 application NOT with the Qt Embedded libs(if that is already installed on your system)

It would be a good idea to ensure that both Qts (embedded and well, the other one) are installed in different paths – the chap(chaps?) who scripted the config files has ensured that they are by default (unless you try and screw mess around 😛 )

that should build the frame buffer.

Now you need to repeat the procedure for building Qt E

The only change being:

@<QTEDIR>$: sudo ./configure —qt-gfx-qvfb (Possibly need to append options for the keyboard and mouse drivers too –haven’t tried that yet)

when you run the configure script.

Once the configure is done do a

@<QTEDIR>$ sudo ./make install

Running QTE apps in the QVFB

First run the QVFB by :

<QT3DIR>@prompt$: cd tools/qvfb

<QT3DIR>@prompt$: sudo ./qvfb

and you should see the QVFB popup

Now run one of the QTE apps with the -qws option:

@prompt$: cd <QTEDIR>

<QTEDIR>@prompt$: cd examples/widgets/analogclock

analogclock@prompt$: sudo ./analogclock -qws

and this is what you should get:

QT embedded application running in QVFB

QT embedded application running in QVFB

and here is the equivalent QT3 app running on X  for comparison (that’s another story btw)

QT3 app running on X

QT3 app running on X

Categories: Tech
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment