primax: Thread: primax_scan-0.2 >>>> please help


[<<] [<] Page 1 of 1 [>] [>>]
Subject: primax_scan-0.2 >>>> please help
From: Oliver Larisch ####@####.####
Date: 24 Feb 2000 14:34:36 -0000
Message-Id: <00022415285800.00297@debian>

Hi,

i`ve tried to compile  primax_scan-0.2 
on my Linux-box, but.....:

debian:/tmp/primax_scan-0.2# make
gcc -O -c -g -I/tmp/tiff-v3.4beta037/libtiff/ primax_scan.c
gcc -O -c -g -I/tmp/tiff-v3.4beta037/libtiff/ probe_lp.c
gcc -O -c -g -I/tmp/tiff-v3.4beta037/libtiff/ data.c
gcc -O -c -g -I/tmp/tiff-v3.4beta037/libtiff/ old_stuff.c
cc -ltiff -lm -O -g primax_scan.o probe_lp.o data.o old_stuff.o -o primax_scan
ld: cannot open -ltiff: No such file or directory
make: *** [primax_scan] Error 1
debian:/tmp/primax_scan-0.2# 

What the hell is ltiff  ????		:-O 

I use debian slink and Kernel 2.2.13 on an Pentium 166
with a Primax Colorado Direct Scanner... and (sorry )a bad english.


TIA for helping me. :-)

Oliver 
Subject: Re: primax_scan-0.2 >>>> please help
From: ####@####.#### (Dominic Mitchell)
Date: 24 Feb 2000 14:52:41 -0000
Message-Id: <20000224144145.A42176@voodoo.pandhm.co.uk>

On Thu, Feb 24, 2000 at 03:24:48PM +0100, Oliver Larisch wrote:
> debian:/tmp/primax_scan-0.2# make
> gcc -O -c -g -I/tmp/tiff-v3.4beta037/libtiff/ primax_scan.c
> gcc -O -c -g -I/tmp/tiff-v3.4beta037/libtiff/ probe_lp.c
> gcc -O -c -g -I/tmp/tiff-v3.4beta037/libtiff/ data.c
> gcc -O -c -g -I/tmp/tiff-v3.4beta037/libtiff/ old_stuff.c
> cc -ltiff -lm -O -g primax_scan.o probe_lp.o data.o old_stuff.o -o primax_scan
> ld: cannot open -ltiff: No such file or directory
> make: *** [primax_scan] Error 1
> debian:/tmp/primax_scan-0.2# 
> 
> What the hell is ltiff  ????		:-O 
> 
> I use debian slink and Kernel 2.2.13 on an Pentium 166
> with a Primax Colorado Direct Scanner... and (sorry )a bad english.

Well, -ltiff means that the compiler should look for a file called
libtiff.so (or libtiff.a).  It's usually found in one of /usr/lib,
/usr/local/lib, or sometimes /usr/X11R6/lib. Try looking for a debian
package called libtiff, and install it with dpkg.

Sorry I can't help more than that, I'm a FreeBSD user.  :-)

-- 
Dom Mitchell -- Palmer & Harvey McLane -- Unix Systems Administrator

	MCSE -- Minesweeper Consultant & Solitaire Expert
Subject: Re: primax_scan-0.2 >>>> please help
From: Christian Ordig ####@####.####
Date: 25 Feb 2000 14:47:50 -0000
Message-Id: <XFMail.000225141929.chr.ordig@gmx.net>

On 24-Feb-00 Dominic Mitchell wrote:
> On Thu, Feb 24, 2000 at 03:24:48PM +0100, Oliver Larisch wrote:
>> debian:/tmp/primax_scan-0.2# make
>> gcc -O -c -g -I/tmp/tiff-v3.4beta037/libtiff/ primax_scan.c
>> gcc -O -c -g -I/tmp/tiff-v3.4beta037/libtiff/ probe_lp.c
>> gcc -O -c -g -I/tmp/tiff-v3.4beta037/libtiff/ data.c
>> gcc -O -c -g -I/tmp/tiff-v3.4beta037/libtiff/ old_stuff.c
>> cc -ltiff -lm -O -g primax_scan.o probe_lp.o data.o old_stuff.o -o primax_scan
>> ld: cannot open -ltiff: No such file or directory
>> make: *** [primax_scan] Error 1
>> debian:/tmp/primax_scan-0.2# 
>> 
>> What the hell is ltiff  ????         :-O 
>> 
>> I use debian slink and Kernel 2.2.13 on an Pentium 166
>> with a Primax Colorado Direct Scanner... and (sorry )a bad english.
> 
> Well, -ltiff means that the compiler should look for a file called
> libtiff.so (or libtiff.a).  It's usually found in one of /usr/lib,
> /usr/local/lib, or sometimes /usr/X11R6/lib. Try looking for a debian
> package called libtiff, and install it with dpkg.
> 
> Sorry I can't help more than that, I'm a FreeBSD user.  :-)
How about this driver under FreeBSD? It isn't working, is it?

cu.


---
Christian Ordig             | The Primax Scanner Driver Project for Linux/UN*X |
Germany                     |   http://thor.prohosting.com/~chrordig/Primax/   |
   __   _                   |                                                  |
  / /  (_)__  __ ____  __   | Why Linux? Because it is free, stable, and       |
 / /__/ / _ \/ // /\ \/ /   | bugs can be fixed in source opposed to waiting   |
/____/_/_//_/\_,_/ /_/\_\   | for a stable WinTendo from Micro$oft.            |
Subject: Re: primax_scan-0.2 >>>> please help
From: Oliver Larisch ####@####.####
Date: 28 Feb 2000 21:39:12 -0000
Message-Id: <00022822330700.00303@debian>

Am Sat, 26 Feb 2000 schrieben Sie:

> 
>  -l ist eine compiler-option, die auf eine libarary
> (funktions-bibliothek) verweist. Die LIB heißt "libtiff.so" oder
> "libtiff.a", wie Dominic korrekter weise angemerkt hat. Du kannst die
> LIB installieren, wie Dominic es beschrieben hat oder auch im Makefile
> eine weitere compiler-option, die auf den Pfad verweißt hinzufügen. Die
> Option ist -L gefolgt vom Pfad, in dem die Lib abgespeichert ist.



Also, ich habe nun libtiff3_3.4beta037 Installiert und dazu noch primax_scan
0.93, aber...
der Compiler sucht immer noch ltiff, sprich libtiff.a oder libtiff.so

ich glaube auf meinem system befindet sich keine libtiff.a  oder  *.so

es gibt aber eine libtiff.so .ist die das?

die Makefil von primax_scan habe ich zu TIFF_INCLUDE = /usr/lib ergänzt.

es klappt nur nicht und ich verstehe die welt nicht mehr.


ich bin weiterhin
sehr dankbar für jede hilfe

oliver
Subject: Re: primax_scan-0.2 >>>> please help
From: C Hennessy ####@####.####
Date: 28 Feb 2000 23:54:47 -0000
Message-Id: <38BAF95E.708A9DA4@iname.com>

Hi Oliver,
	Please remember that this list is an international one.
At least putting your message in both your native language and 
in english is always a good idea.
Anyway check out the following page to find your appropriate
"tiff" package.

CP

http://www.rpmfind.net/linux/RPM/TByName.html

Oliver Larisch wrote:
> 
> Am Sat, 26 Feb 2000 schrieben Sie:
> 
> >
> >  -l ist eine compiler-option, die auf eine libarary
> > (funktions-bibliothek) verweist. Die LIB heißt "libtiff.so" oder
> > "libtiff.a", wie Dominic korrekter weise angemerkt hat. Du kannst die
> > LIB installieren, wie Dominic es beschrieben hat oder auch im Makefile
> > eine weitere compiler-option, die auf den Pfad verweißt hinzufügen. Die
> > Option ist -L gefolgt vom Pfad, in dem die Lib abgespeichert ist.
> 
> Also, ich habe nun libtiff3_3.4beta037 Installiert und dazu noch primax_scan
> 0.93, aber...
> der Compiler sucht immer noch ltiff, sprich libtiff.a oder libtiff.so
> 
> ich glaube auf meinem system befindet sich keine libtiff.a  oder  *.so
> 
> es gibt aber eine libtiff.so .ist die das?
> 
> die Makefil von primax_scan habe ich zu TIFF_INCLUDE = /usr/lib ergänzt.
> 
> es klappt nur nicht und ich verstehe die welt nicht mehr.
> 
> ich bin weiterhin
> sehr dankbar für jede hilfe
> 
> oliver
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
Subject: Re: primax_scan-0.2 >>>> please help
From: Oliver Larisch ####@####.####
Date: 2 Mar 2000 21:16:13 -0000
Message-Id: <00030222113000.01514@debian>

Am Mon, 28 Feb 2000 schrieben Sie:
> Hi Oliver,
> 	Please remember that this list is an international one.
> At least putting your message in both your native language and 
> in english is always a good idea.
> Anyway check out the following page to find your appropriate
> "tiff" package.
> 
> CP
> 
> http://www.rpmfind.net/linux/RPM/TByName.html
> 


Hi,
thanx a lot for helping me.  

Now, I` ve installed libtiff-devel and zlib-devel

but my output was:

debian:/tmp/primax_scan-0.93# make
cc -ltiff -ljpeg -lm -lz -O3 primax_scan.o probe_lp.o epp.o tables.o LM9811.o -o primax_scan
primax_scan.o: In function `tiff_open':
/tmp/primax_scan-0.93/primax_scan.c:171: undefined reference to `TIFFOpen'
/tmp/primax_scan-0.93/primax_scan.c:177: undefined reference to `TIFFSetField'
/tmp/primax_scan-0.93/primax_scan.c:178: undefined reference to `TIFFSetField'
/tmp/primax_scan-0.93/primax_scan.c:179: undefined reference to `TIFFSetField'
/tmp/primax_scan-0.93/primax_scan.c:180: undefined reference to `TIFFSetField'
/tmp/primax_scan-0.93/primax_scan.c:181: undefined reference to `TIFFDefaultStripSize'
/tmp/primax_scan-0.93/primax_scan.c:181: undefined reference to `TIFFSetField'
/tmp/primax_scan-0.93/primax_scan.c:187: undefined reference to `TIFFSetField'
/tmp/primax_scan-0.93/primax_scan.c:202: undefined reference to `TIFFSetField'
/tmp/primax_scan-0.93/primax_scan.c:203: undefined reference to `TIFFSetField'
/tmp/primax_scan-0.93/primax_scan.c:204: undefined reference to `TIFFSetField'
primax_scan.o:/tmp/primax_scan-0.93/primax_scan.c:210: more undefined references to `TIFFSetField' follow
primax_scan.o: In function `read_scan_data':
/tmp/primax_scan-0.93/primax_scan.c:357: undefined reference to `TIFFWriteScanline'
/tmp/primax_scan-0.93/primax_scan.c:227: undefined reference to `TIFFClose'
make: *** [primax_scan] Error 1     


What's the matter, now ?  8-O       

oliver
TIA                                        
                       
Subject: Re: primax_scan-0.2 >>>> please help
From: ####@####.#### (Dominic Mitchell)
Date: 3 Mar 2000 09:54:19 -0000
Message-Id: <20000303094330.B2223@voodoo.pandhm.co.uk>

On Thu, Mar 02, 2000 at 10:06:09PM +0100, Oliver Larisch wrote:
> Now, I` ve installed libtiff-devel and zlib-devel
> 
> but my output was:
> 
> debian:/tmp/primax_scan-0.93# make
> cc -ltiff -ljpeg -lm -lz -O3 primax_scan.o probe_lp.o epp.o tables.o LM9811.o -o primax_scan
> primax_scan.o: In function `tiff_open':
> /tmp/primax_scan-0.93/primax_scan.c:171: undefined reference to `TIFFOpen'

[snip]

That is a common problem (I'm not sure how it's happened), but all the
libraries (the flags beginning with -l) need to be specified at the end
of the command line.  If you edit the Makefile and change the line:

	cc -ltiff -ljpeg -lm -lz -O3 $(PRIMAX_SCAN_OBJS) -o $@

to read:

	cc -O3 $(PRIMAX_SCAN_OBJS) -o $@ -ltiff -ljpeg -lm -lz 

Then things will work better.  While you're editing the Makefile, be
careful that the initial bit of space on that line stays a tab and
doesn't get converted to 8 spaces, or make will barf.
-- 
Dom Mitchell -- Palmer & Harvey McLane -- Unix Systems Administrator

	MCSE -- Minesweeper Consultant & Solitaire Expert
Subject: Re: primax_scan-0.2 >>>> please help
From: ####@####.####
Date: 3 Mar 2000 10:51:17 -0000
Message-Id: <15572.952079464@www8.gmx.net>

 [snip]

> That is a common problem (I'm not sure how it's happened), but all the
> libraries (the flags beginning with -l) need to be specified at the end
> of the command line.  If you edit the Makefile and change the line:
> 
> 	cc -ltiff -ljpeg -lm -lz -O3 $(PRIMAX_SCAN_OBJS) -o $@
> 
> to read:
> 
> 	cc -O3 $(PRIMAX_SCAN_OBJS) -o $@ -ltiff -ljpeg -lm -lz 
> 
> Then things will work better. 

Recently, I have discussed this issue with someone else.
In fact, it seems to depend on the compiler specs and/or ld version.

At least with gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 
release) with GNU ld version 2.9.1 it doesn't matter where 
you place the library flags. I don't know why.


Regards - Juergen.

-- 
Sent through GMX FreeMail - http://www.gmx.net

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.