zoukankan      html  css  js  c++  java
  • 移植tslib

    1.移植tslib库

    源码包:tslib-1.4.gz

    工具链:4.1.2

    1、准备工作

    #mkdir  /root/build_tslib

    #cd  /root/build_tslib

    #tar xvfz  tslib-1.4.gz

    #cd  tslib

    2、配置V

    #vi  ts_install.sh

    编辑内容

    export PATH=/usr/local/arm/4.1.2/bin:$QTDIR/bin:$PATH // 配置环境变量、有待确定

    ./autogen.sh // 用于生成configure

    ./configure  --prefix=/share/tslib  --host=arm-linux ac_cv_func_malloc_0_nonnull=yes

    --enable-inputapi=yes

    make&&make install //编译与安装

    3、修改/share/tslib/etc目录下的tslib.conf文件,将module_rawinput前面的注释去掉,使QT支持触摸屏。

    #vi /share/tslib/etc/ts.conf

    修改如下

    #Uncommentifyouwishtousethelinuxinputlayereventinterface

    module_rawinput (去掉#且顶格)

    #Uncommentifyou'reusingaSharpZaurusSL-5500/SL-5000d

    #module_rawcollie

    #Uncommentifyou'reusingaSharpZaurusSL-C700/C750/C760/C860

    #module_rawcorgi

    #Uncommentifyou'reusingadevicewithaUCB1200/1300/1400TSinterface

    #module_rawucb1x00

    #Uncommentifyou'reusinganHPiPaqh3600orsimilar

    #module_rawh3600

    #Uncommentifyou'reusingaHitachiWebpad

    #module_rawmk712

    #Uncommentifyou'reusinganIBMArcticI

    #module_rawarctic2

    modulepthrespmin=1

    modulevariancedelta=30

    moduledejitterdelta=100

    modulelinear

    交叉编译生成的/share/tslib目录全部文件将会拷贝到制作的文件系统的根目录下(如/root/rootfs)。

    /******************************/ /********好好学习-天天向上*****/ /******************************/
  • 相关阅读:
    Linux基本结构
    Linux诞生
    Python之克隆
    Python之数据类型转换
    gb18030与utf-8
    for循环与while循环
    code::blocks调试
    关于隐式创建vue实例实现简化弹出框组件显示步骤
    blob canvas img dataUrl的互相转换和用处
    观察者模式与发布订阅模式的区别
  • 原文地址:https://www.cnblogs.com/langdexuming/p/4197452.html
Copyright © 2011-2022 走看看