GithubHelp home page GithubHelp logo

Comments (4)

nguyenq avatar nguyenq commented on July 2, 2024

The doc states: "On Linux, scanning requires installation of SANE packages." Have you installed it?

from vietocr3.

nguyenq avatar nguyenq commented on July 2, 2024

It was recently discovered that the jsane library, the java wrapper to the SANE functions, only works with Linux 32-bit. Running it on Linux 64-bit will throw UnsatisfiedLinkError exceptions. It looks like a libjsane.so has to be compiled for 64-bit.

Background: http://imagej.1557.x6.nabble.com/Scan-does-not-scan-td3685074.html
Source: http://thorntonzone.com/manuals/Compression/Fax,%20IBM%20MMR/MMSC/mmsc/uk/co/mmscomputing/device/sane/index.html

from vietocr3.

nguyenq avatar nguyenq commented on July 2, 2024

We can recompile the library on Linux Ubuntu 64-bit, but it looks like some change to the source code is necessary as UnsatisfiedLinkError exceptions still happen. Need JNI expert help!

from vietocr3.

ekuester avatar ekuester commented on July 2, 2024

In my opinion you should leave out the scan option in the GUI. The uk.co.mmscomputing.device.sane.jar is too old for modern java ...
Nevertheless I gave it a try:
As outlined you need lin64 code. I fetched it from
ttps://github.com/julian554/jscan/tree/master/src/main/java/uk/co/mmscomputing/device/sane/lin64,
corrected the location of some include files and replaced libsane.so in jsane.cpp by libsane.so.1. Now build lib with
g++ -Wall -fPIC -fpermissive -pthread -D_REENTRANT -D_GNU_SOURCE -shared -o libjsane.so jsane.cpp jdesc.cpp jnu.cpp and get 64-bit libjsane.so . I copied this into /usr/lib so that it can be found by the program. Starting the JAR the above error messages are gone BUT I get a fatal error detected by the Java Runtime Environment ( SIGSEGV fault ). Here I gave up.

from vietocr3.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.