[Insight-users] cross compiling ITK with mingw32

Mario Ceresa mario.ceresa at torrescalla.it
Tue Nov 10 12:44:41 EST 2009


Hi Tom,
thanks for your answer: I changed to <float.h> and it seems to be
working (compilation is at 68% right now)!

When it finishes, I'll test it onto the target machine and keep you informed :)

Regards,

Mario

On Tue, Nov 10, 2009 at 5:48 PM, Tom Vercauteren
<tom.vercauteren at gmail.com> wrote:
> Hi Mario,
>
> I never tried to compile the entire ITK with mingw from linux. However
> from my small linux mingw experience, I saw that mingw is case
> sensitive on linux but not on windows. Did you try replacing
>  Float.h
> by
>  float.h
> ?
>
> Hope this helps,
> Tom
>
> P.S.: Let me know if you manage to cross-compile all of it. This is
> something I wanted to try at some point.
>
> On Tue, Nov 10, 2009 at 17:27, Mario Ceresa <mario.ceresa at torrescalla.it> wrote:
>> 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
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.html
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list