[Insight-users] MinGW64 build of ITK

Gib Bogle g.bogle at auckland.ac.nz
Sun Mar 20 21:18:00 EDT 2011


On 20/03/2011 10:22 a.m., Gib Bogle wrote:
> 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 ...
...

If I deselect BUILD_SHARED_LIBS, the build proceeds almost to completion, but 
fails at this point:

[ 97%] Building CXX object Code/IO/CMakeFiles/itkTestDriver.dir/itkTestDriver.obj
In file included from C:\Users\Gib\InsightToolkit-3.20.0\Code\IO\itkTestDriver.c 
xx:47:0:
C:\Users\Gib\ITK64\Utilities/itksys/SharedForward.h: In function 'void 
kwsys_shared_forward_execvp(const char*, const char* const*)':
C:\Users\Gib\ITK64\Utilities/itksys/SharedForward.h:516:19: error: invalid 
conversion from 'const char* const*' to 'char* const*'
C:\Users\Gib\ITK64\Utilities/itksys/SharedForward.h:516:19: error: 
initializing argument 2 of 'int execvp(const char*, char* const*)'
mingw32-make[2]: *** [Code/IO/CMakeFiles/itkTestDriver.dir/itkTestDriver.obj] 
Error 1
mingw32-make[1]: *** [Code/IO/CMakeFiles/itkTestDriver.dir/all] Error 2
mingw32-make: *** [all] Error 2

I'm keen to hear of other people's experiences in building ITK 3.20.0 with 
MinGW64-4.5.  Apart from BUILD_SHARED_LIBS, the only other change I made to the 
default cmake configuration was to turn off CMAKE_USE_PTHREADS.


More information about the Insight-users mailing list