Mon 04 Jul 2011 04:36:27 PM UTC, original submission:
Hello! I recently tried to build Octave 3.4.2 using the latest version of the qhull library, version 2011.1, and ran into problems during the build.
First, the configure script was unable to find qhull installed anywhere on my system. It appears that with the new version, qhull has changed the location in which it stores its headers from, e.g.
/usr/local/include/qhull
to
/usr/local/include/libqhull
It also appears that the qhull library file's name has been changed from libqhull.so to libqhull6.so.
To try and get Octave to compile, I modified the files
acinclude.m4
configure.ac
src/DLD-FUNCTIONS/__voronoi__.cc
src/DLD-FUNCTIONS/convhulln.cc
src/DLD-FUNCTIONS/__delaunayn__.cc
to look for qhull in the new include/libqhull directory (see the attached patch file) and also symlinked libqhull6.so to libqhull.so inside my library directory. (Sorry if the changes to configure.ac and acinclude.m4 don't make sense... I'm not that familiar with GNU Autotools.) I then ran
$ ldconfig
and
$ autoconf configure.ac > configure
to apply the changes to the configure script. I got a warning that my version of autoconf was a bit older than the one originally used to create the build system, but I tried the build anyway just to see what happened:
$ ./configure --with-blas=atlas --with-lapack=lapack
$ make
The build finished successfully. I then ran
$ make check
The check proceeded smoothly until it tried testing convhulln, which failed with "qhull internal error 6178":
qhull internal error (qh_setsize): current set size 1072693247 is greater than maximum size 0
Based on its self-description, this last error looks like a problem with qhull to me and not with Octave, but I'm not completely sure. Any thoughts?
Thanks!
|