May
06
2009

Install zint-2.1.2 on FreeBSD 6.2

547 views

zint เป็นโปรแกรม Open source แบบ command line สำหรับสร้าง barcode ครับ support ถึง 50 รูปแบบเลย ซึ่งสุดยอดมากๆ ไม่มีเจ้าใดเทียบได้อีกแล้ว
เขียนด้วยภาษา C จำเป็นต้อง compile ที่เครื่องก่อน ได้เฉพาะฝั่ง Linux นะครับ All POSIX (Linux/BSD/UNIX-like OSes)
วิธีใช้หนะไม่ยากเพราะสั่งแค่บรรทัดเดียวก็สร้าง barcode ได้แล้ว แต่ตอนลงพอดีมันติด compile อยู่มั่วไปมั่วมาจนสำเร็จ
เลยมาบันทึกไว้เผื่อใครติดปัญหาเหมือนกัน

I try to install zint 2.1.2 on my FreeBSD but it have some problem when compile.
This is my way to fix it.


If you need QR Code please install libqrencode-3.0.3 first

edit
backend/qr.c line 27
from:
#include <qrencode.h>
 
to:
#include "qrencode.h"

Copy header file
cp /usr/local/include/qrencode.h /YOUR.SOURCE.PATH/backend/
cp /usr/local/include/png.h /YOUR.SOURCE.PATH/backend/
cp /usr/local/include/pngconf.h /YOUR.SOURCE.PATH/backend/

edit
backend/Makefile line 53
from:
install -D -p --mode=0644 zint.h $(DESTDIR)$(includedir)/zint.h
 
to:
install -p -m 0644 zint.h $(DESTDIR)$(includedir)/zint.h
 
edit
frontend/Makefile line 28
from:
install -D -p  zint $(DESTDIR)$(bindir)/zint
 
to:
install -p  zint $(DESTDIR)$(bindir)/zint
 
cd /YOUR.SOURCE.PATH/
make
make install
 
or
gmake
gmake install

Written by Pipo in: FreeBSD & Linux | Tags: , , ,

No Comments »

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes