1. libdmtx-vala Installation
Simply copy libdmtx.vapi into the directory where valac looks for vapis. This is usually /usr/share/vala/vapi, but if you are unsure and vala is installed, you can use pkg-config to obtain the location by running:
$ pkg-config --variable=vapidir vala-1.0
If you do not wish to install the bindings globally, you can use valac's —vapidir argument instead.
To use these bindings, you will need valac-0.7.6 or greater, and libdmtx-0.7.2 or greater.
An example program, test.vala, is included with these bindings. This program will user Cairo to generate a PDF containing a data matrix barcode. To compile it, simply run:
$ valac -o test --pkg libdmtx --pkg cairo test.vala
Compiling any other libdmtx vala code is just as simple. Simply add —pkg libdmtx, and valac will handle the rest.
4. This Document
Updates to this page ultimate feed into the wrapper/vala/README file that is distributed with the source package. If you are looking for information specific to an older release, please refer to this file as it exists in that package version.