Date: Fri, 26 Oct 2001 18:22:15 -0400 (EDT) From: Joe Clarke <marcus@marcuscom.com> To: Jim Freeze <jfreeze@freebsdportal.com> Cc: Lucas Bergman <lucas@slb.to>, <questions@FreeBSD.ORG> Subject: Re: Where can I find ljpeg? Message-ID: <20011026173502.X731-100000@shumai.marcuscom.com> In-Reply-To: <20011026172433.A11972@freebsdportal.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 26 Oct 2001, Jim Freeze wrote: > 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 I think you need to do it from the beginning. Like: make clean make LDFLAGS=-L/usr/local/lib Joe > ===> 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 > > 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?20011026173502.X731-100000>