[sane-devel] Compile problem ,please help!

Gerard Klaver gerard at gkall.hobby.nl
Thu Aug 3 16:15:50 UTC 2006


On Thu, 2006-08-03 at 17:40 +0800, zf wrote:
> What's kfh.desc file ? What information I must write in it?
> 
> ----- Original Message ----- 
> From: "Gerard Klaver" <gerard at gkall.hobby.nl>
> To: "zf" <zhang_fan at hk.fujitsu.com>
> Cc: "OrgSane-Devel at Lists. Alioth. Debian." <sane-devel at lists.alioth.debian.org>
> Sent: Thursday, August 03, 2006 1:23 AM
> Subject: Re: [sane-devel] Compile problem ,please help!
> 
> 
> > 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
> > 
> >

See the doc directory for descriptions.txt and
see the doc/descriptions directory for examples.
-- 
--------
m.vr.gr.
Gerard Klaver




More information about the sane-devel mailing list