[Insight-users] MinGW64 build of ITK

Gib Bogle g.bogle at auckland.ac.nz
Sat Mar 19 17:22:43 EDT 2011


Hello.  I just tried to build ITK 3.20.0 with MinGW64-4.5, on 64-bit W7.  It was 
about 80% successful, then failed with the errors shown below (sorry about the 
ugly formatting).  Is it possible that I've forgotten something?  Thanks ...

Scanning dependencies of target itkvnl_inst
[ 79%] Building CXX object 
Code/Common/CMakeFiles/itkvnl_inst.dir/vnl_c_vector+short-.obj
[ 79%] Building CXX object 
Code/Common/CMakeFiles/itkvnl_inst.dir/vnl_c_vector+ushort-.obj
[ 79%] Building CXX object 
Code/Common/CMakeFiles/itkvnl_inst.dir/vnl_c_vector+char-.obj
[ 79%] Building CXX object 
Code/Common/CMakeFiles/itkvnl_inst.dir/vnl_matrix+ushort-.obj
[ 80%] Building CXX object 
Code/Common/CMakeFiles/itkvnl_inst.dir/vnl_matrix+short-.obj
[ 80%] Building CXX object 
Code/Common/CMakeFiles/itkvnl_inst.dir/vnl_matrix+char-.obj
[ 80%] Building CXX object 
Code/Common/CMakeFiles/itkvnl_inst.dir/vnl_matrix_fixed+double.3.12-.obj
[ 80%] Building CXX object 
Code/Common/CMakeFiles/itkvnl_inst.dir/vnl_matrix_fixed_ref+double.2.2-.obj
[ 80%] Building CXX object 
Code/Common/CMakeFiles/itkvnl_inst.dir/vnl_matrix_fixed_ref+double.2.3-.obj
[ 80%] Building CXX object 
Code/Common/CMakeFiles/itkvnl_inst.dir/vnl_matrix_fixed_ref+double.3.12-.obj
[ 80%] Building CXX object 
Code/Common/CMakeFiles/itkvnl_inst.dir/vnl_matrix_fixed_ref+double.4.3-.obj
[ 80%] Building CXX object 
Code/Common/CMakeFiles/itkvnl_inst.dir/vnl_matrix_fixed_ref+double.4.4-.obj
[ 80%] Building CXX object 
Code/Common/CMakeFiles/itkvnl_inst.dir/vnl_vector+short-.obj
[ 80%] Building CXX object 
Code/Common/CMakeFiles/itkvnl_inst.dir/vnl_vector+ushort-.obj
[ 80%] Building CXX object 
Code/Common/CMakeFiles/itkvnl_inst.dir/vnl_vector+char-.obj
[ 80%] Building CXX object 
Code/Common/CMakeFiles/itkvnl_inst.dir/vnl_vector+size_t-.obj
[ 81%] Building CXX object 
Code/Common/CMakeFiles/itkvnl_inst.dir/vnl_fft_base+double.3-.obj
[ 81%] Building CXX object 
Code/Common/CMakeFiles/itkvnl_inst.dir/vnl_fft_base+float.3-.obj
Linking CXX shared library ..\..\bin\libitkvnl_inst.dllCreating library file: 
..\..\bin\libitkvnl_inst.dll.a
CMakeFiles/itkvnl_inst.dir/vnl_vector+size_t-.obj:vnl_vector+size_t-.cxx:(.text$_ZN10vnl_vectorIyEC2Ej[vnl_vector<unsigned 
long long>::vnl_vector(unsigned int)]
+0x1e): undefined reference to `vnl_c_vector<unsigned long 
long>::allocate_T(int)'CMakeFiles/itkvnl_inst.dir/vnl_vector+size_t-.obj:vnl_vector+size_t-.cxx:(.text$
_ZN10vnl_vectorIyEC1Ej[vnl_vector<unsigned long long>::vnl_vector(unsigned 
int)]+0x1e):
undefined reference to `vnl_c_vector<unsigned long long>::allocate_T(int)'
CMakeFiles/itkvnl_inst.dir/vnl_vector+size_t-.obj:vnl_vector+size_t-.cxx:(.text$_ZN10vnl_vectorIyEC2EjRKy[vnl_vector<unsigned 
long long>::vnl_vector(unsigned in
t, unsigned long long const&)]+0x22):
undefined reference to `vnl_c_vector<unsigned long long>::allocate_T(int)'
CMakeFiles/itkvnl_inst.dir/vnl_vector+size_t-.obj:vnl_vector+size_t-.cxx:(.text$_ZN10vnl_vectorIyEC1EjRKy[vnl_vector<unsigned 
long long>::vnl_vector(unsigned in
t, unsigned long long const&)]+0x22):
undefined reference to `vnl_c_vector<unsigned long long>::allocate_T(int)'
CMakeFiles/itkvnl_inst.dir/vnl_vector+size_t-.obj:vnl_vector+size_t-.cxx:(.text$_ZN10vnl_vectorIyEC2EjiPKy[vnl_vector<unsigned 
long long>::vnl_vector(unsigned i
nt, int, unsigned long long const*)]+0x26):
undefined reference to `vnl_c_vector<unsigned long long>::allocate_T(int)'
CMakeFiles/itkvnl_inst.dir/vnl_vector+size_t-.obj:vnl_vector+size_t-.cxx:(.text$_ZN10vnl_vectorIyEC1EjiPKy[vnl_vector<unsigned 
long long>::vnl_vector(unsigned i
nt, int, unsigned long long const*)]+0x26):
more undefined references to `vnl_c_vector<unsigned long long>::allocate_T(int)' 
follow
CMakeFiles/itkvnl_inst.dir/vnl_vector+size_t-.obj:vnl_vector+size_t-.cxx:(.text$_ZN10vnl_vectorIyE12pre_multiplyERK10vnl_matrixIyE[vnl_vector<unsigned 
long long
 >::pre_multiply(vnl_matrix<unsigned long long> const&)]+0x12f):
undefined reference to `vnl_c_vector<unsigned long long>::deallocate(unsigned 
long long*, int)'
CMakeFiles/itkvnl_inst.dir/vnl_vector+size_t-.obj:vnl_vector+size_t-.cxx:(.text$_ZN10vnl_vectorIyE13post_multiplyERK10vnl_matrixIyE[vnl_vector<unsigned 
long lon
g>::post_multiply(vnl_matrix<unsigned long long> const&)]+0x62):
undefined reference to `vnl_c_vector<unsigned long long>::allocate_T(int)'
CMakeFiles/itkvnl_inst.dir/vnl_vector+size_t-.obj:vnl_vector+size_t-.cxx:(.text$_ZN10vnl_vectorIyE13post_multiplyERK10vnl_matrixIyE[vnl_vector<unsigned 
long lon
g>::post_multiply(vnl_matrix<unsigned long long> const&)]+0x130):
undefined reference to `vnl_c_vector<unsigned long long>::deallocate(unsigned 
long long*, int)'
CMakeFiles/itkvnl_inst.dir/vnl_vector+size_t-.obj:vnl_vector+size_t-.cxx:(.text$_ZNK10vnl_vectorIyE5applyEPFyyE[vnl_vector<unsigned 
long long>::apply(unsigned l
ong long (*)(unsigned long long)) const]+0x103):
undefined reference to `vnl_c_vector<unsigned long long>::apply(unsigned long 
long const*, unsigned int, unsign
ed long long (*)(unsigned long long), unsigned long long*)'
CMakeFiles/itkvnl_inst.dir/vnl_vector+size_t-.obj:vnl_vector+size_t-.cxx:(.text$_ZNK10vnl_vectorIyE5applyEPFyRKyE[vnl_vector<unsigned 
long long>::apply(unsigned
  long long (*)(unsigned long long const&)) const]+0x10b):
undefined reference to `vnl_c_vector<unsigned long long>::apply(unsigned long 
long const*, unsigned in
t, unsigned long long (*)(unsigned long long const&), unsigned long long*)'
CMakeFiles/itkvnl_inst.dir/vnl_vector+size_t-.obj:vnl_vector+size_t-.cxx:(.text$_ZN10vnl_vectorIyE9normalizeEv[vnl_vector<unsigned 
long long>::normalize()]+0x27
): undefined reference to `vnl_c_vector<unsigned long 
long>::normalize(unsignedlong long*, unsigned int)'
CMakeFiles/itkvnl_inst.dir/vnl_vector+size_t-.obj:vnl_vector+size_t-.cxx:(.text$_ZNK10vnl_vectorIyE9min_valueEv[vnl_vector<unsigned 
long long>::min_value() cons
t]+0x27):
undefined reference to `vnl_c_vector<unsigned long long>::min_value(unsigned 
long long const*, unsigned int)'
...
(many more errors)
...
collect2: ld returned 1 exit status
mingw32-make[2]: *** [bin/libitkvnl_inst.dll] Error 1
mingw32-make[1]: *** [Code/Common/CMakeFiles/itkvnl_inst.dir/all] Error 2
mingw32-make: *** [all] Error 2


More information about the Insight-users mailing list