[Insight-users] error when building itk

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Tue Jan 4 04:50:58 EST 2005



Hi,

you have to use gcc 3.3 to build itk 1.8
You can also checkout itk from cvs, but I still have errors if I activate  
some options...
I am currently building itk packages for mandrake. I hope problems will be  
resolved soon so I can add it to contrib :-)


On Tue, 4 Jan 2005 10:35:32 +0100, Radim Adolt <adolt at mendelu.cz> wrote:

> Could somebody give me a hand with following problem ?
>
> configuration with Cmake seemed to be ok,
> running the make command I got this error message
>
> "
> /home/radim/install/itk/InsightToolkit-1.8.0/Utilities/vxl/core/vnl/vnl_sparse_matrix.txx:
> In member function `void vnl_sparse_matrix<T>::set_row(unsigned int,  
> const
> std::vector<int, std::allocator<int> >&, const std::vector<T,
> std::allocator<_CharT> >&) [with T = vnl_rational]':
> /home/radim/install/itk/InsightToolkit-1.8.0/Utilities/vxl/core/vnl/Templates/vnl_sparse_matrix+vnl_rational-.cxx:5:
> instantiated from here
> /home/radim/install/itk/InsightToolkit-1.8.0/Utilities/vxl/core/vnl/vnl_sparse_matrix.txx:446:
> error: dependent-name `vnl_sparse_matrix_pair<T>::less' is parsed as a
> non-type, but instantiation yields a type
> /home/radim/install/itk/InsightToolkit-1.8.0/Utilities/vxl/core/vnl/vnl_sparse_matrix.txx:446:
> note: say `typename vnl_sparse_matrix_pair<T>::less' if a type is meant
> make[9]: *** [Templates/vnl_sparse_matrix+vnl_rational-.o] Error 1
> make[8]: *** [default_target] Error 2
> make[7]: *** [default_target_vnl] Error 2
> make[6]: *** [default_target] Error 2
> make[5]: *** [default_target_core] Error 2
> make[4]: *** [default_target] Error 2
> make[3]: *** [default_target_vxl] Error 2
> make[2]: *** [default_target] Error 2
> make[1]: *** [default_target_Utilities] Error 2
> make: *** [default_target] Error 2
> "
> I work on Linux - Mandrake 10.1 community, the version of my gcc  
> compiler is
> gcc 3.4.1 (Mandrakelinux (Alpha 3.4.1-3mdk)
> I also tried to compile VXL prior to ITK but simillar kind of problem  
> occured
> with VXL.
> My guess is - provided the source code is ok (I belive it is) - there  
> might be
> something wrong within my compiler.
> Please could you help me somhow, have somebody experienced a problem like
> this ?
> many thanks
> R. A.



-- 
Gaetan Lehmann <gaetan.lehmann at jouy.inra.fr>
Tel: +33 1 34 65 22 34
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
 


More information about the Insight-users mailing list