Chinaunix首页 | 论坛 | 博客
  • 博客访问: 568797
  • 博文数量: 185
  • 博客积分: 4031
  • 博客等级: 上校
  • 技术积分: 1591
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-27 19:45
文章分类

全部博文(185)

文章存档

2011年(14)

2010年(63)

2009年(108)

我的朋友

分类:

2009-06-26 10:36:39

tslib
fix input.h about EV_RST to EV_SYN
export CC=mipsel-linux-gcc
./autogen.sh
echo "ac_cv_func_malloc_0_nonnull=yes" >mips-linux.cache
./configure --host=mipsel-linux --cache-file=mips-linux.cache --prefix=/opt/ts
make && make install

minigui
patch
diff -Nur libminigui-2.0.3-linux/configure.in libminigui-2.0.3-linux_08042301/configure.in >./libminigui.patch
diff -Nur libminigui-2.0.3-linux/src/ial/ial.c libminigui-2.0.3-linux_08042301/src/ial/ial.c >>./libminigui.patch
diff -Nur libminigui-2.0.3-linux/src/ial/Makefile.am libminigui-2.0.3-linux_08042301/src/ial/Makefile.am >>./libminigui.patch
diff -Nur libminigui-2.0.3-linux/src/ial/gzb.c libminigui-2.0.3-linux_08042301/src/ial/gzb.c >>./libminigui.patch
diff -Nur libminigui-2.0.3-linux/src/ial/gzb.h libminigui-2.0.3-linux_08042301/src/ial/gzb.h >>./libminigui.patch
libminigui:
aclocal
autoconf
automake
 
cc=mipsel-linux-gcc ./configure --prefix=/minigui/mipsel-linux-build --host=mipsel-linux --target=mipsel-linux  --enable-standalone --enable-lite --enable-gzbial CFLAGS="-I/opt/ts/include -L/opt/ts/lib -lts"
**--enable-gzbial && CFLAGS is must, to notice tslib install path.
make && make install && cp /minigui/mipsel-linux-build/lib/* /nfs_share/mipsroot/lib/

example to minigui:
mipsel-linux-gcc trackbar.c -o trackbar -lminigui -lpng -ljpeg -I/minigui/mipsel-linux-build/include -L/minigui/mipsel-linux-build/lib -lpthread -lts -L/opt/ts/lib -I/opt/ts/include -lmgext

run App:
create device file in /dev
fix /opt/ts/ts.conf
export TSLIB_ROOT=/opt/ts                   
export TSLIB_TSDEVICE=/dev/input/event1     
export TSLIB_CALIBFILE=/etc/pointercal      
export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf
export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts   
export TSLIB_CONSOLEDEVICE=none             
export TSLIB_FBDEVICE=/dev/fb0              
export LD_LIBRARY_PATH=$TSLIB_ROOT/lib:$LD_LIBRARY_PATH
export KBDEVICE=/dev/input/event0
export TSDEVICE=/dev/input/event1
阅读(816) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~