export PATH='/opt/Qtopia4.4.3/bin:/sbin/usr/sbin:/usr/sbin:/bin/usr/bin'
export QPEDIR='/opt/Qtopia4.4.3'
export QTDIR='/opt/Qtopia4.4.3'
export QT_QWS_FONTDIR='/opt/Qtopia4.4.3/lib/fonts/'
export QWS_DIRPLAY='LinuxFb:mmWidth76:mmHeight44:1'
export QWS_MOUSE_PROTO='Tslib:/dev/input/event1'
export TSLIB_CALIBFILE='/etc/pointercal'
export TSLIB_CONFFILE='/usr/local/tslib/etc/ts.conf'
export TSLIB_CONSOLEDEVICE='none'
export TSLIB_FBDEVICE='/dev/fb0'
export TSLIB_PLUGINDIR='/usr/local/tslib/lib/ts'
export TSLIB_ROOT='/usr/local/tslib'
export TSLIB_TSDEVICE='/dev/input/event1'
export TSLIB_TSEVENTTIPE='H3600'
export QT_PLUGIN_PATH='/opt/Qtopia4.4.3/plugins:/opt/Qtopia4.4.3/qt_plugins/'
export LD_LIBRARY_PATH=/opt/Qtopia/lib/
./HelloWord -qws &
#chmod 777 test.exe
#执行后产生1 bit(s) error detected, corrected successfully ->test ok
如果没有配置上述脚本,会出现Cannot find font definition file /qt/lib/fonts/fontdir - is Qt installed correctly?
# sh: apm: not found
解决: 在某个科协路径下添加apm命令
写入#!/bin/sh保存,chmod 777 apm然后设置路径。
如:
export HOME=/mnt/disk/QtopiaHome/
export PATH=/mnt/disk/QtopiaHome/bin
Mouse type Tslib:/dev/input/event1 unsupported
触摸屏不能支持问题:
export TSLIB_CALIBFILE='/etc/pointercal'
改为:
export TSLIB_CALIBFILE='/mnt/disk/pointercal'
还有一个可能的原因是系统是Qtopia环境而不是Qtopia4.3.3,所以需要制作Qtopia4.3.3的文件系统
消除Warning: QDir::readDirEntries: Cannot read the directory: /o
pt/Qtopia4.4.3/apps
export QPEDIR='/opt/Qtopia4.4.3' 改为 export QPEDIR='/opt/Qtopia4.4.3:/opt/Qtopia'
装上Linux3.0.1 的配置脚本
#!/bin/sh
export PATH='/opt/Qtopia/bin:/sbin/usr/sbin:/usr/sbin:/bin/usr/bin'
export QPEDIR='/opt/Qtopia'
export QTDIR='/opt/Qtopia'
export QT_QWS_FONTDIR='/opt/Qtopia/lib/fonts/'
export QWS_DIRPLAY='LinuxFb:mmWidth76:mmHeight44:1'
export QWS_MOUSE_PROTO='Tslib:/dev/input/event1'
export TSLIB_CALIBFILE='/etc/pointercal'
export TSLIB_CONFFILE='/usr/local/tslib/etc/ts.conf'
export TSLIB_CONSOLEDEVICE='none'
export TSLIB_FBDEVICE='/dev/fb0'
export TSLIB_PLUGINDIR='/usr/local/tslib/lib/ts'
export TSLIB_ROOT='/usr/local/tslib'
export TSLIB_TSDEVICE='/dev/input/event1'
export TSLIB_TSEVENTTIPE='H3600'
export QT_PLUGIN_PATH='/opt/Qtopia/plugins:/opt/Qtopia/qt_plugins/'
export LD_LIBRARY_PATH=/opt/Qtopia/lib/
export HOME=/mnt/disk/QtopiaHome/
export PATH=/mnt/disk/QtopiaHome/bin
./HelloMan -qws &