On Tue, Apr 5, 2016 at 8:22 PM, Joshua D'Agostino <[email protected]>
wrote:
> I am having some trouble installing HDF4 due to the jpeg library.
>
> When I am in the HDF4 directory and type:
>
> ./configure --prefix=/usr/local/hdf4/
> --with-jpeg=~/Documents/hdf-4.2.11/jpeg-6b/
>
> I get the following error:
>
> checking for jpeglib.h... no
> configure: error: couldn't find jpeg library
>
> but jpeglib.h is definitely located in jpeg-6b/:
>
> Joshuas-MacBook-Pro:jpeg-6b joshuajd$ ls
> #install.doc# jcmainct.o jdhuff.h jmemnobs.o rdjpgcom
> #libjpeg.doc# jcmarker.c jdhuff.o jmemsys.h rdjpgcom.1
> Makefile jcmarker.o jdinput.c jmorecfg.h rdjpgcom.c
> README jcmaster.c jdinput.o jpegint.h rdjpgcom.o
> ansi2knr.1 jcmaster.o jdmainct.c jpeglib.h rdppm.c
>
> This is only showing a portion of the directory jpeg-6b/, but yu can
> definitely see jpeglib.h in the bottom row.
>
> Admittedly, this is not the directory (I think) that I installed the jpeg
> library. After following the prompts and finally doing
>
> make install
>
Did you run "make install-headers" and "make install-lib? In the generated
Makefile:
install-lib: libjpeg.$(A) install-headers
$(INSTALL_LIB) libjpeg.$(A) $(libdir)/$(binprefix)libjpeg.$(A)
install-headers: jconfig.h
$(INSTALL_DATA) jconfig.h $(includedir)/jconfig.h
$(INSTALL_DATA) $(srcdir)/jpeglib.h $(includedir)/jpeglib.h
$(INSTALL_DATA) $(srcdir)/jmorecfg.h $(includedir)/jmorecfg.h
$(INSTALL_DATA) $(srcdir)/jerror.h $(includedir)/jerror.h
>
> this was what I received in the terminal:
>
> /usr/bin/install -c cjpeg /usr/local/bin/cjpeg
> /usr/bin/install -c djpeg /usr/local/bin/djpeg
> /usr/bin/install -c jpegtran /usr/local/bin/jpegtran
> /usr/bin/install -c rdjpgcom /usr/local/bin/rdjpgcom
> /usr/bin/install -c wrjpgcom /usr/local/bin/wrjpgcom
> /usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/man/man1/cjpeg.1
> /usr/bin/install -c -m 644 ./djpeg.1 /usr/local/man/man1/djpeg.1
> /usr/bin/install -c -m 644 ./jpegtran.1 /usr/local/man/man1/jpegtran.1
> /usr/bin/install -c -m 644 ./rdjpgcom.1 /usr/local/man/man1/rdjpgcom.1
> /usr/bin/install -c -m 644 ./wrjpgcom.1 /usr/local/man/man1/wrjpgcom.1
>
> So I know none of these contain jpeglib.h, but this was where it installed
> whatever it is that it was installing... but when the configure code for
> hdf4 is looking for jpeglib.h, well I'm giving it the proper directory and
> it still can't find it.
>
> Does anyone know how to solve this?
>
> -----
> Joshua J. D'Agostino
> PhD student
> Research School of Astronomy and Astrophysics
> The Australian National University
> Ph: +61 (0)422 673 081
>
>
>
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
> Twitter: https://twitter.com/hdf5
>
--
George N. White III <[email protected]>
Head of St. Margarets Bay, Nova Scotia
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5