[sane-devel] Compile problem ,please help!

m. allan noah anoah at pfeiffer.edu
Wed Aug 2 17:09:44 UTC 2006

On Wed, 2 Aug 2006, zf wrote:

>    Hi , all.
>    I am a new programmer in linux. I wrote one sane-backend named khf.c . When I finished this code, I use gcc compiled sane-backends/frontend/test.c and khf.c into one executable file.Then I run it , and it works~ my code can control the scanner. After that , I compile khf.c into one shared object named libsane-khf.so.1 and do this by using this command: gcc -shared -fpic khf.c -o libsane-khf.so.1
>    After that I do two things:
>  1. copy libsane-khf.so.1 into /usr/lib/sane
>  2. Add one line in /etc/sane.d/dll.conf : khf
>    However ,when I run xsane,it can't find any scanner. And I found my so isn't been called, since the sane_init is not called when xsane starts. This problem troubled me for a long time. Please help me!

did you also make a symlink:

ln -sf libsane-khf.so.1 libsane-khf.so

# out all lines from dll.conf except yours, and then try:

`strace scanimage -L` and see if your backend gets opened

what scanners does this backend support, fujitsu i assume?

allan noah
SANE fujitsu backend maintainer :)

"so don't tell us it can't be done, putting down what you don't know.
money isn't our god, integrity will free our souls" - Max Cavalera

More information about the sane-devel mailing list