primax: Thread: Problems compiling primax_scan-0.93beta3


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Problems compiling primax_scan-0.93beta3
From: Richard Mawson ####@####.####
Date: 29 Dec 2001 15:46:17 -0000
Message-Id: <01122915390800.09456@P200MMX>

I have downloaded this package, but I have to admit I am fairly new to the 
Linux world and am probably making a stupid mistake. I believe the tiff 
libraries are installed correctly, but I get the following errors while 
running make:

gcc  -g -O2  -o primax_scan  LM9811.o primax_scan.o lp.o tables.o  -lm
primax_scan.o: In function `tiff_open':
/home/rmawson/downloads/scanner/primax_scan-0.93beta3/primax_scan.c:177: 
undefined reference to `TIFFOpen'
/home/rmawson/downloads/scanner/primax_scan-0.93beta3/primax_scan.c:183: 
undefined reference to `TIFFSetField'
/home/rmawson/downloads/scanner/primax_scan-0.93beta3/primax_scan.c:184: 
undefined reference to `TIFFSetField'
/home/rmawson/downloads/scanner/primax_scan-0.93beta3/primax_scan.c:185: 
undefined reference to `TIFFSetField'
/home/rmawson/downloads/scanner/primax_scan-0.93beta3/primax_scan.c:186: 
undefined reference to `TIFFSetField'
/home/rmawson/downloads/scanner/primax_scan-0.93beta3/primax_scan.c:187: 
undefined reference to `TIFFDefaultStripSize'
/home/rmawson/downloads/scanner/primax_scan-0.93beta3/primax_scan.c:187: 
undefined reference to `TIFFSetField'
/home/rmawson/downloads/scanner/primax_scan-0.93beta3/primax_scan.c:193: 
undefined reference to `TIFFSetField'
/home/rmawson/downloads/scanner/primax_scan-0.93beta3/primax_scan.c:194: 
undefined reference to `TIFFSetField'
/home/rmawson/downloads/scanner/primax_scan-0.93beta3/primax_scan.c:195: 
undefined reference to `TIFFSetField'
/home/rmawson/downloads/scanner/primax_scan-0.93beta3/primax_scan.c:200: 
undefined reference to `TIFFSetField'
primax_scan.o:/home/rmawson/downloads/scanner/primax_scan-0.93beta3/primax_scan.c:201: 
more undefined references to `TIFFSetField' follow
primax_scan.o: In function `tiff_close':
/home/rmawson/downloads/scanner/primax_scan-0.93beta3/primax_scan.c:239: 
undefined reference to `TIFFClose'
primax_scan.o: In function `read_scan_data':
/home/rmawson/downloads/scanner/primax_scan-0.93beta3/primax_scan.c:368: 
undefined reference to `TIFFWriteScanline'
collect2: ld returned 1 exit status
make: *** [primax_scan] Error 1


Does anyone have any idea why this happens? I am running Slackware 8.

-------------
Richard Mawson
Subject: Re: Problems compiling primax_scan-0.93beta3
From: Christian Ordig ####@####.####
Date: 29 Dec 2001 17:17:33 -0000
Message-Id: <20011229180754.A31252@odin.chris.com>

On Sat, Dec 29, 2001 at 03:39:08PM +0000, Richard Mawson wrote:
> gcc  -g -O2  -o primax_scan  LM9811.o primax_scan.o lp.o tables.o  -lm
> primax_scan.o: In function `tiff_open':
I also got this under Slackware 8.0 today.
The Makefile is not generated correctly by the ./configure.

Solution:

Edit the Makefile.
go to the Line saying "LIBS=-lm"
and change it to "LIBS=-lm -ltiff -lz"

do a make clean and recompile.
your libtiff and libz have to be in a path which is searched by the linker,
but I think they should be there ,-)

-- 
Christian Ordig
Germany
Subject: Problems compiling primax_scan-0.93beta3
From: Richard Mawson ####@####.####
Date: 30 Dec 2001 19:34:13 -0000
Message-Id: <01123019270200.06213@P200MMX>

Thanks for the previous answer - it worked a treat, and now I have an 
executable. The problem I have now is that the generated .tif file is not a 
valid format (also far too small), and while scanning I get this displayed:

/home/rmawson/downloads/pictures/scan.tiff: LZW compression is not available 
to due to Unisys patent enforcement.
/home/rmawson/downloads/pictures/scan.tiff: Compression algorithm does not 
support random access.
... (a few reams of the same line) ...

Have you any ideas?

-------------
Richard Mawson
Subject: Re: Problems compiling primax_scan-0.93beta3
From: Christian Ordig ####@####.####
Date: 30 Dec 2001 21:26:35 -0000
Message-Id: <20011230222021.A17504@odin.chris.com>

On Sun, Dec 30, 2001 at 07:27:02PM +0000, Richard Mawson wrote:
> /home/rmawson/downloads/pictures/scan.tiff: LZW compression is not available 
> to due to Unisys patent enforcement.
> /home/rmawson/downloads/pictures/scan.tiff: Compression algorithm does not 
> support random access.
> ... (a few reams of the same line) ...
yes. this is a problem with newer libtiff ... 
> Have you any ideas?
-C 0 should help

btw. have you tried the SANE Backend?

-- 
Christian Ordig
Germany
Subject: Re: Problems compiling primax_scan-0.93beta3
From: ####@####.####
Date: 31 Dec 2001 07:10:12 -0000
Message-Id: <Pine.LNX.4.33L2.0112310802100.2215-100000@localhost.localdomain>

On Sun, 30 Dec 2001, Christian Ordig wrote:

> btw. have you tried the SANE Backend?

I tried it. It worked a treat with my network scanny
(colorado d 300) ... before the last version came out.
Version 0.5 produces very pale white images of very few
kbytes (and unfortunately I didn't save version 0.4
which is no longer available from the site).

Once installed the sane backend and started the primaxd
executable as daemon, the scanner immediately becomes available
with no exra fiddling from gimp, star-office and of course
xscan. Wonderful ! I do hope it will be fixed again ASAP.

Happy New Year everybody,

-- 
Michele Alzetta

Subject: Re: Problems compiling primax_scan-0.93beta3
From: Richard Mawson ####@####.####
Date: 2 Jan 2002 21:36:06 -0000
Message-Id: <02010221275800.00269@P200MMX>

>btw. have you tried the SANE Backend? 

I have not tried the SANE backend yet, no. Downloading it now... But I have 
managed to get this bit of kit working fine now - thanks to you. I dont 
suppose you know why Slackware doesn't include 'tifftopnm'? It stops 'yet 
another Primax GUI' from working....

Regards,

-------------
Richard Mawson
Subject: Re: Problems compiling primax_scan-0.93beta3
From: Christian Ordig ####@####.####
Date: 3 Jan 2002 11:13:46 -0000
Message-Id: <20020103120710.B12104@odin.chris.com>

On Wed, Jan 02, 2002 at 09:28:22PM +0000, Richard Mawson wrote:
> I have not tried the SANE backend yet, no. Downloading it now... But I have 
> managed to get this bit of kit working fine now - thanks to you.
,-)
> I dont 
> suppose you know why Slackware doesn't include 'tifftopnm'?
hehe ... no I'm not a part of the slackware team ...
> It stops 'yet 
> another Primax GUI' from working....
yes, I had to get the sources and compile it myself, too.

-- 
Christian Ordig
Germany
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.