[GRASSLIST:1728] Re: configure problems on OSX
Glynn Clements
glynn.clements at virgin.net
Mon Nov 10 16:43:36 EST 2003
Kirk R. Wythers wrote:
> > Look at the config.log file. Specifically, search for the text
> > "checking for jpeg_start_compress". Any error messages will follow
> > shortly afterwards.
>
> I'm not seeing any reference to "checking for jpeg_start_includes".
> Here is the error log...
configure:5503: checking for jpeg_start_compress in -ljpeg
configure:5520: gcc -o conftest -g -O2 conftest.c -ljpeg 1>&5
ld: can't locate file for: -ljpeg
configure: failed program was:
[snipped]
configure:5539: checking for jpeg_start_compress in -ljpeg
configure:5556: gcc -o conftest -g -O2 conftest.c -ljpeg -lz 1>&5
ld: can't locate file for: -ljpeg
configure: failed program was:
[snipped]
OK; it really is failing because it can't find the JPEG library
(library failures are often more involved, e.g. a library may need
other libraries which can't be found).
You probably need something like:
--with-jpeg-libs=/sw/lib
The file in question will probably be called libjpeg.a or
libjpeg.dylib; you need to specify the directory in which that file
resides.
If a lot of the external dependencies are in /sw/include and /sw/lib,
it may be better to just use e.g.:
--with-includes=/sw/include --with-libs=/sw/lib
so that those directories are searched for every dependency.
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-user
mailing list