zxing/cpp
smparkes@smparkes.net d65d3e0d4b Issue 820 second format info was read incorrectly
Semantically, this is just C++ version of the changes from Java. I also did
some minor renaming of variables to match the current Java source to aide
in keeping the two trees in sync.


git-svn-id: https://zxing.googlecode.com/svn/trunk@1754 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2011-04-29 18:01:46 +00:00
..
core Issue 820 second format info was read incorrectly 2011-04-29 18:01:46 +00:00
magick/src C++: fix dormat BitArray quiet zone checking bug that was causing rampant false positives 2010-08-26 14:46:31 +00:00
osx.xcodeproj Tweak svn/git ignores 2010-08-20 00:41:26 +00:00
scons Tweak svn/git ignores 2010-08-20 00:41:26 +00:00
.gitignore Tweak svn/git ignores 2010-08-20 00:41:26 +00:00
.svnignore C++ port: 2009-12-08 21:16:43 +00:00
astyle-options Many changes to the C++ port. 2009-11-01 17:30:30 +00:00
blackboxtest.sh C++: binarizer updates 2010-07-19 20:56:17 +00:00
format Many changes to the C++ port. 2009-11-01 17:30:30 +00:00
README Tweak svn/git ignores 2010-08-20 00:41:26 +00:00
SConscript Various user-contributed fixes (Issue 701, Issue 710, Issue 714, Issue 718) 2011-02-15 13:23:14 +00:00
SConstruct Many changes to the C++ port. 2009-11-01 17:30:30 +00:00

This is only tested on Linux. With some trouble, it might work on Windows as well.

The build process uses scons, a build tool written in python. You'll
need to have python installed, but scons installation is optional: a
runtime copy of scons (called scons-local) is included with zxing. To
use the included copy of scons-local, where the instructons says enter
"scons", enter "python scons/scons.py" instead. For example, to build
the library only, you'd use "python scons/scons.py lib" instead of
"scons lib".

To build the library only:
- Run "scons lib" in this folder (cpp)

To build the unit tests:
- Install cppunit (libcppunit-dev on Ubuntu)
- Run "scons tests"
- Run "testrunner" in the build folder

To build the test utility:
- Install Magick++ (libmagick++-dev on Ubuntu)
- Run "scons zxing"

An simple example application is now also included, but no compilation instructions yet.

To clean:
- Run "scons -c all"

To use the test utility:
- Basic usage:
  - "mkdir testout"
  - "zxing testout *.jpg > report.html"
- With the zxing test data, from the cpp folder:
  - "mkdir testout"
  - "build/zxing testout ../core/test/data/blackbox/qrcode-*/* > report.html"

To format the code:
 - Install astyle
 - Run ./format

To profile the code (very useful to optimize the code):
 - Install valgrind
 - "valgrind --tool=callgrind build/zxing - path/to/test/data/*.jpg > report.html"
 - kcachegrind is a very nice tool to analize the output