[Qt-embedded-interest] Configuration's failed!! QT embedded 4.5.2
Donald Carr
donald.carr at nokia.com
Thu Oct 29 17:43:31 CET 2009
Good morning,
On Thu, Oct 29, 2009 at 07:44:08AM +0100, ext Youngwhan Kim James wrote:
> I'm about to complile QT-embedded-4.5.2 with plugin-gfx-directfb.
> I'd edit a directfb.pro file: all deleted comments about DEFINE fields.
> but, if I do "./configure -embedded armv6 -plugin-gfx-directfb,
> occurred following message:
>
> "The DirectFB screen driver functionality test failed!
> You might need to modify the include and library search paths by editing
> QT_CFLAGS_DIRECTFB and QT_LIBS_DIRECTFB in
> /home/yhk/qt-embedded-linux-opensource-src-4.5.2/mkspecs/qws/linux-
> armv6-g++."
> How can I configure?
You are configuring correctly, you have to edit the qmake.conf in:
/home/yhk/qt-embedded-linux-opensource-src-4.5.2/mkspecs/qws/linux-armv6-g++
and correctly define QT_CFLAGS_DIRECTFB and QT_LIBS_DIRECTFB. Qt needs to
know where to look for the directfb libraries for your target, and what
flags to pass your compiler (include paths, defines, etc) when building the
driver. Both of these variables are expected to be in a similar format to
that returned by pkgconfig, so for example:
[dcarr at hobbit:/]$ pkg-config --libs directfb
(10-29 16:41)
-ldirectfb -lfusion -ldirect -lpthread
[dcarr at hobbit:/]$ pkg-config --cflags directfb
(10-29 16:41)
-D_REENTRANT -I/usr/include/directfb
Your vars would be:
QT_CFLAGS_DIRECTFB = -D_REENTRANT -I/usr/include/directfb
QT_LIBS_DIRECTFB = -ldirectfb -lfusion -ldirect -lpthread
if compiling for your host systems directfb on Ubuntu.
I hope that this helps.
Yours sincerely,
Donald
More information about the Qt-embedded-interest
mailing list