Results 1 to 3 of 3

Thread: Problems using QVFB on Ubuntu

  1. #1
    Join Date
    Jan 2011
    Posts
    1
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Problems using QVFB on Ubuntu

    Am running Ubuntu 9.1

    Downloaded the 4.7.1 sources and extracted them to 2 seperate folders, one for x11 and one for qvfb.

    I did a configure and make on the x11 one and did a make install successfully.
    I then did a ./configure -embedded -qvfb on the qvfb folder. Worked fine. Followed by make. Worked fine.

    Then, as per documentation, I go to my x11 source folder/bin and execute ./qvfb. The application launches with a black screen.

    I then navigate to my qvfb source folder and to /examples/widgets/analogclock/ and run
    ./analogclock -qws

    I see the clock window popup, however, it is in it's own window and not in the qvfb window as expected.

    If I specify something like this:

    ./analogclock -qws -display QVFB:0
    I get an error "unable to connect to X Server QVFb:0

    I thought that I should install the qvfb binaries and when I tried
    sudo make install on the qvfb source folder ,I land on this error.

    error: ‘QWidgetPrivate* QWidget::d_func()’ is private

    What is the trick to make this qvfb thing working? Do I need to turn on something in the Linux itself?

    Thanks in advance for any tips.

  2. #2
    Join Date
    Feb 2011
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problems using QVFB on Ubuntu

    I was having similar problems with my qvfb application running in its own window instead of the qvfb window. I am using Ubuntu 10.04. Here's what I had to do to get it working:

    1.) Download the complete source code to ~/qt-everywhere-opensource-src-4.7.1.tar.gz

    2.) Create 2 directories - one for the X11 configuration and one for the embedded qvfb configuration:
    mkdir ~/qt-4.7.1
    cd ~/qt-4.7.1
    tar zxvf ~/qt-everywhere-opensource-src-4.7.1.tar.gz
    mv qt-everywhere-opensource-src-4.7.1 qt-x11
    tar zxvf ~/qt-everywhere-opensource-src-4.7.1.tar.gz
    mv qt-everywhere-opensource-src-4.7.1 qt-embedded-qvfb

    3.) Configure and install Qt X11:
    cd ~/qt-4.7.1/qt-x11
    ./configure -prefix /usr/local/Trolltech/Qt-X11-4.7.1
    make
    sudo make install
    cd ~/qt-4.7.1/qt-x11/tools/qvfb
    make
    sudo make install

    4.) Configure and install Qt/Embedded for qvfb:
    cd ~/qt-4.7.1/qt-embedded-qvfb
    ./configure -embedded -qvfb -qt-gfx-qvfb -qt-kbd-qvfb -qt-mouse-qvfb -prefix /usr/local/Trolltech/Qt-embedded-qvfb-4.7.1
    make
    sudo make install

    5.) In one terminal, run qvfb:
    /usr/local/Trolltech/Qt-X11-4.7.1/bin/qvfb

    6.) In another terminal, run a Qt/Embedded application using qvfb as the QWS server:
    /usr/local/Trolltech/Qt-embedded-qvfb-4.7.1/examples/widgets/analogclock/analogclock -qws -display QVFb:0

    analogclock is now displayed in the qvfb window.

    Nokia really needs to update their documentation! Good luck.
    Last edited by rielyns; 9th February 2011 at 05:54.

  3. #3
    Join Date
    Mar 2012
    Posts
    7
    Qt products
    Qt4
    Platforms
    Symbian S60 Maemo/MeeGo

    Default Re: Problems using QVFB on Ubuntu

    Hi,

    I am using Ubuntu 10.04, and followed the exact steps as in the recent post.

    I have Qt embedded version 4.7.4

    But when i try to run qvfb it says -

    ./qvfb
    ./qvfb: symbol lookup error: ./qvfb: undefined symbol: _ZN9QListData11detach_growEPii

    Any idea? Is it because my desktop has qt 4.6 installed and something is qt 4.7 is required. How do i solve this errror?

    Did you have qt 4.7 already that it worked for you.

    Appreciate any help! Thanks.

Similar Threads

  1. Problems in Ubuntu 10.10
    By gmiller39 in forum Installation and Deployment
    Replies: 1
    Last Post: 27th November 2010, 02:26
  2. Problems with MySQL on Ubuntu
    By neoclaw in forum Qt Programming
    Replies: 3
    Last Post: 21st June 2010, 02:26
  3. problems in configuring 'qvfb' for Qt/embedded
    By rishiraj in forum Installation and Deployment
    Replies: 0
    Last Post: 1st April 2009, 07:46
  4. Qt 4 ver. for Ubuntu 8.04.1(problems building Stellarium)
    By Henry W. Peters in forum Installation and Deployment
    Replies: 2
    Last Post: 7th December 2008, 15:31
  5. pb with qvfb
    By bruno in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 26th November 2008, 10:53

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.