We could condition compilation in itkFEMLinearSystemWrapperVNL.cxx using the preprocessor directives found in core/vxl_version.h<br><br><br><div class="gmail_quote">On Fri, Jul 2, 2010 at 6:13 PM, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;</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;">VXL made a non-backward compatible change to the API of vnl_sparse_matrix.<br>
<br>
One of the vxl developers sent the folloing reply to a similar recent question:<br>
<br>
You&#39;ll either have to update line 265 of<br>
ITK/Code/Numerics/FEM/itkFEMLinearSystemWrapperVNL.cxx<br>
to use the operator*() method of vnl_sparse_matrix&lt;T&gt;,<br>
or make the mult() method of vnl_sparse_matrix&lt;T&gt; public again in your<br>
copy of vxl.<br>
<br>
Methods mult(), add() and subtract() of vnl_sparse_matrix&lt;T&gt; will<br>
revert to &quot;public&quot; in the next vxl release, be it with a deprecation<br>
warning.<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Fri, Jul 2, 2010 at 6:18 AM, Moti Freiman &lt;<a href="mailto:freiman@cs.huji.ac.il">freiman@cs.huji.ac.il</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt; I tried to compile ITK 3.18 on a linux machine (opensuse 11.3),<br>
&gt; with external VXL installation (vxl 1.14).<br>
&gt;<br>
&gt; First I got an error from the cmake as follows:<br>
&gt; CMake Error at /usr/local/share/vxl/cmake/UseVXL.cmake:135 (INCLUDE):<br>
&gt;  include could not find load file:<br>
&gt;<br>
&gt;    /doxygen.cmake<br>
&gt; Call Stack (most recent call first):<br>
&gt;  CMakeLists.txt:466 (INCLUDE)<br>
&gt;<br>
&gt; Then I removed the problematic line from the UseVXL.cmake file.<br>
&gt; Next I succeed to create the Makefile, and start to build ITK.<br>
&gt; Then I got the following error:<br>
&gt;<br>
&gt; [ 93%] [ 93%] Building CXX object<br>
&gt; Code/Numerics/FEM/CMakeFiles/ITKFEM.dir/itkFEMLinearSystemWrapperDenseVNL.o<br>
&gt; Building CXX object<br>
&gt; Code/Numerics/FEM/CMakeFiles/ITKFEM.dir/itkFEMLinearSystemWrapperVNL.o<br>
&gt; /usr/local/include/vxl/core/vnl/vnl_sparse_matrix.h: In member<br>
&gt; function ‘virtual void<br>
&gt; itk::fem::LinearSystemWrapperVNL::MultiplyMatrixMatrix(unsigned int,<br>
&gt; unsigned int, unsigned int)’:<br>
&gt; /usr/local/include/vxl/core/vnl/vnl_sparse_matrix.h:268: error: ‘void<br>
&gt; vnl_sparse_matrix&lt;T&gt;::mult(const vnl_sparse_matrix&lt;T&gt;&amp;,<br>
&gt; vnl_sparse_matrix&lt;T&gt;&amp;) const [with T = double]’ is protected<br>
&gt; /usr/local/src/InsightToolkit-3.18.0/Code/Numerics/FEM/itkFEMLinearSystemWrapperVNL.cxx:265:<br>
&gt; error: within this context<br>
&gt; make[2]: *** [Code/Numerics/FEM/CMakeFiles/ITKFEM.dir/itkFEMLinearSystemWrapperVNL.o]<br>
&gt; Error 1<br>
&gt; make[2]: *** Waiting for unfinished jobs....<br>
&gt; make[1]: *** [Code/Numerics/FEM/CMakeFiles/ITKFEM.dir/all] Error 2<br>
&gt; make: *** [all] Error 2<br>
&gt;<br>
&gt;<br>
&gt; It seems that ITK assume some specific version of VXL, but I did not<br>
&gt; managed to find documentation for it.<br>
&gt; Any idea?<br>
&gt; Thanks,<br>
&gt; Moti<br>
&gt; --<br>
&gt; __<br>
&gt; Moti Freiman, Ph.D Student.<br>
&gt; Medical Image Processing and Computer-Assisted Surgery Laboratory.<br>
&gt; School of Computer Science and Engineering.<br>
&gt; The Hebrew University of Jerusalem Givat Ram, Jerusalem 91904, Israel<br>
&gt; Phone: +(972)-2-658-5371 (laboratory)<br>
&gt; WWW site: <a href="http://www.cs.huji.ac.il/%7Efreiman" target="_blank">http://www.cs.huji.ac.il/~freiman</a><br>
&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br>