[Insight-users] Error compiling ITK

Luca Binotto binotto at lycos.de
Mon Jul 3 08:34:14 EDT 2006


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


More information about the Insight-users mailing list