On Wed, 2006-08-02 at 18:26 +0800, 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! > -- > s
Did you add also a khf.desc file (needed for your udev or hotplug setup)? -- -------- m.vr.gr. Gerard Klaver
