[sane-devel] LIDE 60. configure scanner - Mac Terminal

Ben Green greenb1 at mac.com
Wed Mar 2 23:32:02 UTC 2011


Hi allan,

Thanks for your advice - I have managed to get there - almost..
I have modified the backend file, run the script and make.

However I have been stumped with your instructions..

2. copy the file backend/.libs/libsane-genesys.so.1.0.23 over top of
the copy provided by your distro, not sure where it is on a Mac.
Probably in /usr/local/lib?
Note that the file name will change- your current file might end in
.21 or .22, that's fine. We want the new one to have the same name. We
are replacing the old file. You can save the old one before you
overwrite it if you want.


In the newly modified SANE backends folder, under the same directory
downloads/sane-backends-git20110221/backend/.libs/... i have the  
following..

libdll.a			libgenesys_la-genesys_gl841.o	libsane-dll.so			libsane.dylib
libdll.la			libgenesys_la-genesys_gl843.o	libsane-genesys.1.so		 
libsane.la
libdll_la-dll.o			libgenesys_la-genesys_gl847.o	libsane-genesys. 
1.so.dSYM	libsane.lai
libgenesys.a			libgenesys_la-genesys_low.o	libsane-genesys.la		 
libsane_dll_la-dll-s.o
libgenesys.la			libsane-dll.1.so		libsane-genesys.lai		 
libsane_genesys_la-genesys-s.o
libgenesys_la-genesys.o		libsane-dll.1.so.dSYM		libsane-genesys.so		 
libsane_la-dll-s.o
libgenesys_la-genesys_gl124.o	libsane-dll.la			libsane.1.dylib			 
sane_strstatus.o
libgenesys_la-genesys_gl646.o	libsane-dll.lai			libsane.1.dylib.dSYM

is the file here - named differently? - or am i on the wrong page? or  
has something not worked?


ALSO
in the system folder where I need to copy over the file..
  /usr/local/lib/sane i have the file" libsane-genesys.1.0.21.so"

this IS(?) the file i need to replace - correct?
and i need to re-name the new file to match this file? or i can just  
leave the file name that copies across?



Thanks for your help..

Ben




On 16 Feb 2011, at 01:30, m. allan noah wrote:

> wow- you're pretty far down the curve on this one. I'll try to be  
> more explicit.
>
> We are talking about source code. Not conf files (yet). Not compiled
> libraries (yet). You don't currently have any source code on your box
> unless you have explicitly downloaded it. We are going to download,
> modify, and compile that source code into a library. I've never done
> any of this on a Mac, so every detail here is suspect. The general
> idea is the same.
>
> 1. install the libusb-dev package (or libusb-devel, not sure what your
> OS calls it)
>
> 2. install gcc package and it's required dependencies
>
> 3. install the utility 'make' (it might be called gmake on your  
> platform)
>
> 4. download latest sane-backends from http://www.sane-project.org/snapshots/
> It will be named something like: sane-backends-git20110215.tar.gz
>
> ----------use the terminal from here on out--------------------
>
> 5. extract the file you just downloaded with this command (correct
> filename if different):
> tar xzf sane-backends-git20110215.tar.gz
> This will create a new directory, named something like:
> sane-backends-git20110215
>
> 6. Change in this new directory:
> cd sane-backends-git20110215
>
> 7. edit backend/genesys_devices.c file. I like vim, you can use
> whatever editor you want, including some icky gui thing, as long as it
> does not try to reformat the text.
>
> 8. around line 1573 you will see a section of data for the lide 60.
> Near the end of that section, there are a bunch of flags, separated by
> the '|' symbol. Remove the lines with 'CALIBRATION' in them, and add
> one in their place that says:
> '| GENESYS_FLAG_NO_CALIBRATION'
>
> 9. save the file.
>
> 10. Run the following command (all on one line)
> BACKENDS=genesys ./configure --prefix=/usr --sysconfdir=/etc -- 
> disable-locking
>
> 11. Run the following command (takes awhile)
> make
>
> 12. copy the file backend/.libs/libsane-genesys.so.1.0.23 over top of
> the copy provided by your distro, not sure where it is on a Mac.
> Probably in /usr/local/lib?
> Note that the file name will change- your current file might end in
> .21 or .22, that's fine. We want the new one to have the same name. We
> are replacing the old file. You can save the old one before you
> overwrite it if you want.
>
> 13. test with scanimage or xsane and various options.
>
> Only step #12 needs to be done as root.
>
> allan
> -- 
> "The truth is an offense, but not a sin"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110302/4ed57ade/attachment.htm>


More information about the sane-devel mailing list