1. 下载并安装codesourcery的toolchain
2. 到下载zinnia-0.05.tar.gz和zinnia-tomoe-0.6.0-20080911.tar.bz2
3. 解压缩zinnia-0.05.tar.gz
tar xf zinnia-0.05.tar.gz
4. 编译zinnia
cd zinnia
./configure --enable-static --disable-shared --host=arm-none-linux-gnueabi --prefix=/work/zinnia
make LDFLAGS="-all-static"
make install
5. 解压缩zinnia-tomoe-0.6.0-20080911.tar.bz2
tar xf zinnia-tomoe-0.6.0-20080911.tar.bz2
6. 启动android模拟器,编译zinnia-tomoe
cd zinnia-tomoe
adb push handwriting-zh_CN.model.txt /data/data
adb push /work/zinnia/bin/zinnia_convert /data/data
adb shell
cd /data/data
./zinnia_convert handwriting-zh_CN.model.txt handwriting-zh_CN.model
adb pull /data/data/handwriting-zh_CN.model handwriting-zh_CN.model
阅读(3336) | 评论(1) | 转发(0) |