mkoppanen / php-zbarcode

PHP extension for reading barcodes. Uses ImageMagick(http://www.imagemagick.org/) for image support and zbar(http://zbar.sourceforge.net/) for scanning the barcodes.
http://valokuva.org
383 stars 131 forks source link

checking whether to enable zbarcode Imagick support... no, why? #20

Open cchavez opened 8 years ago

cchavez commented 8 years ago

Hi all. I have compiled and installed php-zbarcode extension at:

12.04.5 LTS, Precise Pangolin PHP 5.3.10-1ubuntu3.21

The output did not show any error messages or something, but when I check the Apache/PHP info it says the following:

zbarcode module enabled zbarcode module version 0.0.1-dev ZBar library version 0.10 ImageMagick version ImageMagick 6.6.9-7 2014-03-06 Q16 http://www.imagemagick.org Imagick support disabled GD support disabled

Test cases also says the following:

SKIP Check whether imagick integration works [tests/006-imagick.phpt] reason: Imagick extension is not loaded

I'm not sure what I'm missing to get enable Imagick support at php ?

jorissteyn commented 8 years ago

Hello @cchavez,

In case you haven't figured it out yourself: you have to explicitly configure php-zbarcode to enable imagick and/or gd support. Like this:

./configure --enable-zbarcode-imagick --enable-zbarcode-gd