A) Run Application with VNC Protocol
1. Get source code qt-embedded-linux-opensource-src-4.5.1.tar.gz
2. Unzip the zip file
3.Configuring Qt/E with VNC support
./configure -qt-gfx-vnc --prefix=/home/hercules/QtEmbedded -embedded generic
(Replace /home/hercules/QtEmbedded with your work folder)
4.Building Qt/E
make
make install
5.Run
export PATH=$PATH:/home/hercules/QtEmbedded/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/hercules/QtEmbedded/lib
./your_first_app -qws -display VNC:display_id
vncviewer localhost:display_id
./your_second_app -display VNC:display_id
Please use your ext number as display_id,thanks!
B) Run Application with QVFB
1) Same as A
2) Same as A
3) Configuring Qt/E with qvfb support
./configure -qvfb --prefix=/home/hercules/QtEmbedded -embedded generic -qt-gfx-qvfb -qt-kbd-qvfb -qt-mouse-qvfb
4) Same as A
5)Building qvfb
(1) Get source code qt-x11-linux-opensource-src-4.5.1.tar.gz
(2) Unzip the zip file
(3) Configuring and Building Qt-X11
./configure
make
cd tools/qvfb
make
(You can also use the qvfb with old version qt-e 2.3.11)
6) Run
export PATH=$PATH:/home/hercules/QtEmbedded/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/hercules/QtEmbedded/lib
export QWS_DISPLAY=:display_id
qvfb -width 640 -height 480 -qwsdisplay :display_id&
./your_first_app -qws