欢迎来到冰点文库! | 帮助中心 分享价值,成长自我!
冰点文库
全部分类
  • 临时分类>
  • IT计算机>
  • 经管营销>
  • 医药卫生>
  • 自然科学>
  • 农林牧渔>
  • 人文社科>
  • 工程科技>
  • PPT模板>
  • 求职职场>
  • 解决方案>
  • 总结汇报>
  • ImageVerifierCode 换一换
    首页 冰点文库 > 资源分类 > DOCX文档下载
    分享到微信 分享到微博 分享到QQ空间

    Qt47移植.docx

    • 资源ID:6025431       资源大小:679KB        全文页数:29页
    • 资源格式: DOCX        下载积分:3金币
    快捷下载 游客一键下载
    账号登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录 QQ登录
    二维码
    微信扫一扫登录
    下载资源需要3金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP,免费下载
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    Qt47移植.docx

    1、Qt47移植1 移植tslib1.4.11. 编译安装./autogen.sh./configure -host=arm-linux -disable-hp3600 -disable-arctic2 -disable-mk712 -disable-collie -disable-corgi -disable-ucb1x00 -disable-linear-h2200 -with-gnu-ld -prefix=/home/lengyuegg/tool/tslib ac_cv_func_malloc_0_nonnull=yesmakemake install2.修改tslib文件/home/len

    2、gyuegg/tool/tslib/etc/ts.conf去掉下面一行前的注释module_raw input3.下载到开发板把第一步生成的tslib整个文件下载到开发板随便放到开发板的某个目录下比如放到/home/lengyuegg/tslib4.验证cd /home/lengyuegg/tslib/bin./ts_calibrate2 移植Qt4.7.31.安装arm-linux-gcctar zxvf arm-linux-gcc-4.3.2.tgz把目录下的bin所在的路径加到环境变量里2.编译安装Qt./configure -embedded arm -release -opensou

    3、rce -silent -qt-libpng -qt-libjpeg -qt-libmng -qt-libtiff -no-multimedia -make libs -nomake tools -nomake examples -nomake docs -make demos -qt-kbd-linuxinput -xplatform qws/linux-arm-g+ -little-endian -qt-freetype -depths 16,18 -qt-gfx-linuxfb -no-qt3support -no-nis -no-cups -no-iconv -no-dbus -no-

    4、openssl -fast -no-accessibility -no-scripttools -no-mmx -no-multimedia -svg -no-webkit -no-3dnow -no-sse -no-sse2 -no-gfx-transformed -no-gfx-multiscreen -no-gfx-vnc -no-gfx-qvfb -no-glib -prefix /home/lengyuegg/Qt/Qt4.7.3 -qt-mouse-tslib -I /home/lengyuegg/tool/tslib/include -L /home/lengyuegg/tool

    5、/tslib/libType 3 to view the GNU General Public License version 3.Type L to view the Lesser GNU General Public License version 2.1.Type yes to accept this license offer.Type no to decline this license offer.yes生成Makefilemake (2个小时)make install3.字体设置复制wqy-zenhei.ttc到/home/lengyuegg/Qt/Qt4.7.3/lib/fon

    6、ts目录下,这样中文就可显示正常了。4.下载到开发板把第一步生成的Qt4.7.3整个文件下载到开发板路径应与第二布设置的路径(-prefix /home/lengyuegg/Qt/Qt4.7.3)一致5.设置环境变量/etc/profileexport TSLIB_ROOT=/home/lengyuegg/tslibexport TSLIB_TSDEVICE=/dev/input/event0 #触摸屏设备节点export TSLIB_CALIBFILE=/etc/pointercal #生成的校验文件存放目录 export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.

    7、conf #触摸屏配置文件 export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts #触摸屏在进行AD转换时用到的插件 #export TSLIB_CONSOLEDEVICE=none#export TSLIB_FBDEVICE=/dev/fb0 #触摸屏framebuff设备节点export QTDIR=/home/lengyuegg/Qt/Qt4.7.3export LD_LIBRARY_PATH=$QTDIR/lib:/usr/local/lib:$LD_LIBRARY_PATHexport PATH=$QTDIR/bin:/bin:/sbin:/usr/bi

    8、n/:/usr/sbin:/usr/local/bin:$PATH#export QWS_DISPLAY=:1export QWS_DISPLAY=LinuxFb:mmWidth100:mmHeight130:0TS_INFO_FILE=/sys/devices/virtual/input/input0/ueventif -e $TS_INFO_FILE -a /bin/grep -q TouchScreen $TS_INFO_FILE ; then export QWS_MOUSE_PROTO=Tslib:/dev/input/event0 MouseMan:/dev/input/mice

    9、if ! -s /etc/pointercal ; then rm /etc/pointercal /usr/local/bin/ts_calibrate fielse export QWS_MOUSE_PROTO=MouseMan:/dev/input/micefiunset TS_INFO_FILEexport QWS_KEYBOARD=TTY:/dev/tty13 用Qt Creator编写程序下载到开发板运行运行PC机生成开发板运行程序/home/lengyuegg/Qt/Qt4.7.3/bin/qmake 就是前面Qt编译安装的路径下载程序到开发板运行cd /home/lengyue

    10、gg/Qt/mypro/helloworld-cqy-build-desktopIP:192.168.1.230用户名:plg密码:plg在开发板的/home/plg目录下Chmod +x helloworld-cqy./ helloworld-cqy qws4 Qt配置参数./configure help有的参数前面有号,这就意味这如果我们什么也不做,直接配置编译的话,就会把这些参数默认进去如果是-no-XX-,就说明编译时不选择这个参数,如过是-qt-XX-,说明我们可以编译直接选用qt自带的驱动,如果是-plugin-XX-,就是将驱动以插件形式编译,而-system-XXX,当然是使用

    11、操作系统提供的驱动,不过那就需要您自己移植了,而且有时还要用第三方的API./configure -helpUsage: configure -h -prefix -prefix-install -bindir -libdir -docdir -headerdir -plugindir -importdir -datadir -translationdir -sysconfdir -examplesdir -demosdir -buildkey -release -debug -debug-and-release -developer-build -shared -static -no-fas

    12、t -fast -no-largefile -largefile -no-exceptions -exceptions -no-accessibility -accessibility -no-stl -stl -no-sql- -sql- -plugin-sql- -system-sqlite -no-qt3support -qt3support -platform -D -I -L -help -qt-zlib -system-zlib -no-gif -qt-gif -no-libtiff -qt-libtiff -system-libtiff -no-libpng -qt-libpng

    13、 -system-libpng -no-libmng -qt-libmng -system-libmng -no-libjpeg -qt-libjpeg -system-libjpeg -make -nomake -R -l -no-rpath -rpath -continue -verbose -v -silent -no-nis -nis -no-cups -cups -no-iconv -iconv -no-pch -pch -no-dbus -dbus -dbus-linked -no-gui -no-separate-debug-info -no-mmx -no-3dnow -no-

    14、sse -no-sse2 -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-neon -qtnamespace -qtlibinfix -separate-debug-info -armfpa -no-optimized-qmake -optimized-qmake -no-xmlpatterns -xmlpatterns -no-multimedia -multimedia -no-phonon -phonon -no-phonon-backend -phonon-backend -no-media-backend -media-bac

    15、kend -no-audio-backend -audio-backend -no-openssl -openssl -openssl-linked -no-gtkstyle -gtkstyle -no-svg -svg -no-webkit -webkit -webkit-debug -no-javascript-jit -javascript-jit -no-script -script -no-scripttools -scripttools -no-declarative -declarative-no-declarative-debug -declarative-debug addi

    16、tional platform specific options (see below)Installation options: These are optional, but you may specify install directories. -prefix . This will install everything relative to (default /usr/local/Trolltech/Qt-4.7.3) * -prefix-install . Force a sandboxed local installation of Qt. This will install

    17、into /usr/local/Trolltech/Qt-4.7.3, if this option is disabled then some platforms will attempt a system install by placing default values to be placed in a system location other than PREFIX. You may use these to separate different parts of the install: -bindir . Executables will be installed to (de

    18、fault PREFIX/bin) -libdir . Libraries will be installed to (default PREFIX/lib) -docdir . Documentation will be installed to (default PREFIX/doc) -headerdir . Headers will be installed to (default PREFIX/include) -plugindir . Plugins will be installed to (default PREFIX/plugins) -importdir . Imports

    19、 for QML will be installed to (default PREFIX/imports) -datadir . Data used by Qt programs will be installed to (default PREFIX) -translationdir . Translations of Qt programs will be installed to (default PREFIX/translations) -sysconfdir . Settings used by Qt programs will be looked for in (default

    20、PREFIX/etc/settings) -examplesdir . Examples will be installed to (default PREFIX/examples) -demosdir . Demos will be installed to (default PREFIX/demos) You may use these options to turn on strict plugin loading. -buildkey . Build the Qt library and plugins using the specified . When the library lo

    21、ads plugins, it will only load those that have a matching key.Configure options: The defaults (*) are usually acceptable. A plus (+) denotes a default value that needs to be evaluated. If the evaluation succeeds, the feature is included. Here is a short explanation of each option: * -release . Compi

    22、le and link Qt with debugging turned off. -debug . Compile and link Qt with debugging turned on. -debug-and-release . Compile and link two versions of Qt, with and without debugging turned on (Mac only). -developer-build . Compile and link Qt with Qt developer options (including auto-tests exporting

    23、) -opensource . Compile and link the Open-Source Edition of Qt. -commercial . Compile and link the Commercial Edition of Qt. * -shared . Create and use shared Qt libraries. -static . Create and use static Qt libraries. * -no-fast . Configure Qt normally by generating Makefiles for all project files.

    24、 -fast . Configure Qt quickly by generating Makefiles only for library and subdirectory targets. All other Makefiles are created as wrappers, which will in turn run qmake. -no-largefile . Disables large file support. + -largefile . Enables Qt to access files larger than 4 GB. -no-exceptions . Disabl

    25、e exceptions on compilers that support it. * -exceptions . Enable exceptions on compilers that support it. -no-accessibility . Do not compile Accessibility support. * -accessibility . Compile Accessibility support. -no-stl . Do not compile STL support. * -stl . Compile STL support. -no-sql- . Disabl

    26、e SQL entirely. -qt-sql- . Enable a SQL in the QtSql library, by default none are turned on. -plugin-sql- Enable SQL as a plugin to be linked to at run time. Possible values for : db2 ibase mysql oci odbc psql sqlite sqlite2 sqlite_symbian tds -system-sqlite . Use sqlite from the operating system. -

    27、no-qt3support . Disables the Qt 3 support functionality. * -qt3support . Enables the Qt 3 support functionality. -no-xmlpatterns . Do not build the QtXmlPatterns module. + -xmlpatterns . Build the QtXmlPatterns module. QtXmlPatterns is built if a decent C+ compiler is used and exceptions are enabled

    28、. -no-multimedia . Do not build the QtMultimedia module. + -multimedia . Build the QtMultimedia module. -no-audio-backend . Do not build the platform audio backend into QtMultimedia. + -audio-backend . Build the platform audio backend into QtMultimedia if available. -no-phonon . Do not build the Phonon module. + -phonon . Build the Phonon module. Phonon is built if a decent C+ compiler is used. -no-phonon-backend. Do not build the platform phonon plugin. + -phonon-backend. Build


    注意事项

    本文(Qt47移植.docx)为本站会员主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2023 冰点文库 网站版权所有

    经营许可证编号:鄂ICP备19020893号-2


    收起
    展开