[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using Sane front- and back-ends with Xsane



On Monday 18 March 2013 15:03:47 Gary Dale wrote:
> On 18/03/13 10:56 AM, Lisi Reisz wrote:
> > Using Squeeze with TDE 3.5.13.2
> >
> > I need some drivers in order to use Xsane with my scanner.  I have
> > downloaded and untarred the tarballs for sane-backends-1.0.23 and
> > sane-frontends-1.0.14, which are the ones I need, and all the files
> > appear to be there.  But I still get the error message<no devices
> > available>
> >
> > Clearly I have not told xsane where to look.  But I don't know how, so I
> > googled.  The best answer I got was this:
> >
> > <quote>
> > Probably your PATH environment var is set to use /usr/local/bin before
> > /usr/bin, so you are using the scanimage binary you compiled with
> > sane-backends, but you have nothing similar for libraries using
> > LD_LIBRARY_PATH.
> >
> > you have two choices: 1. recompile sane-backends to overwrite the
> > version installed by your OS, or 2. teach binaries to load the sane
> > libs from /usr/local/lib, see man ld.so
> > </quote>
> >
> > So how do I "recompile sane-backends to overwrite the
> > version installed by your OS"?  How do I tell it to overwrite?  Or how do
> > I "teach binaries to load the sane libs from /usr/local/lib"
> >
> > I have looked at man ld.so.
> > <quote>
> > Currently ld.so has no means of unloading and searching for compatible or
> > newer
> >         version of libraries.
> >
> >         ld.so  functionality is only available for executables compiled
> > using libc ver‐
> >         sion 4.4.3 or greater.
> > </quote>
> >
> > I have:
> > Package: libc-bin
> > State: installed
> > Automatically installed: no
> > Version: 2.11.3-4
> >
> > I am stuck and this is fairly urgent.  So I am asking for help instead of
> > giving myself a day or two to breathe, before trying again.
> >
> > I would be very grateful for any pointers.
> >
> > Thanks,
> > Lisi
>
> The beauty of open source is that you have the sources and can recompile
> them. Since the problem seems to be that the current binaries don't
> include the drivers you need, download the sane sources and recompile
> them. For this you will need to get not just the sane source packages
> but also the build-essentials package.

Thanks, Gary.  Worked a treat for sane-backends (once I looked for 
build-essential without the 's').

But I hit problems with sane-frontends.  I got the following errors while 
running <make install>:
<quote>
[snip] much of the same as below:
/home/lisi/Downloads/sane-frontends-1.0.14/src/scanadf.c:1526: undefined 
reference to `sane_get_option_descriptor'
/home/lisi/Downloads/sane-frontends-1.0.14/src/scanadf.c:1548: undefined 
reference to `sane_close'
/home/lisi/Downloads/sane-frontends-1.0.14/src/scanadf.c:1550: undefined 
reference to `sane_get_devices'
scanadf.o: In function `sighandler':
/home/lisi/Downloads/sane-frontends-1.0.14/src/scanadf.c:153: undefined 
reference to `sane_cancel'
collect2: ld returned 1 exit status
make[1]: *** [scanadf] Error 1
make[1]: Leaving directory `/home/lisi/Downloads/sane-frontends-1.0.14/src'
make: *** [all-recursive] Error 1
root@Tux-II:/home/lisi/Downloads/sane-frontends-1.0.14
</quote>

I then ran <make uninstall> in the hope of being allowed to start again.

<quote>
root@Tux-II:/home/lisi/Downloads/sane-frontends-1.0.14# make uninstall
making uninstall in include
make[1]: Entering directory 
`/home/lisi/Downloads/sane-frontends-1.0.14/include'
make[1]: Nothing to be done for `uninstall'.
make[1]: Leaving directory 
`/home/lisi/Downloads/sane-frontends-1.0.14/include'
making uninstall in lib
make[1]: Entering directory `/home/lisi/Downloads/sane-frontends-1.0.14/lib'
make[1]: Nothing to be done for `uninstall'.
make[1]: Leaving directory `/home/lisi/Downloads/sane-frontends-1.0.14/lib'
making uninstall in sanei
make[1]: Entering directory `/home/lisi/Downloads/sane-frontends-1.0.14/sanei'
make[1]: Nothing to be done for `uninstall'.
make[1]: Leaving directory `/home/lisi/Downloads/sane-frontends-1.0.14/sanei'
making uninstall in src
make[1]: Entering directory `/home/lisi/Downloads/sane-frontends-1.0.14/src'
removing /usr/local/bin/scanadf...
rm -f /usr/local/share/sane/sane-style.rc
make[1]: Leaving directory `/home/lisi/Downloads/sane-frontends-1.0.14/src'
making uninstall in doc
make[1]: Entering directory `/home/lisi/Downloads/sane-frontends-1.0.14/doc'
Removing xscanimage.1 in /usr/local/man/man1/xscanimage.1...
Removing xcam.1 in /usr/local/man/man1/xcam.1...
Removing scanadf.1 in /usr/local/man/man1/scanadf.1...
make[1]: Leaving directory `/home/lisi/Downloads/sane-frontends-1.0.14/doc'
root@Tux-II:/home/lisi/Downloads/sane-frontends-1.0.14#
</quote>

 Googling suggests that the problem is a linking one, and that the error was 
thrown by either g++ or C++, but I am not at all clear what I need to link to 
what. :-(

Help very gratefully received - but if the advice is RTFM, could you tell me 
which FM?

Thanks
Lisi


Reply to: