[Insight-users] ITK build error with Mingw64
Gib Bogle
g.bogle at auckland.ac.nz
Sun Sep 18 18:02:57 EDT 2011
Thanks Sumit, it builds now. I'm still baffled as to why it builds OK without
that fix on one machine but not on another, same software versions.
Gib
On 18/09/2011 9:45 a.m., Sumit Kumar wrote:
> Hello Gib
> I too faced the same problem and came to this thread. This is not a problem
> related to ITK but to MinGW and it needs to be addressed "by the user".
> The problem was traced back to an include file in MinGW 64-Bit called
> "winnt.h"
>
> There is a set of lines as follows:
> #define FastFence __faststorefence /* FIXME: implement proprely */
> #define LoadFence _mm_lfence
> #define MemoryFence _mm_mfence
> #define StoreFence _mm_sfence
>
> void __faststorefence(void);
> void _m_prefetchw(void *Source);
>
> #include<intrin.h> <----- I changed this to #include<emmintrin.h>
>
> #define YieldProcessor _mm_pause
> #define MemoryBarrier __faststorefence /* FIXME: implement proprely */
> #define PreFetchCacheLine(l,a) _mm_prefetch((CHAR CONST *) a,l)
> #define PrefetchForWrite(p) _m_prefetchw(p)
>
>
> After making the changes, the compilation proceeded without any breaks. I
> must add here though; I am using ITK v 4.0 !
> Thanks and Regards
> Sumit
> _____________________________________
> 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
--
Dr. Gib Bogle
Senior Research Fellow
Auckland Bioengineering Institute
University of Auckland
New Zealand
http://www.bioeng.auckland.ac.nz
g.bogle at auckland.ac.nz
(64-9) 373-7599 Ext. 87030
More information about the Insight-users
mailing list