Re: [sane-devel] scanimage does not recognize basic long options

2023-02-02 Thread Karl Weber
On Thursday, 2 February 2023 22:44:34 CET m. allan noah wrote:
> I bet you are not running the version of scanimage you think you are.

I thought exactly the same :)

So I removed all packages from my openSUSE 15.3 repository, in particular 
sane-backends.

Now I get:

scanimage --version
scanimage (sane-backends) 1.1.1.362-6b588; backend version 1.1.1

sudo ldconfig -v | grep sane
[...]
libsane.so.1 -> libsane.so.1.1.1

So now I think, I do call the version I hope to call. Or not?

Thanks
Karl






Re: [sane-devel] scanimage does not recognize basic long options

2023-02-02 Thread m. allan noah
I bet you are not running the version of scanimage you think you are.

On Thu, Feb 2, 2023 at 4:35 PM Karl Weber  wrote:

> Hi,
>
> I came to the mentioned package through this issue
>
> https://gitlab.com/sane-project/backends/-/issues/440
>
> Meanwhile, I worked with a git clone, however with the same result :(
>
> On Thursday, 2 February 2023 22:01:03 CET Ralph Little wrote:
> > I downloaded and built said package and I don't see the same issue:
> >
> > scanimage --format=tiff -d 'test:0' --resolution 200 -x 210.000 -y
> 296.985
> > --mode Color  --batch="sid-600-%03d.tiff" --source 'Automatic Document
> > Feeder' --batch-count=1
> >
> > This works for me just fine.
>
> Ok. When I enter the command like you did, I get
>
> scanimage: rounded value of br-x from 210 to 200
> scanimage: rounded value of br-y from 296.985 to 200
> Scanning 1 page, incrementing by 1, numbering from 1
> Scanning page 1
> Scanned page 1. (scanner status = 5)
> Batch terminated, 1 page scanned
>
> When I enter
>
> scanimage --format=jpeg --resolution 200 -x 210.000 -y 296.985 --mode
> Color --
> batch="fff-%03d.jpeg" --source ADF --batch-count=3
>
> I get
>
> scanimage: unrecognized option '--format=jpeg'
>
> The backend used in this case is hpaio.
>
> Thanks
> Karl
>
>
>
>
>
>
>
>
>
>
>

-- 
"well, I stand up next to a mountain- and I chop it down with the edge of
my hand"


Re: [sane-devel] scanimage does not recognize basic long options

2023-02-02 Thread Karl Weber
Hi,

I came to the mentioned package through this issue

https://gitlab.com/sane-project/backends/-/issues/440

Meanwhile, I worked with a git clone, however with the same result :(

On Thursday, 2 February 2023 22:01:03 CET Ralph Little wrote:
> I downloaded and built said package and I don't see the same issue:
> 
> scanimage --format=tiff -d 'test:0' --resolution 200 -x 210.000 -y 296.985
> --mode Color  --batch="sid-600-%03d.tiff" --source 'Automatic Document
> Feeder' --batch-count=1
> 
> This works for me just fine.

Ok. When I enter the command like you did, I get

scanimage: rounded value of br-x from 210 to 200
scanimage: rounded value of br-y from 296.985 to 200
Scanning 1 page, incrementing by 1, numbering from 1
Scanning page 1
Scanned page 1. (scanner status = 5)
Batch terminated, 1 page scanned

When I enter

scanimage --format=jpeg --resolution 200 -x 210.000 -y 296.985 --mode Color --
batch="fff-%03d.jpeg" --source ADF --batch-count=3

I get

scanimage: unrecognized option '--format=jpeg'

The backend used in this case is hpaio.

Thanks 
Karl












Re: [sane-devel] scanimage does not recognize basic long options

2023-02-02 Thread Ralph Little
Hi,

On Thu, Feb 2, 2023 at 12:41 PM Karl Weber  wrote:

> Hi,
>
> I downloaded the source code tar ball sane-backends-1.1.1.360-573ca.tar.gz
> and
> built sane simply with
>
> ./configure
> make
> make install
>
> When I execute scanimage, it does not recognize basic long options. I get
> the
> error messages like
>
> scanimage: unrecognized option '--format=jpeg'
>
>
I downloaded and built said package and I don't see the same issue:

scanimage --format=tiff -d 'test:0' --resolution 200 -x 210.000 -y 296.985
--mode Color  --batch="sid-600-%03d.tiff" --source 'Automatic Document
Feeder' --batch-count=1

This works for me just fine.

Cheers,
Ralph


[sane-devel] scanimage does not recognize basic long options

2023-02-02 Thread Karl Weber
Hi,

I downloaded the source code tar ball sane-backends-1.1.1.360-573ca.tar.gz and 
built sane simply with

./configure
make
make install

When I execute scanimage, it does not recognize basic long options. I get the 
error messages like

scanimage: unrecognized option '--format=jpeg'

Always for the first basic long option on the command line. scanimage does, 
however, recognize scanner specific long options like

--resolution 200

My environment is a linux box (openSUSE 15.3) and from what I gather, the 
functions in lib/getopt.c are not used. I would guess, that it is used from 
libc. On my box it is /lib64/libc.so.6

Could you please give me some advice about what might have gone wrong?

Thanks in advance,
Karl