help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: octave compiling problem


From: Mag Gam
Subject: Re: octave compiling problem
Date: Tue, 16 Feb 2010 18:47:07 -0800

Thanks for the quick response John.

./configure --prefix=/apps/octave-3.2.4 F77=gfortran
CPPFLAGS=-I/apps/hdf5-1.8.3/include LDFLAGS=-I/apps/hdf5-1.8.3/lib

This does not work.


In my config.log

...
configure:8107: $? = 0
configure:8107: result: yes
configure:8107: checking for zlib.h
configure:8107: result: yes
configure:8151: checking for H5Pcreate in -lhdf5
configure:8176: gcc -o conftest -g -O2 -I/apps/hdf5-1.8.3/include
-I/apps/hdf5-1.8.3/lib conftest.c -lhdf5  -lz -lm  >&5
/usr/bin/ld: cannot find -lhdf5
collect2: ld returned 1 exit status
configure:8176: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
...


Any ideas?

I spend several hours to figure this out.









On Tue, Feb 16, 2010 at 5:28 PM, John W. Eaton <address@hidden> wrote:
> On 16-Feb-2010, Mag Gam wrote:
>
> | I am trying to compile Octave 3.2.4  with HDF5 1.8.2.
> |
> | What configure parameters do I need to give for ./configure to find my
> | HDF5 install?
> |
> | My HDF5 install is located at /apps/hdf5-1.8.2 and there is nothing in
> | the ./configure script where I can specify the location of my HDF5
> | install. Is there a hidden feature?
>
> You need to specify the location of the include files using CPPFLAGS
> and the library with LDFLAGS, so something like this:
>
> ./configure CPPFLAGS=-I/apps/hdf5-1.8.2/include LDFLAGS=-I/apps/hdf5-1.8.2/lib
>
> should work if the header files are installed in
> /apps/hdf5-1.8.2/include and the libraries are installed in
> /apps/hdf5-1.8.2/lib.
>
> jwe
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]