- 1、本文档共3页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
ubuntu使用集锦
在hgfs下面不出现共享文件夹
解决:apt-get install open-vm-dkms
mount –t vmhgfs .host:/ /mnt/hgfs
设置环境变量
解决:export PATH=$PATH:目录
修改profile----------vi /etc/profile
修改.bashrc----------vi /root/.bashrc
然后用source命令生效
博创2410 QT的使方法
Ubuntu11.04下移植QT/E到博创S3C2410一、tslib-1.4编译时环境变量设置/configure -embedded arm -xplatform qws/linux-arm-g++ -depths 16-little-endian -qt-mouse-linuxtp -qt-mouse-tslib-I/root/qte/tslib1.4-install/include –L/root/qte/tslib1.4-install/lib-prefix /tmp/Trolltech/qt-embedded-4.4.0(编译成功生成tslib1.4-install文件)注意:-prefix 后的路径为目标机中的被挂载目录
二、将生成的tslib1.4-install中的相关文件夹拷贝到qt-embedded-linux-opensource-src-4.4.0中:cp -a tslib1.4-install/lib/* qt-embedded-linux-opensource-src-4.4.0/libcp-atslib1.4-install/include/ts*qt-embedded-linux-opensource-src-4.4.0/include
三、在目标机中进行触摸屏测试时环境变量设置export QTDIR=$PWDexport LD_LIBRARY_PATH=$PWD/libexport TSLIB_TSDEVICE=/dev/event0export TSLIB_PLUGINDIR=$PWD/lib/tsexport TSLIB_CONSOLEDEVICE=noneexport TSLIB_CONFFILE=$PWD/etc/ts.confexport POINTERCAL_FILE=$PWD/etc/ts-calib.confexport QWS_MOUSE_PROTO=tslib:/dev/event0export TSLIB_CALIBFILE=$PWD/etc/ts-calib.confexport LANG=zh_CN
四、整个移植过程中出现的问题及解决方法错误1:../../corelib/tools/qbytearray.cpp:52:18: fatal error: zlib.h: No such file or directorycompilation terminated.make[1]: *** [.obj/release-shared-emb-arm/qbytearray.o] Error 1make[1]: Leaving directory `/root/qte/qt-embedded-linux-opensource-src-4.4.0/src/tools/rccmake: *** [sub-rcc-make_default-ordered] Error 2
解决:
apt-fast install zlib1g-dev
错误2:? 编译软件tslib-1.4,运行make和make install后,不能执行./build.sh
解决:? 卸载以下软件:? apt-get purge autoconf
错误3:Couldnt load module pthresNo raw modules loaded.ts_config: Success
解决:? 更改ts.conf配置文件#vi /mnt/nfs/Trolltech/qt-embedded-4.4.0/etc/ts.conf# Uncomment if you wish to use the linux input layer event interface# module_raw input
改为:# Uncomment if you wish to use the linux input layer event interfacemodule_raw input???注意: module_raw input 前不能有空格
错误4:运行 ./digitalclock –qws时出现:nfs:
文档评论(0)