[Insight-users] Fixing bugs for ITK with MinGW

Ali - saveez at hotmail.com
Thu Aug 30 16:10:12 EDT 2007


Hi,

Currently, there is no officially maintained dashboard for ITK under MinGW. MinGW is optimised for performace and the performance is proven in practice as numerical projects such as r-project.org use MinGW for porting to windows. Moreover, I have found MinGW a better choice over the power-hungry visual studio solution. There are some other benefits too: eg, if you make a change in the cmake configuration of an existing compiled code, visual studio starts rebuilding a fresh compilation which, due to the size of the project, could be annoying. In contrast, unix make only rebuild the necessary parts.

Unfortunately, ITK has this little unresolved bug with MinGW. Could someone with CVS access apply this simple patch:

In /Utilities/itkjpeg/jmorecfg.h.in, somewhere before line 286, this should be added:

-----------------------------------------------
#if defined(__MINGW32__) && defined(_RPCNDR_H) && !defined(HAVE_BOOLEAN)
#define HAVE_BOOLEAN
#endif
-----------------------------------------------

This should enable you to compile the code as a static library. With the shared configuration, everything works fine until the final linking where references are not found. Any idea how to resolve the problem of shared libraries?
_________________________________________________________________
Get free emoticon packs and customisation from Windows Live. 
http://www.pimpmylive.co.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070830/8306a817/attachment.html


More information about the Insight-users mailing list