You are right Bill<br><br>Bot variables were enabled.<br><br>Is is unlikely that I had myself enabled both (I don't usually mess with advanced variables), so I tried to clean cmake cache and re-run cmake-gui again.<br>
It seems that the generator Eclipse 4 CDT - Unix Makefiles (and MSYS makefiles / Unix makefiles too as I've just checked) sets both to enabled either by default or as a result of the configure steps on my machine.<br>
<br>Unchecking the PTHREADS checkbox, ITK has compiled ok (with some warnings).<br><br>Thanks<br><br><br><br><div class="gmail_quote">On Mon, Apr 26, 2010 at 2:25 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Sergio,<br>
<br>
It seems that both<br>
ITK_USE_PTHREADS and<br>
ITK_USE_WIN32_THREADS are enabled.<br>
<br>
My mingw has only<br>
ITK_USE_WIN32_THREADS<br>
<br>
Did you set either of these when you configured with CMake? I did not<br>
set either. The cmake configuration set them for me.<br>
<font color="#888888"><br>
Bill<br>
</font><div><div></div><div><br>
On Mon, Apr 26, 2010 at 6:43 AM, Sergio Vera <<a href="mailto:sergio.vera@alma3d.com" target="_blank">sergio.vera@alma3d.com</a>> wrote:<br>
> Hello folks,<br>
><br>
> if it may be helpful, I'm having problems too, when compiling ITK 3.18.0<br>
> with gcc 4.4.0<br>
><br>
> My setup is:<br>
> Windows 7 64 bits.<br>
> GCC 4.4.0 under MinGW32<br>
> CXX and CC variables set to g++ and gcc<br>
><br>
> The compilation fails with the following error:<br>
><br>
> Linking CXX static library ../../bin/libitkvnl_inst.a<br>
> [ 44%] Built target itkvnl_inst<br>
> [ 44%] Building CXX object<br>
> Code/Common/CMakeFiles/ITKCommon.dir/itkBarrier.obj<br>
> In file included from<br>
> C:/work/src/InsightToolkit-3.18.0/Code/Common/itkConditionVariable.h:31,<br>
> from<br>
> C:/work/src/InsightToolkit-3.18.0/Code/Common/itkBarrier.h:21,<br>
> from<br>
> C:/work/src/InsightToolkit-3.18.0/Code/Common/itkBarrier.cxx:17:<br>
> C:/work/src/InsightToolkit-3.18.0/Code/Common/itkMutexLock.h:50: error:<br>
> conflicting declaration 'typedef void* itk::MutexType'<br>
> C:/work/src/InsightToolkit-3.18.0/Code/Common/itkMutexLock.h:46: error:<br>
> 'itk::MutexType' has a previous declaration as 'typedef struct<br>
> pthread_mutex_t_* itk::MutexType'<br>
> make[2]: *** [Code/Common/CMakeFiles/ITKCommon.dir/itkBarrier.obj] Error 1<br>
> make[1]: *** [Code/Common/CMakeFiles/ITKCommon.dir/all] Error 2<br>
> make: *** [all] Error 2<br>
><br>
> Output of gcc -v<br>
><br>
>> c:\work\bin\itk\3.18.0\gcc440-MinGW32-Release>gcc -v<br>
>> Using built-in specs.<br>
>> Target: mingw32<br>
>> Configured with: ../gcc-4.4.0/configure<br>
>> --enable-languages=c,ada,c++,fortran,java,objc,obj-c++<br>
>> --disable-sjlj-exceptions --enable-shared --enable-libgcj --enable-libgomp<br>
>> --with-dwarf2 --disable-win32-<br>
>> registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs<br>
>> --prefix=/mingw --with-gmp=/mingw/src/gmp/root<br>
>> --with-mpfr=/mingw/src/mpfr/root --build=mingw32<br>
>> Thread model: win32<br>
>> gcc version 4.4.0 (GCC)<br>
><br>
> Note that I have several gcc versions installed but at this compilation<br>
> time, all env variables and paths seemed to point to the correct version of<br>
> gcc<br>
><br>
> Regards<br>
><br>
> On Sun, Apr 25, 2010 at 5:33 PM, Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>><br>
> wrote:<br>
>><br>
>> Eugen,<br>
>><br>
>> As Bill pointed out, we build ITK with gcc 4.4.1 on a regular basis.<br>
>><br>
>> That's is indeed the compiler version in both my Ubuntu 9.10<br>
>> laptop (macondo.kitware) and desktop (eldorado.kitware).<br>
>><br>
>> The second machine (eldorado.kitware) submits two Nightly<br>
>> builds to the ITK Dashboard:<br>
>><br>
>><br>
>> <a href="http://www.cdash.org/CDash/index.php?project=Insight&filtercount=1&showfilters=1&field1=site/string&compare1=63&value1=eldorado" target="_blank">http://www.cdash.org/CDash/index.php?project=Insight&filtercount=1&showfilters=1&field1=site/string&compare1=63&value1=eldorado</a><br>
>><br>
>><br>
>><br>
>> It is likely that you are simply dealing with a configuration<br>
>> problem.<br>
>><br>
>> 1) What is your platform ? (Linux distribution, Cygwin, MinGW ?)<br>
>><br>
>> 2) Do you have other versions of GCC installed as well ?<br>
>><br>
>> 3) Did you set up the environment variables CXX and CC<br>
>> to the locations of your g++-4.4 and gcc-4.4 executables<br>
>> (respectively).<br>
>><br>
>><br>
>><br>
>> Please let us know what you find.<br>
>><br>
>><br>
>> Thanks<br>
>><br>
>><br>
>><br>
>> --------------------------------------------------------------------------------------------<br>
>> On Sat, Apr 24, 2010 at 11:47 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> Strange... we have nightly builds with 4.4.3.<br>
>>><br>
>>> On Sat, Apr 24, 2010 at 5:25 PM, Eugen Funk <<a href="mailto:eugen.funk@gmail.com" target="_blank">eugen.funk@gmail.com</a>> wrote:<br>
>>> > Hey,<br>
>>> > I wanted to try out the impressive toolkit but unfortunately the<br>
>>> > compilation<br>
>>> > went wrong.<br>
>>> > I receive this message:<br>
>>> ><br>
>>> > In file included from<br>
>>> ><br>
>>> > /home/eugen/development/slam/Installationen/InsightToolkit/InsightToolkit-3.18.0/Utilities/itkjpeg/jmemnobs.c:20:<br>
>>> ><br>
>>> > /home/eugen/development/slam/Installationen/InsightToolkit/InsightToolkit-3.18.0/Utilities/itkjpeg/jpeglib.h:78:<br>
>>> > error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’<br>
>>> > token<br>
>>> ><br>
>>> > Did anybody experienced the same?<br>
>>> > Cmake configuration worked well (at least with no fatal errors)<br>
>>> > so i assume, that the problem ist my relative new compiler version:<br>
>>> > gcc<br>
>>> > 4.4.1<br>
>>> ><br>
>>> > I hope somebidy already had similar problem and can give a hint how to<br>
>>> > resolve it.<br>
>>> ><br>
>>> > thanks alot in advance!<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > _____________________________________<br>
>>> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>> ><br>
>>> > Visit other Kitware open-source projects at<br>
>>> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>> ><br>
>>> > Kitware offers ITK Training Courses, for more information visit:<br>
>>> > <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
>>> ><br>
>>> > Please keep messages on-topic and check the ITK FAQ at:<br>
>>> > <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>>> ><br>
>>> > Follow this link to subscribe/unsubscribe:<br>
>>> > <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
>>> ><br>
>>> ><br>
>>> _____________________________________<br>
>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>><br>
>>> Visit other Kitware open-source projects at<br>
>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>><br>
>>> Kitware offers ITK Training Courses, for more information visit:<br>
>>> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
>>><br>
>>> Please keep messages on-topic and check the ITK FAQ at:<br>
>>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>>><br>
>>> Follow this link to subscribe/unsubscribe:<br>
>>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
>><br>
>><br>
>> _____________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Kitware offers ITK Training Courses, for more information visit:<br>
>> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
>><br>
>> Please keep messages on-topic and check the ITK FAQ at:<br>
>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Sergio Vera<br>
><br>
> Alma IT Systems<br>
> C/ Vilana, 4B, 4º 1ª<br>
> 08022 Barcelona<br>
> T. (+34) 932 380 592<br>
> <a href="http://www.alma3d.com" target="_blank">www.alma3d.com</a><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. (+34) 932 380 592<br> <a href="http://www.alma3d.com" target="_blank">www.alma3d.com</a><br>