Results 1 to 10 of 10

Thread: Configuring Qt-Embedded with directFB

  1. #1
    Join Date
    Jun 2008
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Configuring Qt-Embedded with directFB

    Hello all,

    I'm having a problem with DirecFB plugin.

    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,

  2. #2
    Join Date
    Jun 2008
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Configuring Qt-Embedded with directFB

    Since I was cross-compiling, I've created a "/mkspecs/qws/linux-i386-g++/QMake.conf" for my target architecture and I should had pointed the DirectFB flags to my target libs, not to my host.

    So, that fixed the problem :

    QT_CFLAGS_DIRECTFB=-I/home/eduardo/toolchain/usr/include/directfb -D_REENTRANT
    QT_LIBS_DIRECTFB=-L/home/eduardo/toolchain/usr/lib -ldirectfb -lfusion -ldirect -lpthread

  3. #3
    Join Date
    Nov 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Configuring Qt-Embedded with directFB

    Hello

    I have a similar problem, but the solution you provide doesn`t work for me. I am developing for a mips platform and I have directfb for the target device. In fact, I have some applications and examples running that use directfb.

    The thing is that when I try to configure Qt (4.4.3) to use directfb in this way:

    " ./configure -embedded mips -xplatform qws/linux-mips-g++ -qt-gfx-linuxfb -plugin-gfx-directfb"

    I get this message:

    "The DirectFB screen driver functionality test failed!
    You might need to modify the include and library search paths by editing
    QMAKE_INCDIR and QMAKE_LIBDIR in
    /home/alex/PR15/qt-embedded-linux-opensource-src-4.4.3/mkspecs/qws/linux-mips-g++
    "

    Then I edit the file /home/alex/PR15/qt-embedded-linux-opensource-src-4.4.3/mkspecs/qws/linux-mips-g++/qmake.conf to append these two statements at the end:

    QT_CFLAGS_DIRECTFB=-I$(PRJROOT)/build_generic/staging/usr/include/directfb -D_REENTRANT
    QT_LIBS_DIRECTFB=-L$(PRJROOT)/build_generic/staging/usr/lib -ldirectfb -lfusion -ldirect -lpthread

    after that I run the configuration and the message keeps the same.

    Am I doing something wrong? Please, any help would be appreciated.

    Bye.

  4. #4
    Join Date
    Jun 2010
    Posts
    102
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Configuring Qt-Embedded with directFB

    Quote Originally Posted by lar_fer View Post
    Hello

    I have a similar problem, but the solution you provide doesn`t work for me. I am developing for a mips platform and I have directfb for the target device. In fact, I have some applications and examples running that use directfb.

    The thing is that when I try to configure Qt (4.4.3) to use directfb in this way:

    " ./configure -embedded mips -xplatform qws/linux-mips-g++ -qt-gfx-linuxfb -plugin-gfx-directfb"

    I get this message:

    "The DirectFB screen driver functionality test failed!
    You might need to modify the include and library search paths by editing
    QMAKE_INCDIR and QMAKE_LIBDIR in
    /home/alex/PR15/qt-embedded-linux-opensource-src-4.4.3/mkspecs/qws/linux-mips-g++
    "

    Then I edit the file /home/alex/PR15/qt-embedded-linux-opensource-src-4.4.3/mkspecs/qws/linux-mips-g++/qmake.conf to append these two statements at the end:

    QT_CFLAGS_DIRECTFB=-I$(PRJROOT)/build_generic/staging/usr/include/directfb -D_REENTRANT
    QT_LIBS_DIRECTFB=-L$(PRJROOT)/build_generic/staging/usr/lib -ldirectfb -lfusion -ldirect -lpthread

    after that I run the configuration and the message keeps the same.

    Am I doing something wrong? Please, any help would be appreciated.

    Bye.
    i configure is:
    ./configure -embedded mips -xplatform qws/linux-mips-g++ -little-endian -no-qvfb
    but when make then it errror:

    root@admin-laptop:/home/sonnh/qt-everywhere-opensource-src-4.7.0# cd demos/books/
    root@admin-laptop:/home/sonnh/qt-everywhere-opensource-src-4.7.0/demos/books# make
    mips-linux-g++ -c -pipe -mips32 -fno-exceptions -O2 -Wall -W -D_REENTRANT -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../mkspecs/qws/linux-mips-g++ -I. -I../../include/QtCore -I../../include/QtNetwork -I../../include/QtGui -I../../include/QtSql -I../../include -I. -I.moc/release-shared-emb-mips -I.uic/release-shared-emb-mips -o .obj/release-shared-emb-mips/bookdelegate.o bookdelegate.cpp
    make: mips-linux-g++: Command not found
    make: *** [.obj/release-shared-emb-mips/bookdelegate.o] Error 127
    Contact: Skype: sonnh89
    Yahoo: nhs_0702@yahoo.com

    Liên hệ SKype: sonnh89

  5. #5
    Join Date
    Nov 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Configuring Qt-Embedded with directFB

    make: mips-linux-g++: Command not found
    make: *** [.obj/release-shared-emb-mips/bookdelegate.o] Error 127
    You have to search for your cross compiler directory. You might have something called mipsel-linux-g++ or similar instead of mips-linux-g++. You should link the actual g++ to the one that qt is asking you. For example:

    you don't have mips-linux-g++ but you have mipsel-linux-g++ then, place where the croos compiler is and:

    user@whereeveryouare$ln -s mipsel-linux-g++ mips-linux-g++

    bye

  6. #6
    Join Date
    Dec 2010
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Maemo/MeeGo

    Default Re: Configuring Qt-Embedded with directFB

    I do have the same problem here. I try to configure with directFB. The directfb I want to use is provided by the vendor of the system I want to use, and it works well.

    So here is the configure line I'm using :
    ./configure -embedded arm-gnueabi -qt-freetype -embedded arm-gnueabi -plugin-gfx-directfb -xplatform qws/linux-arm-gnueabi-g++

    The compiler I what to use is in the PATH and I precise the name of the binary in qmake.conf.

    Here is how I set QT_CFLAGS_DIRECTFB and QT_LIBS_DIRECTFB at the end of qws/linux-arm-gnueabi-g++/qmake.conf :


    QT_CFLAGS_DIRECTFB=-I/opt/SDK/inc/directfb -D_REENTRANT
    QT_LIBS_DIRECTFB=-L/opt/SDK/lib -ldirectfb -lfusion -ldirect -lpthread

    But I get this whatever I'm doing :

    Do you accept the terms of either license? yes

    Creating qmake. Please wait...
    make: Rien à faire pour « first ».
    /home/devel-arm/libs/qt-everywhere-opensource-src-4.7.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /home/devel-arm/libs/qt-everywhere-opensource-src-4.7.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    (many like theses)
    /home/devel-arm/libs/qt-everywhere-opensource-src-4.7.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /home/devel-arm/libs/qt-everywhere-opensource-src-4.7.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")

    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/devel-arm/libs/qt-everywhere-opensource-src-4.7.1/mkspecs/qws/linux-arm-gnueabi-g++.

    Do I miss something ?

  7. #7
    Join Date
    Jun 2006
    Location
    San Diego, USA
    Posts
    95
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Configuring Qt-Embedded with directFB

    Quote Originally Posted by lar_fer View Post
    You have to search for your cross compiler directory. You might have something called mipsel-linux-g++ or similar instead of mips-linux-g++. You should link the actual g++ to the one that qt is asking you. For example:

    you don't have mips-linux-g++ but you have mipsel-linux-g++ then, place where the croos compiler is and:

    user@whereeveryouare$ln -s mipsel-linux-g++ mips-linux-g++

    bye
    Either provide the cross-compiler tool chain path for mips-linux-g++ in qmake.conf or export the cross-compiler toolchain path to path.
    Ex: export PATH=$PATHath/to/crosscompiler/toolchain

  8. #8
    Join Date
    Jun 2010
    Posts
    102
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Configuring Qt-Embedded with directFB

    Quote Originally Posted by Agrou View Post
    I do have the same problem here. I try to configure with directFB. The directfb I want to use is provided by the vendor of the system I want to use, and it works well.

    So here is the configure line I'm using :
    ./configure -embedded arm-gnueabi -qt-freetype -embedded arm-gnueabi -plugin-gfx-directfb -xplatform qws/linux-arm-gnueabi-g++

    The compiler I what to use is in the PATH and I precise the name of the binary in qmake.conf.

    Here is how I set QT_CFLAGS_DIRECTFB and QT_LIBS_DIRECTFB at the end of qws/linux-arm-gnueabi-g++/qmake.conf :


    QT_CFLAGS_DIRECTFB=-I/opt/SDK/inc/directfb -D_REENTRANT
    QT_LIBS_DIRECTFB=-L/opt/SDK/lib -ldirectfb -lfusion -ldirect -lpthread

    But I get this whatever I'm doing :

    Do you accept the terms of either license? yes

    Creating qmake. Please wait...
    make: Rien à faire pour « first ».
    /home/devel-arm/libs/qt-everywhere-opensource-src-4.7.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /home/devel-arm/libs/qt-everywhere-opensource-src-4.7.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    (many like theses)
    /home/devel-arm/libs/qt-everywhere-opensource-src-4.7.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /home/devel-arm/libs/qt-everywhere-opensource-src-4.7.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")

    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/devel-arm/libs/qt-everywhere-opensource-src-4.7.1/mkspecs/qws/linux-arm-gnueabi-g++.

    Do I miss something ?

    you must rebuild DirectFB by Cross Compile arm, you cant use package libdirectfb-1.0-0 and libdirectfb-dev on Ubuntu
    Contact: Skype: sonnh89
    Yahoo: nhs_0702@yahoo.com

    Liên hệ SKype: sonnh89

  9. #9
    Join Date
    Jun 2010
    Posts
    102
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Configuring Qt-Embedded with directFB

    hi all, the first, you must test by cd /tango3/qt_SMP8654F_bin_4.5.2-1.1/src/config.tests/qws/directfb and make file it, its is test of QT, if you test success, then you will builded, i was test, all thing good
    Contact: Skype: sonnh89
    Yahoo: nhs_0702@yahoo.com

    Liên hệ SKype: sonnh89

  10. #10
    Join Date
    Jun 2010
    Posts
    102
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Configuring Qt-Embedded with directFB

    Ex: Error:

    /home/sonnh/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/mips-linux-gnu/4.3.2/../../../../mips-linux-gnu/bin/ld: warning: librmpacketcommand.so, needed by /tango3/dcchd_SMP8652_3_8_2_aqua.mips/dcchd/dcchd/libdcchd.so, not found (try using -rpath or -rpath-link)
    /home/sonnh/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/mips-linux-gnu/4.3.2/../../../../mips-linux-gnu/bin/ld: warning: librmdisc.so, needed by /tango3/dcchd_SMP8652_3_8_2_aqua.mips/dcchd/dcchd/libdcchd.so, not found (try using -rpath or -rpath-link)
    /home/sonnh/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/mips-linux-gnu/4.3.2/../../../../mips-linux-gnu/bin/ld: warning: librmdvdfs.so, needed by /tango3/dcchd_SMP8652_3_8_2_aqua.mips/dcchd/dcchd/libdcchd.so, not found (try using -rpath or -rpath-link)
    /home/sonnh/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/mips-linux-gnu/4.3.2/../../../../mips-linux-gnu/bin/ld: warning: librmdvdfsapi.so, needed by /tango3/dcchd_SMP8652_3_8_2_aqua.mips/dcchd/dcchd/libdcchd.so, not found (try using -rpath or -rpath-link)
    /home/sonnh/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/mips-linux-gnu/4.3.2/../../../../mips-linux-gnu/bin/ld: warning: librmdvdvideonav.so, needed by /tango3/dcchd_SMP8652_3_8_2_aqua.mips/dcchd/dcchd/libdcchd.so, not found (try using -rpath or -rpath-link)
    /home/sonnh/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/mips-linux-gnu/4.3.2/../../../../mips-linux-gnu/bin/ld: warning: librmdvdvideoapi.so, needed by /tango3/dcchd_SMP8652_3_8_2_aqua.mips/dcchd/dcchd/libdcchd.so, not found (try using -rpath or -rpath-link)
    /home/sonnh/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/mips-linux-gnu/4.3.2/../../../../mips-linux-gnu/bin/ld: warning: librmcdda.so, needed by /tango3/dcchd_SMP8652_3_8_2_aqua.mips/dcchd/dcchd/libdcchd.so, not found (try using -rpath or -rpath-link)
    /home/sonnh/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/mips-linux-gnu/4.3.2/../../../../mips-linux-gnu/bin/ld: warning: librmcddanavapi.so, needed by /tango3/dcchd_SMP8652_3_8_2_aqua.mips/dcchd/dcchd/libdcchd.so, not found (try using -rpath or -rpath-link)

    make: *** [directfb] Error 1
    Contact: Skype: sonnh89
    Yahoo: nhs_0702@yahoo.com

    Liên hệ SKype: sonnh89

Similar Threads

  1. Problem with Qt embedded 4.4.0 static & directfb
    By anselmolsm in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 3rd February 2012, 11:20
  2. Qt Embedded
    By lixo1 in forum Newbie
    Replies: 4
    Last Post: 2nd March 2009, 18:24
  3. directfb plugin of qte.4.4.3 can not be loaded when running application
    By xianshuiren in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 15th February 2009, 06:54
  4. Qt Embedded + OpenGL problem
    By EeroS in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 7th October 2008, 15:32

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.