Results 1 to 8 of 8

Thread: qvfb

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2009
    Posts
    8

    Default qvfb

    I am trying to set up qt for embedded linux on ubuntu 904 server on vmware player.

    I have installed the fullowing sources properly.

    QT-4.5.1 and QtEmbedded-4.5.2-arm

    as the installation instruction say.

    every thing looks ok, I can run comand line tools like qmake, qvfb, qtdemo etc...

    but I couldn't run any sample program in the virtual framebuffer.

    I get the following errors:

    ./framebuffer -qws -display QVFb:0
    Error: cannot open framebuffer device: No such file or directory

    or

    ./analogclock -qws -display QVFb:0
    analogclock: cannot connect to X server QVFb:0


    and btw.. I couldnt find andy device file called fb0 on my system.

    do I need to install qt core also?

    any comment will be appreciated.
    henk

  2. #2
    Join Date
    Jun 2009
    Location
    India
    Posts
    143
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: qvfb

    Hi,

    You'll need to create the framebuffer device in /dev.

    You need one per framebuffer device, so all you need to do is to type in mknod /dev/fb0 c <major number> <minor number>

    get the details of major and minor number...

    The above resource i got through web ...or go through this link

    http://doc.trolltech.com/4.2/qtopiacore-qvfb.html
    Last edited by augusbas; 4th August 2009 at 05:15.

  3. #3
    Join Date
    Aug 2009
    Posts
    8

    Default -------------------------

    ----------------------------

  4. #4
    Join Date
    Aug 2009
    Posts
    8

    Default Re: qvfb

    hi augusbas

    tanks for the replay.

    I have checked out the major and minor numbers and created two frame buffers fb0 and fb1.
    I have some misunderstanding also with the display setting. which value to give for who. like: QWS_DISPLAY =
    DISPLAY =
    were to mention the path "/dev/fb0"

    regards,
    henk

  5. #5
    Join Date
    Jun 2009
    Location
    India
    Posts
    143
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Lightbulb Re: qvfb

    Quote Originally Posted by henk View Post
    hi augusbas

    tanks for the replay.

    I have checked out the major and minor numbers and created two frame buffers fb0 and fb1.
    I have some misunderstanding also with the display setting. which value to give for who. like: QWS_DISPLAY =
    DISPLAY =
    were to mention the path "/dev/fb0"

    regards,
    henk
    Don't worry about display setting now , it will use its default setting

    Try to run any application for example..

    ./Analaogclock -qws in one terminal and try ./qvfb in another terminal ...See whether the application is running.

  6. #6
    Join Date
    Aug 2009
    Posts
    8

    Default Re: qvfb

    Quote Originally Posted by augusbas View Post
    Don't worry about display setting now , it will use its default setting

    Try to run any application for example..

    ./Analaogclock -qws in one terminal and try ./qvfb in another terminal ...See whether the application is running.
    hm...
    actually I am re configureing the Qt/X11 with ./configure -qvfb option.
    ..

    ./qvfb do nto work but just qvfb open the virtual framebuffer
    and when I run ./analogclock_back -qws on other terminal
    i get the following error
    bash: ./analogclock_back: cannot execute binary file

    but when I copy the whole sample file to another directory and run qmake to create a Makefile and run the make command it will re-create the binary file. This time it will run but not in the virtual framebuffer even-though I give -qws option.

    I appreciate all help provided.
    this is my second week on this..

  7. #7
    Join Date
    Aug 2009
    Posts
    8

    Default Re: qvfb

    do u need any more info...?

    pls help

  8. #8
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: qvfb

    You cant use an X11 Qt together with the framebuffer. You will however need a QVFB executable that you can build from the desktop Qt and then use a Qt embedded to connect to that framebuffer.

    So you need both: Qt x11: Build it, use the qvfb executable from here. Qt embedded: Use this to build the application that shall use the frame buffer.
    It's nice to be important but it's more important to be nice.

Similar Threads

  1. Problem with QVFB
    By evinay in forum Newbie
    Replies: 5
    Last Post: 27th February 2009, 08:41
  2. Language support in Qvfb..?
    By Cutey in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 11th February 2009, 07:14
  3. pb with qvfb
    By bruno in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 26th November 2008, 10:53
  4. Error in Qt/embedded 4.0.0 with qvfb
    By sar_van81 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 10th December 2007, 11:31
  5. QVFB: Screen rotation
    By alexandr in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 2nd February 2007, 15:41

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
  •  
Qt is a trademark of The Qt Company.