<div dir="ltr">Ondrej,<br><br>we had a discussion with the author of suitesparse, the author of the suitesparse interface in Octave and the person in charge of the fedora octave/suitesparse package and we agreed in using /usr/include/suitesparse as the place of the headers.<br>
With the compiler if you use -I/usr/include/suitesparse in the compiler command line then you don't have to change your code, just add /usr/include/suitesparse as a possible location for the headers.<br>your solution may not work if you have a umfpack header including other umfpack headers.<br>
<br>what is the problem with that ? I do that for my codes, it works also great with petsc and trilinos.<br><br>Best regards<br>C.<br><br><div class="gmail_quote">On Sun, Sep 7, 2008 at 3:14 PM, Ondrej Certik <span dir="ltr"><<a href="mailto:ondrej@certik.cz">ondrej@certik.cz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
Debian is different to other distributions in that umfpack is not in<br>
/usr/include, but in /usr/include/suitesparse.<br>
How about creating symlinks to /usr/include ? So that we don't have to<br>
patch all software that uses umfpack, see for example the patch below<br>
that is applied in python-scipy. Basically everytime I need to get<br>
some program using umfpack to work in Debian, I need to fix this.<br>
<br>
Is there some convention where include headers should live? For<br>
example Python headers are in /usr/include/python2.5 too, but every<br>
project is used to that. Umfpack dependents doesn't seem to be used to<br>
find umfpack in /usr/include/suitesparse.<br>
<br>
Ondrej<br>
<br>
Index: python-scipy-0.6.0/scipy/linsolve/umfpack/umfpack.i<br>
===================================================================<br>
--- python-scipy-0.6.0.orig/scipy/linsolve/umfpack/umfpack.i 2007-12-03<br>
15:20:37.827719117 +0100<br>
+++ python-scipy-0.6.0/scipy/linsolve/umfpack/umfpack.i 2007-12-03<br>
15:20:51.328488481 +0100<br>
@@ -10,13 +10,13 @@<br>
*/<br>
<br>
%{<br>
-#include <umfpack.h><br>
+#include <suitesparse/umfpack.h><br>
#include "numpy/arrayobject.h"<br>
%}<br>
<br>
%feature("autodoc", "1");<br>
<br>
-#include <umfpack.h><br>
+#include <suitesparse/umfpack.h><br>
<br>
%init %{<br>
import_array();<br>
@@ -189,18 +189,18 @@<br>
double Info [ANY]<br>
};<br>
<br>
-%include <umfpack.h><br>
-%include <umfpack_solve.h><br>
-%include <umfpack_defaults.h><br>
-%include <umfpack_triplet_to_col.h><br>
-%include <umfpack_col_to_triplet.h><br>
-%include <umfpack_transpose.h><br>
-%include <umfpack_scale.h><br>
-<br>
-%include <umfpack_report_symbolic.h><br>
-%include <umfpack_report_numeric.h><br>
-%include <umfpack_report_info.h><br>
-%include <umfpack_report_control.h><br>
+%include <suitesparse/umfpack.h><br>
+%include <suitesparse/umfpack_solve.h><br>
+%include <suitesparse/umfpack_defaults.h><br>
+%include <suitesparse/umfpack_triplet_to_col.h><br>
+%include <suitesparse/umfpack_col_to_triplet.h><br>
+%include <suitesparse/umfpack_transpose.h><br>
+%include <suitesparse/umfpack_scale.h><br>
+<br>
+%include <suitesparse/umfpack_report_symbolic.h><br>
+%include <suitesparse/umfpack_report_numeric.h><br>
+%include <suitesparse/umfpack_report_info.h><br>
+%include <suitesparse/umfpack_report_control.h><br>
<br>
/*<br>
The order is important below!<br>
@@ -212,8 +212,8 @@<br>
void **Numeric<br>
}<br>
<br>
-%include <umfpack_symbolic.h><br>
-%include <umfpack_numeric.h><br>
+%include <suitesparse/umfpack_symbolic.h><br>
+%include <suitesparse/umfpack_numeric.h><br>
<br>
<br>
OPAQUE_ARGINOUT( void * )<br>
@@ -222,8 +222,8 @@<br>
void **Numeric<br>
}<br>
<br>
-%include <umfpack_free_symbolic.h><br>
-%include <umfpack_free_numeric.h><br>
+%include <suitesparse/umfpack_free_symbolic.h><br>
+%include <suitesparse/umfpack_free_numeric.h><br>
<br>
<br>
<br>
@@ -245,7 +245,7 @@<br>
long *n_col,<br>
long *nz_udiag<br>
};<br>
-%include <umfpack_get_lunz.h><br>
+%include <suitesparse/umfpack_get_lunz.h><br>
<br>
<br>
ARRAY_IN( double, double, DOUBLE )<br>
@@ -269,6 +269,6 @@<br>
int Q [ ]<br>
};<br>
%apply int *OUTPUT { int *do_recip};<br>
-%include <umfpack_get_numeric.h><br>
+%include <suitesparse/umfpack_get_numeric.h><br>
<br>
#endif<br>
<br>
_______________________________________________<br>
Pkg-scicomp-devel mailing list<br>
<a href="mailto:Pkg-scicomp-devel@lists.alioth.debian.org">Pkg-scicomp-devel@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/pkg-scicomp-devel" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/pkg-scicomp-devel</a><br>
</blockquote></div><br></div>