help-octave
[Top][All Lists]
Advanced

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

Re: octave with support for hdf5


From: John Sanabria
Subject: Re: octave with support for hdf5
Date: Tue, 23 Oct 2007 01:00:41 -0400
User-agent: Thunderbird 2.0.0.5 (X11/20070727)

Previous to execute the configure command, it's necessary to set up the LD_LIBRARY_PATH=/home/jas/numeric/lib

regards,

John Sanabria wrote:
Thanks John,

now, the configure script file found the hdf libraries, however, it fails determining the size of short data type.

checking for short... yes
checking size of short... configure: error: cannot compute sizeof (short)
See `config.log' for more details.

any clues,

John W. Eaton wrote:
On 22-Oct-2007, John Sanabria wrote:

| I'm interested to compile octave with support for hdf5 file format.
| I had installed the hdf5 library in the directory ${HOME}/numeric.
| | I execute the configure command line as follow:
| | ./configure --with-hdf5="hdf5 -L/home/jas/numeric/lib | -I/home/jas/numeric/include"
| | --- snippet output ---
| checking for H5Pcreate in -lhdf5 -L/home/jas/numeric/lib | -I/home/jas/numeric/include... yes
| checking hdf5.h usability... no
| checking hdf5.h presence... no
| checking for hdf5.h... no
| --- snippet output ---
| | and finally,
| | configure: WARNING: HDF5 library not found. Octave will not be able to | save or load HDF5 data files.
| | :-(, what is the proper parameter for the configure command?

The proper way to add -L and -I flags is to use LDFLAGS and CPPFLAGS.
You probably only need to use

./configure CPPFLAGS=-I/home/jas/numeric/include LDFLAGS=-L/home/jas/numeric/lib

Given those flags, your compiler should be able to find the HDF5
header files and libraries, so configure should then be able to
automatically detect the library.

jwe






reply via email to

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