Modify zbar-0.10
to add GBK support, and remove SJIS.
-
configure
$ ./configure --disable-video --without-xshm --without-xv --without-jpeg --without-imagemagick --without-gtk --without-python --without-qt --prefix=/tmp/local
-
make and install
$ make $ make install
Now we get our new zbar library at /tmp/local
.
$ gcc -I/tmp/local/include -L/tmp/local/lib -lzbar -lpng test_zbar.c -o test_zbar
$ ./test_zbar ./test.png
decoded QR-Code symbol "ä½ å¥½"
$ make distclean