mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 13:04:05 -08:00
34607d71ee
- Refactoring: - All the files are now in a zxing folder, - Changed the namespaces so that everything is either in zxing or zxing::qrcode. - Moved most function implementations from the headers to source files. - Ported the new design from the Java code with LuminanceSource, BinaryBitmap, Binarizer, GlobalHistogramBinarizer and LocalBlockBinarizer. - Fixed two rare segmentation faults: one in GridSampler::checkAndNudgePoints, and one in ReedSolomonDecoder::decode. These would simply cause ArrayIndexOutOfBoundsExceptions in Java, but have to be checked explicitly in C++. - With help from Erno Mäkinen, used std::vector instead of ArrayRef in many places, as ArrayRef causes problems on Symbian phones. - Added scons build files. - Added a test application using ImageMagick. - More small changes. git-svn-id: https://zxing.googlecode.com/svn/trunk@1092 59b500cc-1b3d-0410-9834-0bbf25fbcc57
31 lines
728 B
Plaintext
31 lines
728 B
Plaintext
This is only tested on Linux. With some trouble, it might work on Windows as well.
|
|
|
|
To build the library only:
|
|
- Install scons
|
|
- 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"
|
|
|
|
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
|
|
|