From owner-freebsd-questions Fri Oct 26 14:26: 9 2001 Delivered-To: freebsd-questions@freebsd.org Received: from CI590846-B.freebsdportal.com (ci590846-b.lxintn1.ky.home.com [24.9.218.175]) by hub.freebsd.org (Postfix) with ESMTP id 3D08137B405 for ; Fri, 26 Oct 2001 14:26:03 -0700 (PDT) Received: (from jfreeze@localhost) by CI590846-B.freebsdportal.com (8.11.6/8.11.6) id f9QLOX512547; Fri, 26 Oct 2001 17:24:33 -0400 (EDT) (envelope-from jfreeze) Date: Fri, 26 Oct 2001 17:24:33 -0400 From: Jim Freeze To: Lucas Bergman Cc: questions@freebsd.org Subject: Re: Where can I find ljpeg? Message-ID: <20011026172433.A11972@freebsdportal.com> References: <20011026155740.A9798@freebsdportal.com> <15321.50633.338958.769285@apu.five.sight> <20011026164732.B9798@freebsdportal.com> <15321.52911.622277.985529@apu.five.sight> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <15321.52911.622277.985529@apu.five.sight>; from lucas@slb.to on Fri, Oct 26, 2001 at 03:59:27PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Oct 26, 2001 at 03:59:27PM -0500, Lucas Bergman wrote: > Jim Freeze writes: > > > Hint: When the linker says '-ljpeg' on the command line, that means > > > it's looking for libjpeg.a or libjpeg.so. If you have libjpeg.* in > > > /usr/local/lib, then putting -L/usr/local/lib on the link command line > > > is what you need. > > > > Thanks Lucas. This is a port, so how would I pass the -L param to > > make. It doesn't like the obvious: > > > > % make -L /usr/local/lib > > make: illegal option -- L > > Hmmm... a broken port should be reported to the port maintainer. > > In the meantime, maybe try > > make LDFLAGS=-L/usr/local/lib > Ok, this time I get: % make LDFLAGS=-L/usr/local/lib ===> Building for fox-0.99.174 Making all in utils /bin/sh ../libtool --mode=link c++ -O -pipe -DHAVE_XSHM -DHAVE_ZLIB_H=1 -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1 -Wall -W -Wmissing-prototypes -Woverloaded-virtual -Wformat -DNDEBUG -fomit-frame-pointer -I/usr/X11R6/include -o reswrap reswrap.o -lz -ljpeg -lpng -lz -ltiff -lz c++ -O -pipe -DHAVE_XSHM -DHAVE_ZLIB_H=1 -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1 -Wall -W -Wmissing-prototypes -Woverloaded-virtual -Wformat -DNDEBUG -fomit-frame-pointer -I/usr/X11R6/include -o reswrap reswrap.o -lz -ljpeg -lpng -lz -ltiff -lz /usr/libexec/elf/ld: cannot find -ljpeg *** Error code 1 1 error *** Error code 1 1 error *** Error code 2 Stop in /usr/ports/x11-toolkits/fox. *** Error code 1 Stop in /usr/ports/x11-toolkits/fox. *** Error code 1 Stop in /usr/ports/x11-toolkits/fox. I'm not sure what that did not work. The lib is there % dir /usr/local/lib/libj* -r--r--r-- 1 root wheel 45052 Oct 22 16:10 /usr/local/lib/libjbig.a lrwxr-xr-x 1 root wheel 12 Oct 22 16:10 /usr/local/lib/libjbig.so@ -> libjbig.so.1 -r--r--r-- 1 root wheel 49149 Oct 22 16:10 /usr/local/lib/libjbig.so.1 -rw-r--r-- 1 root wheel 160144 Oct 18 08:16 /usr/local/lib/libjpeg.a lrwxr-xr-x 1 root wheel 12 Oct 18 08:16 /usr/local/lib/libjpeg.so@ -> libjpeg.so.9 -rwxr-xr-x 1 root wheel 136176 Oct 18 08:16 /usr/local/lib/libjpeg.so.9* -- Jim Freeze No comment at this time. www.freeze.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message