hello,
you need to add
mode delphi directive in your source code because it come from delphi
in the
zbarimg_.lpr file :
program zbarimg_;
{$mode delphi}{$H+}
{$APPTYPE CONSOLE}
{$R *.res}
uses
SysUtils,
ZBar in 'lib/ZBar.pas',
// magick_wand in 'lib/ImageMagick/wand/magick_wand.pas', magick wand and imagemagick units
// ImageMagick in 'lib/ImageMagick/magick/ImageMagick.pas'; are included in lazarus
magick_wand,ImageMagick;
in the zbar.pas file :
unit zbar;
{$mode delphi}{$H+}
interface
{$MINENUMSIZE 4}
uses
Windows, SysUtils, Classes {, dbc, DLL96V1, DLLSP96};
you need to have also
imagemagick and
libzbar installed in your system or put all the dll of those libraries in your project folder (see
zbar_files attachment)
with the qr_code_example , i get qr_code_result (see attachments)
OK with Lazarus 1.6 Windows 32 bits , Libzbar 0.10 , ImageMagick 6.9.3-7-Q8-x86
there is a bug to be corrected : image is scanned twice.
Friendly, J.P