DirectFB

From Qt Labs

Jump to: navigation, search
DirectFB
Project logo: qtopia-directfb.png
Platforms: Qtopia Core
Qt version: 4.3.0
License: GPL
Depends on: DirectFB v1.0.0
   DirectFB blogs
   
DirectFB forum
Subversion:
svn://labs.trolltech.com/svn/qtopia/directfb


[edit] DirectFB for Qtopia Core

[edit]

DirectFB is a thin library that provides hardware graphics acceleration on Linux without bindings to X11 or any other windowing system. This makes it popular in smaller systems such as set-top boxes. It is, however, not a GUI toolkit providing you with high level widgets needed for rich graphical applications. The DirectFB screen driver plugin for Qtopia Core enables use of hardware acceleration while still having the full Qt API to work with.

[edit] Quick Start

Before you start you need to have a working installation of DirectFB. Take a look at http://www.directfb.org for downloads and installation instructions.

Of course you also need a build of Qtopia Core.

Download the source code:

svn checkout svn://labs.trolltech.com/svn/qtopia/directfb

The driver relies on so-called private header files within the Qtopia Core source. These are header files that are not available after Qtopia Core has been installed. You must therefore tell qmake to locate headers in the Qtopia Core source directory, and not in the headers installed on your system. The next commands assumes you've downloaded and unpacked the Qtopia Core source in $QTSRCDIR.

cd directfb
${QTSRCDIR}/bin/qmake -recursive -cache ${QTSRCDIR}/.qmake.cache
make && make install

At this point you should find the following files in your Qtopia Core installation directory: plugins/gfxdrivers/libqdirectfbscreen.so, plugins/kbddrivers/libqdirectfbkeyboard.so, plugins/mousedrivers/libqdirectfbmouse.so

To start an application using the new driver, either set the environment variable QWS_DISPLAY=directfb, or run your application with the -display argument. E.g:

myapp -display directfb

If you're only seeing a message saying "directfb: driver not found" you'll hopefully get some more information about what went wrong by setting the environment variable QT_DEBUG_PLUGINS=1 before running your application.

[edit] Project Status

The driver has been integrated into the Qtopia Core 4.4 source tree and should be available in the 4.4 daily snapshots. The subversion repository is no longer maintained.

[edit] Known issues:

  • With Qtopia Core 4.3.0 QPainter::drawImage() doesn't work for the non-trivial cases. This is fixed in Qtopia Core 4.3.1. See the Forum for a patch against 4.3.0.

[edit] Todo:

  • Rootless mode: Be able to run non-Qt and Qt applications simultaneously.
  • OpenGL support.

[edit]

[edit] Latest 5 Qt Blogs

WidgetPimp
Qt
KDE
Posted by WidgetPimp
 in Qt, KDE
 on Tuesday, October 14, 2008 @ 06:47

Hey, you there!
I’ve seen you coming around here, scoffing at some of them ugly user interfaces. I can tell by the way you carry yourself that you are into making your stuff stand out. Adding extra style, animation, zazz and bling to everything you touch.
Pleased to meet ya, they call me the Widget Pimp. I’ve […]

» 5 comments «
Thomas Zander
Qt
Posted by Thomas Zander
 in Qt
 on Thursday, October 09, 2008 @ 12:30

I’ve been in computers too long, whenever someone talks to me about error codes I think about the very old MacOs releases, or even longer ago the Amiga crash codes.
But I’m afraid you see them still, a dialog giving a very helpful “sorry, error 1234 happened”.
Now, anyone that is a coder knows how difficult it […]

» 16 comments «
lorn
Qt
Qtopia
KDE
Qt Extended
Posted by lorn
 in Qt, Qtopia, KDE, Qt Extended
 on Thursday, October 02, 2008 @ 20:21

Along with the rebranding of Qtopia to Qt Extended, comes a new url - Qtextended.org! It will take place of qtopia.net (which should soon take you to qtextended.org)
You can use this new site for downloading Qt Extended open source releases, snapshot packages, SDK’s and flash image files. You can post your Qt Extended applications for […]

» 3 comments «
Jens
Qt
Styles
QGtkStyle
Posted by Jens
 in Qt, Styles, QGtkStyle
 on Wednesday, October 01, 2008 @ 08:24

One of the few remaining complaints against Qt applications using QGtkStyle on GNOME have been about the file dialog. So far it certainly looked like a GTK+ dialog, but it was not exactly the same dialog that other applications had been using. While I’m not really in a position to comment on which dialog is […]

» 8 comments «
lorn
Qt
Qtopia
KDE
Posted by lorn
 in Qt, Qtopia, KDE
 on Sunday, September 28, 2008 @ 20:06

Well, now. The news is out, I can finally talk openly about this. Qtopia has been renamed Qt Extended!
There are new logos in the gui formerly known as Qtopia. Qtopia.net will be rebranded in the very near future, once the dust settles from the main web sites redesign.
Qt Software and Nokia are still committed to […]

» 10 comments «


© 2008 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners.