2011年6月7日 星期二

porting tslib (abstraction layer for touchscreen) to ARM Platfrom

Step by Step:
my environment:
OS: Ubuntu 10.04
Cross-compiler:
  - CC   = linux-arm-gcc (4.1.2)
  - CXX = linux-arm-g++ (4.1.2)

  1. Download tslib source code
    • download tslib tar or zip file from http://tslib.berlios.de/
    • my download file version is named kergoth-tslib-1.0-94-gd4073fe.zip
  2. Install dependency libraries
    • sudo apt-get install m4 autoconf automake libtool
  3. set tslib install path
    • export PREFIX=/home/myname/tslib/BUILD 
      #set INSTALL PATH by your choice
  4. execute autogen.sh
    • ./autogen.sh
    • After this command finished, it generates configure file for tslib.
  5. configure tslib
    • ./configure --build=i386-linux --host=arm-linux --target=arm --prefix=$PREFIX ac_cv_func_malloc_0_nonnull=yes
  6. make; make install

0 意見: