• 6668阅读
  • 2回复

Build Qt/Embedded 4.5.1 for PC [复制链接]

上一主题 下一主题
离线hercules
 

只看楼主 倒序阅读 楼主  发表于: 2009-04-27
— 本帖被 XChinux 从 Qt for Windows 移动到本区(2010-02-07) —
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
我的QQ号:337396132
欢迎大家加我为好友,一起学习Qt
离线lhyasia
只看该作者 1楼 发表于: 2009-04-27
楼主纯属灌水。
离线hercules

只看该作者 2楼 发表于: 2009-04-27
引用第1楼lhyasia于2009-04-27 20:58发表的  :
楼主纯属灌水。


这是我今天编译Qt/Embedded的心得,如果你认为我是在灌水的话,那我也无话可说
我的QQ号:337396132
欢迎大家加我为好友,一起学习Qt
快速回复
限100 字节
 
上一个 下一个