我按照手册上的步骤 做了mycalc例程(PC端):把QTOPIA_ADD_APPLICATION("mycalc",TMainForm)
QTOPIA_MAIN中 "mycalc"后面的双引号改成英文的,
然后再main_form.ccp中添加头文件#include <qlineedit.h>就能编译成功了
从网上找的run.sh:
#!/bin/sh
/opt/FriendlyARM/mini210/linux/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bin/qvfb -width 480 -height 272 -depth 16 &
#export CAMERA_DEVICE=/dev/video1
#qtopia-2.2.0-FrinedlyARM/qt2/bin/qvfb -width 640 -height 480 -depth 16 &
cd /opt/FriendlyARM/mini210/linux/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/image
mkdir root 2>/dev/null || true
export HOME=$PWD/root
cd opt/Qtopia
export PATH=$PWD/bin:$PATH
export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBARAY_PATH
export QTDIR=$PWD
export QPEDIR=$PWD
export KDEDIR=$PWD/../kde
sleep 1
#../../../bin/mycalc –qws
运行的结果 背景色是绿色的 上层有个计算器的界面 [upload=1]
但是我想实现: qtopia2.2.0运行的基础上 上册是个计算器的模型 [upload=2]
参照手册
# cd /opt/qtopia-free-2.2.0/
# ./run&
等 Qtopia 运行起来后,并进入系统后,输入如下命令运行 mycalc:
# cd /opt/mini6410/qtopia2_apps/mycalc
# export QTDIR=/opt/qtopia-free-2.2.0/qtopia/image/opt/Qtopia/
# export QPEDIR=/opt/qtopia-free-2.2.0/qtopia/image/opt/Qtopia/
# export HOME=$QPEDIR/root/
# export LD_LIBRARY_PATH=$QPEDIR/lib:$LD_LIBARAY_PATH
# ./mycalc
没有反应。只有qtopia2.2.0运行的界面没有计算器界面的出现
哪个搭建环境成功的兄弟能否指点一二啊。
还有一个问题我在run qtopia2.2.0的时候有
Warning: QServerSocket: failed to bind or listen to the socket
Warning: Failed to bind to port 4243
Warning: QServerSocket: failed to bind or listen to the socket
Warning: Failed to bind to port 4242
这个是什么问题?