Building

initial Klaus' instructions

  1. Clone our zbar repository. For read only access it is:

    hg clone http://hg.code.sf.net/p/zbarw/code zbarw-code
  2. Unpack wine originated dependency (http://sourceforge.net/projects/zbarw/files/deps/wine-1.4-zbar.7z/download) into zbar/video folder (preserve directory structure from the downloaded file).
    Alternatively use files from wine_gen directory to generate the dependency from original Wine files.
    This is an innovative solution to use directshow with wine, by Klaus.
  3. ./configure --with-directshow
  4. As an alternative here is one of the minimal configure lines. It excludes qr-code from build to make things easier. Omit --enable-codes switch to include all default code standards.

    ./configure --with-directshow --without-imagemagick --without-gtk --without-python --without-qt --without-java --enable-codes=ean,databar,code128,code93,code39

Troubleshooting

  • warning: dereferencing type-punned pointer will break strict-aliasing rules - insert CPPFLAGS=-fno-strict-aliasing in front of the configure command.