[sane-devel] Reflecta ProScan / Crystalscan 7200 PIE film scanner update

Vleeshouwers, J.M. J.M.Vleeshouwers at tue.nl
Fri Sep 7 20:54:08 UTC 2012


Hi Klaus,

The reference to reflecta7200.h (in reflecta.c line 42) is a leftover from previous work. It does nothing, just remove the line.
See below for the things I needed to do to add the backend. This is a summary of notes I took when trying to get it to work, your system may be different but I suppose it will at least be similar. Hope it helps.

Yours,

Jan


-----

Description for udev:
copy .desc file to ~/Source/sane-backends-git20120722/tools/udev
running ~/Source/sane-backends-git20120722/tools$ ./sane-desc -s udev -m udev
gives output for rules file; merge these entries with libsane.rules (/lib/udev/rules.d/40-libsane.rules)
(is there an other way if the other .desc-files are not present?
File made for backend, see tools subdirectory.

Dynamic loader:
/etc/sane.d/dll.conf - Configuration file for the SANE dynamic backend loader => add reflecta!
If not, the backend lib will not be found dynamically.

Other modifications:
1. in include/sane/sane.h:74: #if 1 to include status SANE_STATUS_WARMING_UP
2. in include/sane/sane.h:185: #if 1 to include SANE_FRAME_IR and SANE_FRAME_RGBI

Shared library building:
1. backends/Makefile.am: add rules for creating reflecta library (libsane-reflecta.la and the like)
   Following the instructions in the make file:
   line 80: BACKEND_CONFS: add reflecta.conf
   line 157: be_convenience_libs: add libreflecta.la
   line 200: be_dlopen_libs: add libsane-reflecta.la
   line 240/249: add lines
     libreflecta_la_SOURCES = reflecta.c reflecta.h
     libreflecta_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=reflecta
     nodist_libsane_reflecta_la_SOURCES = reflecta-s.c
     libsane_reflecta_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=reflecta
     libsane_reflecta_la_LDFLAGS = $(DIST_SANELIBS_LDFLAGS)
     libsane_reflecta_la_LIBADD = $(COMMON_LIBS) libreflecta.la ../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo ../sanei/sanei_config.lo ../sanei/sanei_config2.lo ../sanei/sanei_usb.lo ../sanei/sanei_scsi.lo ../sanei/sanei_thread.lo sane_strstatus.lo $(USB_LIBS)
     EXTRA_DIST += reflecta.conf.in

2. Generate Makefile.in from it by:
   rm backends/Makefile.in
   cd ~/Source/sane-backends-git20120722   
   automake --add-missing
   (also needed to recreate aclocal.m4: run aclocal without parameters)

3. Then rerun 'configure' and 'make'
   BACKENDS=reflecta ./configure --prefix=/usr --sysconfdir=/etc --disable-locking --enable-libusb_1_0

4. Build the backend
   cd ~/Source/sane-backends-git20120722
   make


________________________________________
From: Klaus Kaempf [kkaempf at suse.de]
Sent: Friday, September 07, 2012 9:54 PM
To: Vleeshouwers, J.M.
Cc: 'Michael Rickmann'; sane-devel at lists.alioth.debian.org
Subject: Re: Reflecta ProScan / Crystalscan 7200 PIE film scanner update

Hi Jan,

thanks a lot for sharing your code. I pushed it to
git://github.com/kkaempf/sane-backends.git, branch "reflecta".


* Vleeshouwers, J.M. <J.M.Vleeshouwers at tue.nl> [Sep 06. 2012 23:41]:
> Hi Michael & Klaus,
>
> A working separate Reflecta/PIE-USB demo backend in the attachment. At least it works for a Crystalscan 7200. I'm curious about your devices.

I couldn't get it compiled since reflecta7200.h is missing.
I'm also unsure about the required changes to backend/Makefile.am (see
https://github.com/kkaempf/sane-backends/commit/4505161aff70d295c4578c69f0592eeeb0712d18)


Regards,

Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5, 90409 Nürnberg, Germany



More information about the sane-devel mailing list