Re: [sane-devel] OS X 10.9.5

2017-12-28 Thread Tom Myers
There is a link on Ellert's page “Older versions”  Here it is below.  No luck 
with Sierra (10.12) or High Sierra (10.13) yet.

http://www.ellert.se/twain-sane/olderversions.html

> On Dec 28, 2017, at 9:19 PM, Adrien Belkin  wrote:
> 
> Hi everyone!
> 
> My grandpa gave me the mission to get his very old SnapScan Touch AGFA usable 
> again. So I read about the Twain Sane on different forums and I concluded 
> that it would work. So I checked how to use it and when I downloaded the 
> TWAIN SANE Interface and tried to open the libusb.pkg, it told me (sorry, my 
> computer is in French) a message like : 
> 
> WRONG VERSION OF Mac OS X 
> This package was compiled for version 10.11
> 
> My computer is a Mac OS X 10.9.5. 
> 
> So I checked on the historic topics to see a problem like mine, I tried 
> different pages to see if I was able to download an old version and I must 
> have missed a thing. Where can I find a version of the Twain Sane Project for 
> my Mac OS X 10.9.5 iMac.
> 
> Thank you everyone,
> 
> Adrien Belkin
> Ouvrier agricole bio
> 581-574-3543
> -- 
> sane-devel mailing list: sane-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
> to sane-devel-requ...@lists.alioth.debian.org

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] Can't use scanner on Mac High Sierra (10.13)

2017-10-25 Thread Tom Myers
I have been able to build the SANE-Backends-1.0.27   But running it gives a 
problem on USB scanners. It works fine with network scanner 

——— Building ---

./configure BACKENDS="epson2" PRELOADABLE_BACKENDS="epson2" --with-usb
make
make install

Note it would be great if the epson2.desc file be updated for the new 12000XL

:model  "Expression 12000XL"
:interface  "USB"
:usbid  "0x04b8" "0x015b"
:status :good
:comment"overseas version of the DS-G2"

——— LibUSB 
I am using libusb 1.0.21

(found from brew list —versions)

— Testing -

BUG Report

sane-find-scanner returns 

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x0bda [Realtek], product=0x8153 [USB 10/100/1000 
LAN]) at libusb:001:006
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.

  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.


——— And more verbose

sane-find-scanner -v -v
This is sane-find-scanner from sane-backends 1.0.27

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

searching for SCSI scanners:
  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

searching for USB scanners:
trying libusb:


bLength   18
bDescriptorType   1
bcdUSB3.00
bDeviceClass  0
bDeviceSubClass   0
bDeviceProtocol   0
bMaxPacketSize0   9
idVendor  0x0BDA
idProduct 0x8153
bcdDevice 48.00
iManufacturer 1 (Realtek)
iProduct  2 (USB 10/100/1000 LAN)
iSerialNumber 6 (0100)
bNumConfigurations2
 
 bLength  9
 bDescriptorType  2
 wTotalLength 57
 bNumInterfaces   1
 bConfigurationValue  1
 iConfiguration   0 ()
 bmAttributes 160 (Remote Wakeup)
 MaxPower 64 mA
  
   
   bLength9
   bDescriptorType4
   bInterfaceNumber   0
   bAlternateSetting  0
   bNumEndpoints  3
   bInterfaceClass255
   bInterfaceSubClass 255
   bInterfaceProtocol 0
   iInterface 0 ()

bLength   7
bDescriptorType   5
bEndpointAddress  0x81 (in 0x01)
bmAttributes  2 (bulk)
wMaxPacketSize1024
bInterval 0 ms
bRefresh  0
bSynchAddress 0

bLength   7
bDescriptorType   5
bEndpointAddress  0x02 (out 0x02)
bmAttributes  2 (bulk)
wMaxPacketSize1024
bInterval 0 ms
bRefresh  0
bSynchAddress 0

bLength   7
bDescriptorType   5
bEndpointAddress  0x83 (in 0x03)
bmAttributes  3 (interrupt)
wMaxPacketSize2
bInterval 8 ms
bRefresh  0
bSynchAddress 0
 
 bLength  9
 bDescriptorType  2
 wTotalLength 98
 bNumInterfaces   2
 bConfigurationValue  2
 iConfiguration   0 ()
 bmAttributes 160 (Remote Wakeup)
 MaxPower 64 mA
  
   
   bLength9
   bDescriptorType4
   bInterfaceNumber   0
   bAlternateSetting  0
   bNumEndpoints  1
   bInterfaceClass2
   bInterfaceSubClass 6
   bInterfaceProtocol 0
   iInterface 5 (CDC Communications Control)

bLength   7
bDescriptorType   5
bEndpointAddress  0x83 (in 0x03)
bmAttributes  3 (interrupt)
wMaxPacketSize16
bInterval 8 ms
bRefresh  0
bSynchAddress 0
  
   
   bLength9
   bDescriptorType4
   bInterfaceNumber   1
   bAlternateSetting  0
   bNumEndpoints  0
   bInterfaceClass10
   bInterfaceSubClass 0
   bInterfaceProtocol 0
   iInterface 0 ()
   
   bLength9
   bDescriptorType4
   bInterfaceNumber   1
   bAlternateSetting  1
   bNumEndpoints  2
   bInterfaceClass10
   bInterfaceSubClass 0
   bInterfaceProtocol 0
   iInterface 4 (Ethernet Data)

bLength   7
bDescri

Re: [sane-devel] sane-backend 1.0.27 USB broken on Mac with Homebrew

2017-09-26 Thread Tom Myers
Testing in 10.12.6 
brew reinstall 
https://github.com/yurikoles/homebrew-core/blob/sane-backends-1.0.27-3/Formula/sane-backends.rb
 100.0%
Error: /Library/Caches/Homebrew/Formula/sane-backends.rb:7: syntax error, 
unexpected '<'

 ^
/Library/Caches/Homebrew/Formula/sane-backends.rb:8: syntax error, unexpected 
'<'

 ^
/Library/Caches/Homebrew/Formula/sane-backends.rb:9: syntax error, unexpected 
'<'
  
   ^
/Library/Caches/Homebrew/Formula/sane-backends.rb:11: syntax error, unexpected 
'<'
  https://assets-cdn.github.com";>
   ^
/Library/Caches/Homebrew/Formula/sane-backends.rb:11: syntax error, unexpected 
tIDENTIFIER, expecting end-of-input
  https://assets-cdn.github.com";>
   ^
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:22:in `module_eval'
/usr/local/Library/Homebrew/formulary.rb:22:in `load_formula'
/usr/local/Library/Homebrew/formulary.rb:79:in `load_file'
/usr/local/Library/Homebrew/formulary.rb:134:in `load_file'
/usr/local/Library/Homebrew/formulary.rb:70:in `klass'
/usr/local/Library/Homebrew/formulary.rb:66:in `get_formula'
/usr/local/Library/Homebrew/formulary.rb:176:in `factory'
/usr/local/Library/Homebrew/extend/ARGV.rb:29:in `block in resolved_formulae'
/usr/local/Library/Homebrew/extend/ARGV.rb:27:in `map'
/usr/local/Library/Homebrew/extend/ARGV.rb:27:in `resolved_formulae'
/usr/local/Library/Homebrew/cmd/reinstall.rb:7:in `reinstall'
/usr/local/Library/brew.rb:127:in `'

-
Testing in 10.13
brew reinstall 
https://github.com/yurikoles/homebrew-core/blob/sane-backends-1.0.27-3/Formula/sane-backends.rb
 100.0%
Error: /Library/Caches/Homebrew/Formula/sane-backends.rb:7: syntax error, 
unexpected '<'

 ^
/Library/Caches/Homebrew/Formula/sane-backends.rb:8: syntax error, unexpected 
'<'

 ^
/Library/Caches/Homebrew/Formula/sane-backends.rb:9: syntax error, unexpected 
'<'
  
   ^
/Library/Caches/Homebrew/Formula/sane-backends.rb:11: syntax error, unexpected 
'<'
  https://assets-cdn.github.com";>
   ^
/Library/Caches/Homebrew/Formula/sane-backends.rb:11: syntax error, unexpected 
tIDENTIFIER, expecting end-of-input
  https://assets-cdn.github.com";>
   ^
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:22:in `module_eval'
/usr/local/Library/Homebrew/formulary.rb:22:in `load_formula'
/usr/local/Library/Homebrew/formulary.rb:79:in `load_file'
/usr/local/Library/Homebrew/formulary.rb:134:in `load_file'
/usr/local/Library/Homebrew/formulary.rb:70:in `klass'
/usr/local/Library/Homebrew/formulary.rb:66:in `get_formula'
/usr/local/Library/Homebrew/formulary.rb:176:in `factory'
/usr/local/Library/Homebrew/extend/ARGV.rb:29:in `block in resolved_formulae'
/usr/local/Library/Homebrew/extend/ARGV.rb:27:in `map'
/usr/local/Library/Homebrew/extend/ARGV.rb:27:in `resolved_formulae'
/usr/local/Library/Homebrew/cmd/reinstall.rb:7:in `reinstall'
/usr/local/Library/brew.rb:127:in `'
ITALex15:/ tmyers$ 




















> On Aug 12, 2017, at 8:39 AM, Yurii Kolesnykov  wrote:
> 
> сб, 12 серп. 2017 о 09:05 Olaf Meeuwissen  > пише:
> They don't get deleted later.  The files to be installed don't get
> created to begin with.  This is arguably a bug in the sane-backends
> build system but you can easily work around it by running a `make`
> before doing a `make install`.
> 
> It looks like the homebrew stuff assumes that `make install` will be
> smart enough to also trigger builds for everything that needs to be
> installed.  A bit overly optimistic, if you ask me ;-)
> 
> Below is the Makefile.am snippet that installs the configuration files.
> The first line after the @list, checks for a readable configuration but
> because all these files are generated they don't exist unless you run a
> `make install` first.
> 
>   install-becfg:
>   @# Libtool has a bug where it will sometimes symlink the last
>   @# installed library in $(sanelibdir) to $(sanelibdir)/libsane.*.
>   @# Having two libsane's can cause issues so get rid of it.
>   -rm -f $(DESTDIR)$(sanelibdir)/libsane.*
>   test -z "$(configdir)" || $(MKDIR_P) "$(DESTDIR)$(configdir)"
>   test -z "$(configdir)/dll.d" || $(MKDIR_P) 
> "$(DESTDIR)$(configdir)/dll.d"
>   @list="$(BACKEND_CONFS_ENABLED) saned.conf dll.conf"; for cfg in 
> $$list; do \
> if test ! -r $${cfg}; then continue; fi; \
> if test -f $(DESTDIR)$(configdir)/$${cfg}; then \
> echo NOT overwriting $${cfg} in $(configdir)...; \
> else \
> echo installing $${cfg} in $(configdir)/$${cfg}...; \
> $(INSTALL_DATA) $${cfg} $(DESTDIR)$(configdir)/$${cfg} \
> || exit 1; \
> fi; \
>

Re: [sane-devel] sane-backend 1.0.27 USB broken on Mac with Homebrew

2017-07-27 Thread Tom Myers
I have a 1XL I can test with with if there is a 1.0.27 built for macintosh. 
 Just yell where I can download it.

> On Jul 27, 2017, at 12:14 PM, schmo-fu  wrote:
> 
> Hey Olaf and Yurii,
> 
> thank you for your support, there is some progress:
> First i replaced usb-compat- with libusb-dependency in the formula.
> sane-backends compiled, but still no usb-support.
> Then i put »depends_on "pkg-config"« into the formula.
> 
> And here we go:
> [sanei_usb] sanei_usb_init: initializing libusb-1.0
> [sanei_usb] sanei_usb_scan_devices: marking existing devices
> [sanei_usb] libusb_scan_devices: Looking for libusb-1.0 devices
> [sanei_usb] libusb_scan_devices: device 0x04a9/0x221c at 038:002 is not
> configured
> [sanei_usb] libusb_scan_devices: found libusb-1.0 device (0x05ac/0x8215)
> interface 0 at libusb:006:003
> [sanei_usb] store_device: add dn 0 with libusb:006:003
> 
> Wow! This looked so good, until i realized that the device 0x04a9 "is
> not configured" (and the other one is just the Bluetooth-USB-Controller).
> So »scanimage -L« tells me, that there is still no scanner.
> But this may be an unrelated issue, or isn't it?
> (The scanner btw. is a CanoScan LiDE 60. Switching back to sane-backends
> 1.0.25 shows this:
> found USB scanner (vendor=0x04a9 [Canon], product=0x221c [CanoScan],
> chip=GL842) at libusb:038:002).
> 
> Ah, here is the log:
> https://gist.github.com/6875017d99847cd4bfa5613f61216306
> 
> 
> Gruß,
> Thomas.S
> (aka schmo-fu)
> 
> Am 27.07.17 um 14:51 schrieb Yurii Kolesnykov:
>> Hi, Olaf, Thomas!
>> 
>> Having another round through the info in the various links you and Yurii
>>> provided I noticed
>>> 
>>>  checking for pkg-config... no
>>> 
>>> Is homebrew using pkgconfig instead?  If so, I'd suggest adding
>>> something like
>>> 
>>>  system "ln", "-s", "pkg-config", "/usr/bin/pkgconfig"
>>> 
>> No need to do this, in brew this may be addressed by adding `depends_on
>> "pkg-config"`
>> 
>> *before* running configure to sane-backends.rb.  Adjust /usr/bin as
>>> necessary.  While at it, also drop the
>>> 
>>>  depends_on "libusb-compat"
>>> 
>>> or replace it with something like
>>> 
>>>  depends_on "libusb-1.0"
>>> 
>>> at least, do yourself a favour and build against libusb-1.0.
>>> 
>> Thomas, please try putting just `libusb` here, we have such formula:
>> https://github.com/Homebrew/homebrew-core/blob/master/Formula/libusb.rb
>> 
>> This formula Olaf?
>> 
> 
> -- 
> sane-devel mailing list: sane-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
> to sane-devel-requ...@lists.alioth.debian.org



-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Epson DS fix (was Re: Is it time of a new release?)

2017-05-02 Thread Tom Myers
Do you know if the new release 1.0.26  will be built for macOS Sierra (10.12)?  
I would be willing to help a bit on this. I tried to build it with the latest 
Xcode and had issues. Not sure if it was me or the code. I am a bit rusty in 
using the latest code but would be willing to help if need be.

Tom Myers
585-752-1803


> On Apr 30, 2017, at 9:40 PM, Olaf Meeuwissen  
> wrote:
> 
> Hi René,
> 
> m. allan noah writes:
> 
>> Go ahead and commit it.
> 
> Looks like you haven't gotten around to doing so.  Since we have a code
> freeze coming up 2017-05-07, please do so soon.
> 
>> allan
>> 
>> On Mon, Mar 13, 2017 at 1:42 PM, René Rebe  wrote:
>>> Hi all,
>>> 
>>> with a customer we made a small patch to fix scanning with some newer Epson 
>>> DS scanners,
>>> this is effectively this bug report:
>>> 
>>>
>>> https://alioth.debian.org/tracker/index.php?func=detail&aid=315552&group_id=30186&atid=410366
>>> 
>>> Should I just go ahead and commit this buffer handling patch to git, or 
>>> should I get familiar with the web management thingy and upload it there?
>>> 
>>>René
>>> 
>>> On Mar 13, 2017, at 2:11, m. allan noah  wrote:
>>> 
>>>> We were discussing another release recently. We have at least one
>>>> major networking security bug we need to fix, and there are a few
>>>> backends which have some outstanding patches yet to commit. I think
>>>> perhaps at the end of April these things will be ready. If you are
>>>> able, taking a pass through our bug tracker looking for things we
>>>> might have missed would be helpful.
> 
> Hope this helps,
> --
> Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
> GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
> Support Free Softwarehttps://my.fsf.org/donate
> Join the Free Software Foundation  https://my.fsf.org/join
> 
> -- 
> sane-devel mailing list: sane-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
> to sane-devel-requ...@lists.alioth.debian.org



-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] Is there a compiled version of sane-backends for MacOS Sierra ( 10.12)?

2017-04-12 Thread Tom Myers
On http://www.ellert.se/twain-sane/ <http://www.ellert.se/twain-sane/> I see 
that there is:



sane-backends version 1.0.25, 2015-11-01

which is for MacOS 10.11 (El Capitan).  Has anyone built one for MacOS Sierra,


Thanks.

Tom Myers

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] On Macintosh: Not finding Epson Scanner, try this.

2015-11-25 Thread Tom Myers
If you can’t find an epson scanner when using scanimage -L you may want to run 
this short applescript that kills the Epson scanner process. Turns out it opens 
the scanner in exclusive access and doesn’t let it go.

A variant of this may work with other brand scanners also.
-- Kill any Epson monitor that is running in exclusive mode
try
set results to (do shell script "ps -xww  | grep 'MacOS/EPSON Scanner'")
set AppleScript's text item delimiters to {return & linefeed, return, 
linefeed, character id 8233, character id 8232}
set results to text items of results
set AppleScript's text item delimiters to {""}
log (count of results)
set firstLine to item 1 of results
if ((count of results) > 2 and firstLine contains "MacOS/EPSON Scanner") 
then
set pid to word 1 of firstLine
set results1 to (do shell script "logger 'Forcing Epson Scanner to 
quit, PID: '" & pid)
set results2 to (do shell script ("kill " & pid))
else
set results3 to (do shell script ("logger 'Epson Scanner not running'"))
end if
end try


-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org