2013年6月18日 星期二

libqrencode (qr code 編譯 for mips)

1: zlib-1.2.8.tar.gz
./configure --prefix=/home/jimmy/work/qr_code/lib_zlib/ --static
(不支援--host=mipsel-linux , 將makefile gcc改為mipsel-linux-gcc)

2:libpng-1.6.2.tar.gz
./configure --prefix=/home/jimmy/work/qr_code/lib_libpnp/ --enable-static=yes --enable-shared=no --host=mipsel-linux LDFLAGS="-L/home/jimmy/work/qr_code/lib_zlib/lib" CPPFLAGS="-I/home/jimmy/work/qr_code/lib_zlib/include"

3:libqrencode
 ./configure --host=mipsel-linux --prefix=/home/jimmy/work/qr_code/lib_libqrencode --enable-static=yes --enable-shared=no
修改makefile
png_CFLAGS = -I/usr/local/include/libpng16 
png_LIBS = -L/usr/local/lib -lpng16 


4: 執行檔(mips)
https://docs.google.com/file/d/0B8hm-I2M8BD7Yi1rcWRLZS1sVlE/edit?usp=sharing


qrencode -o test.png 'test in mips'

沒有留言:

張貼留言