[Insight-users] cross compiling ITK with mingw32

Mario Ceresa mario.ceresa at torrescalla.it
Tue Nov 10 11:27:47 EST 2009


Hi everybody!

I'd like to use a program written with ITK on a win machine where I am
not the admin and cannot install Visual C++. So I'm trying to
cross-compile ITK with mingw32 on a Fedora 10 64bit.

Thanks to the info at http://www.itk.org/Wiki/CmakeMingw, I was able
to build simple programs which run on the target.

When I tried to compile ITK's "Hello world" cmake complained that the
program and ITK didn't use the same compiler.
So I reconfigured ITK itself with cmake (with mingw32 toolchain file),
manually modified all the TRY_RUN variables after executing the test
programs on the target, and tried to build it.

It stopped with errors:

Scanning dependencies of target itkvnl
[ 26%] Building CXX object
Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_alloc.obj
[ 26%] Building CXX object
Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_block.obj
[ 26%] Building CXX object
Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_math.obj
Download/Insight/Utilities/vxl/core/vnl/vnl_math.cxx:13:48: error:
Float.h: No such file or directory
make[2]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_math.obj] Error 1
make[1]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/all] Error 2
make: *** [all] Error 2

So I have the following questions:
1) Does anyone know why I'm missing Float.h?
2) Is there any better/simpler/reccomended way to cross compile itk
for a windows machine?

I tried googling for a while but with no luck!

Thanks and regards,

Mario


More information about the Insight-users mailing list