[Insight-developers] [Insight-users] itk 3.18 compilation with external vxl installationa
Bill Lorensen
bill.lorensen at gmail.com
Fri Jul 2 11:14:53 EDT 2010
Moti,
We apologize for the time you had to spend to debug this issue. ITK is
committed to protect its customers' investments and we try to maintain
a backward compatible API as best we can. We do have to rely on 3rd
party packages and in some cases, these packages have a looser
backward compatibility policy. We will try to address this issue
inside ITK by changing the vnl usage within the FEM code.
Thank you for your patience,
Bill
On Fri, Jul 2, 2010 at 10:07 AM, Moti Freiman <freiman at cs.huji.ac.il> wrote:
> Thanks for the information. I'll change my local VXL copy.
> Moti
>
> On Fri, Jul 2, 2010 at 4:01 PM, Karthik Krishnan
> <karthik.krishnan at kitware.com> wrote:
>> We could condition compilation in itkFEMLinearSystemWrapperVNL.cxx using the
>> preprocessor directives found in core/vxl_version.h
>>
>>
>> On Fri, Jul 2, 2010 at 6:13 PM, Bill Lorensen <bill.lorensen at gmail.com>
>> wrote:
>>>
>>> VXL made a non-backward compatible change to the API of vnl_sparse_matrix.
>>>
>>> One of the vxl developers sent the folloing reply to a similar recent
>>> question:
>>>
>>> You'll either have to update line 265 of
>>> ITK/Code/Numerics/FEM/itkFEMLinearSystemWrapperVNL.cxx
>>> to use the operator*() method of vnl_sparse_matrix<T>,
>>> or make the mult() method of vnl_sparse_matrix<T> public again in your
>>> copy of vxl.
>>>
>>> Methods mult(), add() and subtract() of vnl_sparse_matrix<T> will
>>> revert to "public" in the next vxl release, be it with a deprecation
>>> warning.
>>>
>>>
>>>
>>> On Fri, Jul 2, 2010 at 6:18 AM, Moti Freiman <freiman at cs.huji.ac.il>
>>> wrote:
>>> > Hi,
>>> > I tried to compile ITK 3.18 on a linux machine (opensuse 11.3),
>>> > with external VXL installation (vxl 1.14).
>>> >
>>> > First I got an error from the cmake as follows:
>>> > CMake Error at /usr/local/share/vxl/cmake/UseVXL.cmake:135 (INCLUDE):
>>> > include could not find load file:
>>> >
>>> > /doxygen.cmake
>>> > Call Stack (most recent call first):
>>> > CMakeLists.txt:466 (INCLUDE)
>>> >
>>> > Then I removed the problematic line from the UseVXL.cmake file.
>>> > Next I succeed to create the Makefile, and start to build ITK.
>>> > Then I got the following error:
>>> >
>>> > [ 93%] [ 93%] Building CXX object
>>> >
>>> > Code/Numerics/FEM/CMakeFiles/ITKFEM.dir/itkFEMLinearSystemWrapperDenseVNL.o
>>> > Building CXX object
>>> > Code/Numerics/FEM/CMakeFiles/ITKFEM.dir/itkFEMLinearSystemWrapperVNL.o
>>> > /usr/local/include/vxl/core/vnl/vnl_sparse_matrix.h: In member
>>> > function ‘virtual void
>>> > itk::fem::LinearSystemWrapperVNL::MultiplyMatrixMatrix(unsigned int,
>>> > unsigned int, unsigned int)’:
>>> > /usr/local/include/vxl/core/vnl/vnl_sparse_matrix.h:268: error: ‘void
>>> > vnl_sparse_matrix<T>::mult(const vnl_sparse_matrix<T>&,
>>> > vnl_sparse_matrix<T>&) const [with T = double]’ is protected
>>> >
>>> > /usr/local/src/InsightToolkit-3.18.0/Code/Numerics/FEM/itkFEMLinearSystemWrapperVNL.cxx:265:
>>> > error: within this context
>>> > make[2]: ***
>>> > [Code/Numerics/FEM/CMakeFiles/ITKFEM.dir/itkFEMLinearSystemWrapperVNL.o]
>>> > Error 1
>>> > make[2]: *** Waiting for unfinished jobs....
>>> > make[1]: *** [Code/Numerics/FEM/CMakeFiles/ITKFEM.dir/all] Error 2
>>> > make: *** [all] Error 2
>>> >
>>> >
>>> > It seems that ITK assume some specific version of VXL, but I did not
>>> > managed to find documentation for it.
>>> > Any idea?
>>> > Thanks,
>>> > Moti
>>> > --
>>> > __
>>> > Moti Freiman, Ph.D Student.
>>> > Medical Image Processing and Computer-Assisted Surgery Laboratory.
>>> > School of Computer Science and Engineering.
>>> > The Hebrew University of Jerusalem Givat Ram, Jerusalem 91904, Israel
>>> > Phone: +(972)-2-658-5371 (laboratory)
>>> > WWW site: http://www.cs.huji.ac.il/~freiman
>>> > _____________________________________
>>> > Powered by www.kitware.com
>>> >
>>> > Visit other Kitware open-source projects at
>>> > http://www.kitware.com/opensource/opensource.html
>>> >
>>> > Kitware offers ITK Training Courses, for more information visit:
>>> > http://www.kitware.com/products/protraining.html
>>> >
>>> > Please keep messages on-topic and check the ITK FAQ at:
>>> > http://www.itk.org/Wiki/ITK_FAQ
>>> >
>>> > Follow this link to subscribe/unsubscribe:
>>> > http://www.itk.org/mailman/listinfo/insight-users
>>> >
>>> _____________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Kitware offers ITK Training Courses, for more information visit:
>>> http://www.kitware.com/products/protraining.html
>>>
>>> Please keep messages on-topic and check the ITK FAQ at:
>>> http://www.itk.org/Wiki/ITK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.itk.org/mailman/listinfo/insight-users
>>
>>
>
>
>
> --
> __
> Moti Freiman, Ph.D Student.
> Medical Image Processing and Computer-Assisted Surgery Laboratory.
> School of Computer Science and Engineering.
> The Hebrew University of Jerusalem Givat Ram, Jerusalem 91904, Israel
> Phone: +(972)-2-658-5371 (laboratory)
> WWW site: http://www.cs.huji.ac.il/~freiman
>
More information about the Insight-developers
mailing list