Wraps SANE scanner library for interfacing with data from scanner hardware (e.g. flatbed document scanners).
Original code by Kyle McDonald.
Some amends by Elliot Woods.
ofxSane code published under MIT license.
Per project you need to:
- Drag and drop the contents of
ofxSane/libs
andofxSane/src
into your project - Add
../../../addons/ofxSane/libs/sane/include
to yourHeader Search Paths
project property.
The example should work out of the box on OSX. But if not, then try the following:
- Clone the GitHub http://git.debian.org/git/sane/sane-backends.git to somewhere on your hard drive
git clone http://git.debian.org/git/sane/sane-backends.git
- Using terminal, go inside the repo, and then into the
backend/
directory - Type
CC="gcc -m32" ./configure
, hit enter. - Type
make -j8
, hit enter. - Type
sudo make install
, hit enter. - Enter your system password
This should install libsane.1.dylib
and folder sane
into /usr/local/lib
. Drag and drop both of these into your project.