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.
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.
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.