Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2001 15:21:29 -0500
From:      Lucas Bergman <lucas@slb.to>
To:        Jim Freeze <jfreeze@freebsdportal.com>
Cc:        questions@freebsd.org
Subject:   Re: Where can I find ljpeg?
Message-ID:  <15321.50633.338958.769285@apu.five.sight>
In-Reply-To: <20011026155740.A9798@freebsdportal.com>
References:  <20011026155740.A9798@freebsdportal.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Jim" == Jim Freeze <jfreeze@freebsdportal.com> writes:

Jim> Does anyone know where I can find ljpeg? I have an app looking
Jim> for it.

It's probably in /usr/local/lib.

Jim> c++ -O -pipe -DHAVE_XSHM -DHAVE_ZLIB_H=1 -DHAVE_JPEG_H=1
Jim> -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1 -Wall -W -Wmissing-prototypes
Jim> -Woverloaded-virtual -Wformat -DNDEBUG -fomit-frame-pointer
Jim> -I/usr/X11R6/include -o reswrap reswrap.o -lz -ljpeg -lpng -lz
Jim> -ltiff -lz
Jim> /usr/libexec/elf/ld: cannot find -ljpeg
Jim> *** Error code 1

Jim> find /usr -name ljpeg comes up empty.

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.

Lucas


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?15321.50633.338958.769285>