Date: Fri, 26 Oct 2001 17:24:33 -0400 From: Jim Freeze <jfreeze@freebsdportal.com> To: Lucas Bergman <lucas@slb.to> Cc: questions@freebsd.org Subject: Re: Where can I find ljpeg? Message-ID: <20011026172433.A11972@freebsdportal.com> In-Reply-To: <15321.52911.622277.985529@apu.five.sight>; from lucas@slb.to on Fri, Oct 26, 2001 at 03:59:27PM -0500 References: <20011026155740.A9798@freebsdportal.com> <15321.50633.338958.769285@apu.five.sight> <20011026164732.B9798@freebsdportal.com> <15321.52911.622277.985529@apu.five.sight>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011026172433.A11972>