Hi Eduardo Can you verify that running directfb-config --cflags prints out something like this:
-I/usr/include/directfb -D_REENTRANT Also, please verify that /usr/include/directfb/directfb.h exists (replace /usr/include/directfb with whatever directfb-config prints out). If you still can't make it work can you do this: ./configurer ... # configure fails the directfb build test cd config.tests/qws/directfb make and send me the complete output of make. The problem seems to be that we can't find directfb.h in the includepath. Also note that you can't configure with -static if you want to use directfb since it's built as a plugin and -static doesn't work with plugins. (In Qt 4.6 it will be possible to build the directfb plugin as part of QtGui). It might also make sense to get a newer version of DirectFB and build it from source since the ones that come with the distros often is rather old (1.0.1 for example). ________________________________________ From: ext Eduardo Luz [edu...@gmail.com] Sent: Tuesday, September 29, 2009 10:32 AM To: Bakken Anders (Nokia-D-Qt/MtView) Cc: directfb-dev@directfb.org; directfb-us...@directfb.org Subject: Re: [directfb-dev] DirectFB + Qt-embedded Hi Anders, With verbose mode i've got this : Creating qmake. Please wait... make: Nada a ser feito para `first'. floatmath auto-detection... () compiling floatmath.cpp floatmath.cpp:3: warning: unused parameter 'argc' floatmath.cpp:3: warning: unused parameter 'argv' linking floatmath floatmath enabled. mmx auto-detection... () compiling mmx.cpp linking mmx mmx enabled. 3dnow auto-detection... () compiling 3dnow.cpp linking 3dnow 3dnow enabled. sse auto-detection... () compiling sse.cpp linking sse sse enabled. sse2 auto-detection... () compiling sse2.cpp linking sse2 sse2 enabled. DB2 auto-detection... () compiling db2.cpp db2.cpp:1:20: error: sqlcli.h: No such file or directory db2.cpp:2:21: error: sqlcli1.h: No such file or directory make: ** [db2.o] Erro 1 DB2 disabled. InterBase auto-detection... () compiling ibase.cpp ibase.cpp:1:19: error: ibase.h: No such file or directory make: ** [ibase.o] Erro 1 InterBase disabled. MySQL (thread-safe) auto-detection... () compiling ../mysql/mysql.cpp ../mysql/mysql.cpp:1:19: error: mysql.h: No such file or directory make: ** [mysql.o] Erro 1 MySQL (thread-safe) disabled. MySQL (thread-unsafe) auto-detection... () compiling mysql.cpp mysql.cpp:1:19: error: mysql.h: No such file or directory make: ** [mysql.o] Erro 1 MySQL (thread-unsafe) disabled. OCI auto-detection... () compiling oci.cpp oci.cpp:1:17: error: oci.h: No such file or directory make: ** [oci.o] Erro 1 OCI disabled. ODBC auto-detection... () compiling odbc.cpp odbc.cpp:1:17: error: sql.h: No such file or directory odbc.cpp:2:20: error: sqlext.h: No such file or directory make: ** [odbc.o] Erro 1 ODBC disabled. PostgreSQL auto-detection... () compiling psql.cpp psql.cpp:1:22: error: libpq-fe.h: No such file or directory psql.cpp: In function 'int main(int, char**)': psql.cpp:5: error: 'PQescapeBytea' was not declared in this scope psql.cpp:6: error: 'PQunescapeBytea' was not declared in this scope make: ** [psql.o] Erro 1 PostgreSQL disabled. SQLite2 auto-detection... () compiling sqlite2.cpp sqlite2.cpp:1:20: error: sqlite.h: No such file or directory make: ** [sqlite2.o] Erro 1 SQLite2 disabled. TDS auto-detection... () compiling tds.cpp tds.cpp:1:22: error: sybfront.h: No such file or directory tds.cpp:2:19: error: sybdb.h: No such file or directory make: ** [tds.o] Erro 1 TDS disabled. NIS auto-detection... () compiling nis.cpp nis.cpp:3:27: error: rpcsvc/ypclnt.h: No such file or directory nis.cpp:4:28: error: rpcsvc/yp_prot.h: No such file or directory nis.cpp: In function 'int main(int, char**)': nis.cpp:9: error: 'yp_get_default_domain' was not declared in this scope make: ** [nis.o] Erro 1 NIS disabled. Cups auto-detection... () compiling cups.cpp cups.cpp:1:23: error: cups/cups.h: No such file or directory cups.cpp: In function 'int main(int, char**)': cups.cpp:5: error: 'cups_dest_t' was not declared in this scope cups.cpp:5: error: 'd' was not declared in this scope cups.cpp:6: error: 'cupsGetDests' was not declared in this scope make: ** [cups.o] Erro 1 Cups disabled. D-Bus auto-detection... () compiling dbus.cpp dbus.cpp:2:23: error: dbus/dbus.h: No such file or directory dbus.cpp:5:2: error: #error Needs at least dbus version 1 dbus.cpp: In function 'int main(int, char**)': dbus.cpp:10: error: 'dbus_shutdown' was not declared in this scope make: ** [dbus.o] Erro 1 D-Bus disabled. Glib auto-detection... () compiling glib.cpp glib.cpp:3:18: error: glib.h: No such file or directory glib.cpp: In function 'int main(int, char**)': glib.cpp:8: error: 'GSource' was not declared in this scope glib.cpp:8: error: 'source' was not declared in this scope glib.cpp:9: error: 'GPollFD' was not declared in this scope glib.cpp:9: error: 'pollfd' was not declared in this scope glib.cpp:10: error: 'g_thread_supported' was not declared in this scope glib.cpp:11: error: 'NULL' was not declared in this scope glib.cpp:11: error: 'g_thread_init' was not declared in this scope glib.cpp:12: error: 'g_main_context_default' was not declared in this scope glib.cpp:13: error: 'g_source_new' was not declared in this scope glib.cpp:14: error: 'g_source_add_poll' was not declared in this scope make: ** [glib.o] Erro 1 Glib disabled. DirectFB auto-detection... () compiling directfb.cpp directfb.cpp:1:22: error: directfb.h: No such file or directory directfb.cpp: In function 'int main(int, char**)': directfb.cpp:5: error: 'DFBResult' was not declared in this scope directfb.cpp:5: error: expected `;' before 'result' directfb.cpp:6: error: 'result' was not declared in this scope directfb.cpp:6: error: 'DirectFBInit' was not declared in this scope directfb.cpp:8: error: 'DFB_OK' was not declared in this scope make: ** [directfb.o] Erro 1 DirectFB disabled. 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/eduardo/temp/qt-embedded-linux-opensource-src-4.5.2/mkspecs/qws/linux-i386-g++. And yes, the directfb-config is on my PATH. Regards, Eduardo Luz. On Tue, Sep 29, 2009 at 2:19 PM, Anders Bakken <anders.bak...@nokia.com<mailto:anders.bak...@nokia.com>> wrote: On Mon, Sep 28, 2009 at 10:20:29PM +0200, ext Eduardo Luz wrote: > Hello all, > > I'm having a problem with DirecFB. > > I've downloaded the newest version of Qt-embedded (4.5.2) and tried > out the following : > > "./configure -opensource -static -exceptions -no-qt3support -no-phonon > -no-phonon-backend -qt-zlib -qt-libtiff -qt-libpng -qt-libmng > -qt-libjpeg -silent -xplatform qws/linux-i386-g++ -embedded x86 > -little-endian -host-little-endian -qt-freetype -depths all > -qt-gfx-linuxfb -plugin-gfx-directfb -qt-kbd-tty -qt-mouse-tslib > -prefix /usr/local/Trolltech/ QtEmbedded-4.5.2-directfb" > > And the configure stops, reporting this: > > "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/eduardo/temp/qt-embedded-linux-opensource-src-4.5.2/mkspecs/qws/linux-i386-g++." > > I have the DirectFB installed on my machine, and the dev packages also > (libdirectfb-1.0-0 and libdirectfb-dev). > > So, I 've edited the qmake.conf in > /home/eduardo/temp/qt-embedded-linux-opensource-src-4.5.2/mkspecs/qws/linux-i386-g++ > and add : > > QT_CFLAGS_DIRECTFB=-I/usr/include/directfb -D_REENTRANT > QT_LIBS_DIRECTFB=-L/usr/lib -ldirectfb -lfusion -ldirect -lpthread > > But that didn't work. > > I donn't know what else I can do. > > Any help will be welcome. > > Regards, > > -- Eduardo Luz > > ?The most beautiful thing we can experience is the mysterious. It is > the source of all true art and science. ? Albert Einstein US > (German-born) physicist (1879 - 1955) > Hi Eduardo Any chance you can add -v (for verbose) to your configure line and send the output? Also, if you have directfb-config in your path you shouldn't necessarily have to edit your mkspec. regards -- Qt Development Frameworks, Nokia, http://qt.nokia.com Anders Bakken -- Eduardo Luz “The most beautiful thing we can experience is the mysterious. It is the source of all true art and science. “ Albert Einstein US (German-born) physicist (1879 - 1955) _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev