Joe Koski wrote:
on 8/25/06 8:45 PM, John W. Eaton at address@hidden wrote:
| Each of the eight libraries that you need must be built separately. The
| libraries that you need are AMD, CAMD, CHOLMOD, CCOLMAND, COLAMD,
CXSparse,
| metis-4.0 from (http://glaros.dtc.umn.edu/gkhome/node), and UMFPACK (which
| you already have).
METIS is not required.
John, Frank,
I originally tried to build octave without metis. My guess was that I didn't
need metis, and there is an option to build without metis in CHOLMOD, so I
tried it, and did get a libcholmod.a. During octave configure, the script
was looking for metis headers. During the octave-2.9.7 make, I had
unsatisfied symbols with metis in the name, so I went back and reconfigured
and rebuilt CHOLMOD with metis. Everything then worked. Maybe someone can
explain why this happened.
One error in my original post on how to build UFsparse: the file that you
modify in UFconfig is UFconfig.mk, not UFconfig.h.
Joe
No idea why its happening.. Looking at the configure.in file the code
for this is
AC_CHECK_HEADERS([ufsparse/metis.h metis/metis.h metis.h], [
AC_CHECK_LIB(metis, METIS_NodeND, with_metis=yes, with_metis=no)
break],
with_metis=no)
if test "$with_metis" = yes; then
AC_DEFINE(HAVE_METIS, 1, [Define if the METIS library is used.])
AC_CHECK_LIB(cholmod, cholmod_start, [CHOLMOD_LIBS="-lcholmod
-lmetis";
with_cholmod=yes], [
AC_CHECK_LIB(cholmod, cholmod_start,
[CHOLMOD_LIBS="-lcholmod -cblas -lmetis"; with_cholmod=yes], [],
$AMD_LIBS $COLAMD_LIBS $CCOLAMD_LIBS $BLAS_LIBS $FLIBS -lmetis)],
$AMD_LIBS $COLAMD_LIBS $CCOLAMD_LIBS $BLAS_LIBS $FLIBS -lmetis)
else
AC_CHECK_LIB(cholmod, cholmod_start, [CHOLMOD_LIBS="-lcholmod";
with_cholmod=yes], [
AC_CHECK_LIB(cholmod, cholmod_start, [CHOLMOD_LIBS="-lcholmod
-cblas";
with_cholmod=yes], [],
$AMD_LIBS $COLAMD_LIBS $CCOLAMD_LIBS $BLAS_LIBS $FLIBS)],
$AMD_LIBS $COLAMD_LIBS $CCOLAMD_LIBS $BLAS_LIBS $FLIBS)
fi
so it should work with or without metis..
Cheers
D.