[Insight-users] Error compiling ITK

Karthik Krishnan Karthik.Krishnan at kitware.com
Mon Jul 3 08:46:54 EDT 2006


The fix was made a few months ago.. Get ITK CVS or update your ITK
version to ITK-2-8.

See
http://www.itk.org/cgi-bin/viewcvs.cgi/Utilities/vxl/core/vnl/vnl_vector_fixed_ref.h?rev=1.4&root=Insight&view=log

-karthik


On Mon, 2006-07-03 at 08:34 +0000, Luca Binotto wrote:
> Dear All,
> Help me to solve those:
> Problems compiling itk 2.6.0 with  /Utilities/vxl/core/vnl:
> 
> IN:  vnl_vector_fixed_ref.h       (overloaded division operator)
> (line number)
> 383       vnl_vector_fixed_ref<T,n> const & operator/=( T s ) const {
> 384       div( data_block(), s, data_block() ); return *this;
> 385        }
> 
> this is the error message:
> 
> Scanning dependencies of target itkvnl
> Building CXX object Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/Templates/vnl_vector_fixed_ref+double.3-.o
> /usr/local/itk2.6.0_src/InsightToolkit-2.6.0/Utilities/vxl/core/vnl/vnl_vector_fixed_ref.h: In member function ‘const vnl_vector_fixed_ref<T, n>& vnl_vector_fixed_ref<T, n>::operator/=(T) const [with T = double, unsigned int n = 3u]’:
> /usr/local/itk2.6.0_src/InsightToolkit-2.6.0/Utilities/vxl/core/vnl/Templates/vnl_vector_fixed_ref+double.3-.cxx:2:   instantiated from here
> /usr/local/itk2.6.0_src/InsightToolkit-2.6.0/Utilities/vxl/core/vnl/vnl_vector_fixed_ref.h:384: error: invalid conversion from ‘double*’ to ‘int’
> /usr/local/itk2.6.0_src/InsightToolkit-2.6.0/Utilities/vxl/core/vnl/vnl_vector_fixed_ref.h:384: warning: converting to ‘int’ from ‘double’
> /usr/include/stdlib.h:801: error: too many arguments to function ‘div_t div(int, int)’
> /usr/local/itk2.6.0_src/InsightToolkit-2.6.0/Utilities/vxl/core/vnl/vnl_vector_fixed_ref.h:384: error: at this point in file
> gmake[2]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/Templates/vnl_vector_fixed_ref+double.3-.o] Error 1
> gmake[1]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/all] Error 2
> gmake: *** [all] Error 2
> 
> After commented that, other similar error 
> IN:  vnl_matrix_fixed_ref.h
> (line number)
> 483  vnl_matrix_fixed_ref const& operator/= (T s) const
> 484  {
> 485    div( data_block(), s, data_block() ); return *this;
> 486  }
> 
> this is the error message:
> 
> Building CXX object Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/Templates/vnl_matrix_fixed_ref+float.3.3-.o
> /usr/local/itk2.6.0_src/InsightToolkit-2.6.0/Utilities/vxl/core/vnl/vnl_matrix_fixed_ref.h: In member function ‘const vnl_matrix_fixed_ref<T, num_rows, num_cols>& vnl_matrix_fixed_ref<T, num_rows, num_cols>::operator/=(T) const [with T = float, unsigned int num_rows = 3u, unsigned int num_cols = 3u]’:
> /usr/local/itk2.6.0_src/InsightToolkit-2.6.0/Utilities/vxl/core/vnl/Templates/vnl_matrix_fixed_ref+float.3.3-.cxx:2:   instantiated from here
> /usr/local/itk2.6.0_src/InsightToolkit-2.6.0/Utilities/vxl/core/vnl/vnl_matrix_fixed_ref.h:485: error: invalid conversion from ‘float*’ to ‘int’
> /usr/local/itk2.6.0_src/InsightToolkit-2.6.0/Utilities/vxl/core/vnl/vnl_matrix_fixed_ref.h:485: warning: converting to ‘int’ from ‘float’
> /usr/include/stdlib.h:801: error: too many arguments to function ‘div_t div(int, int)’
> /usr/local/itk2.6.0_src/InsightToolkit-2.6.0/Utilities/vxl/core/vnl/vnl_matrix_fixed_ref.h:485: error: at this point in file
> gmake[2]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/Templates/vnl_matrix_fixed_ref+float.3.3-.o] Error 1
> gmake[1]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/all] Error 2
> gmake: *** [all] Error 2
> 
> 
> Please note, among all the overloaded operators only the division operator gives problems.
> Platform Linux suse 10.1, gcc family compilers.
> 
> //Use an outside build of VXL.
> ITK_USE_SYSTEM_VXL:BOOL=OFF
> 
> Thanks in advance for your help,   Luca
> 
> Benachrichtigung bei E-Mail Empfang! - http://mail.lycos.de/app/lycosinside/setupLI.exe
> _______________________________________________ Insight-users mailing list Insight-users at itk.org http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list