Skip to content

BenalexCheung/linux-document-scanning

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Linux SANE Scanning Application in C

The sample demonstrates how to implement a simple document scanning application on Linux in C.

Getting Started

  1. Install SANE:

    sudo apt-get update
    sudo apt-get install sane
    
  2. Download sane-backends-1.0.25.

  3. Extract the package and generate a symlink:

    Ubuntu

    sudo ln –s /usr/lib/x86_64-linux-gnu/libsane.so.1 /usr/lib/libsane.so

    Raspberry Pi

    sudo ln –s /usr/lib/arm-linux-gnueabihf/libsane.so.1 /usr/lib/libsane.so
  4. Get the source code and change the include path:

    SANE_INCLUDE=<Your SANE package path>/include
    
  5. Build the project:

    make
    
  6. Run the application:

    sudo ./hellosane
    

Reference

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.8%
  • Makefile 1.2%