Hello folks,<br><br>if it may be helpful, I'm having problems too, when compiling ITK 3.18.0 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><blockquote>Linking CXX static library ../../bin/libitkvnl_inst.a<br>[ 44%] Built target itkvnl_inst<br>[ 44%] Building CXX object Code/Common/CMakeFiles/ITKCommon.dir/itkBarrier.obj<br>
In file included from C:/work/src/InsightToolkit-3.18.0/Code/Common/itkConditionVariable.h:31,<br> from C:/work/src/InsightToolkit-3.18.0/Code/Common/itkBarrier.h:21,<br> from 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: conflicting declaration 'typedef void* itk::MutexType'<br>C:/work/src/InsightToolkit-3.18.0/Code/Common/itkMutexLock.h:46: error: 'itk::MutexType' has a previous declaration as 'typedef struct 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></blockquote><br>Output of gcc -v<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
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 --enable-languages=c,ada,c++,fortran,java,objc,obj-c++ --disable-sjlj-exceptions --enable-shared --enable-libgcj --enable-libgomp --with-dwarf2 --disable-win32-<br>
registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --prefix=/mingw --with-gmp=/mingw/src/gmp/root --with-mpfr=/mingw/src/mpfr/root --build=mingw32<br>Thread model: win32<br>gcc version 4.4.0 (GCC)<br>
</blockquote><br>Note that I have several gcc versions installed but at this compilation time, all env variables and paths seemed to point to the correct version of gcc<br><br>Regards<br><br><div class="gmail_quote">On Sun, Apr 25, 2010 at 5:33 PM, Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.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;"><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><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>--------------------------------------------------------------------------------------------<div><div></div><div class="h5">
<br><div class="gmail_quote">
On Sat, Apr 24, 2010 at 11:47 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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Strange... we have nightly builds with 4.4.3.<br>
<div><div></div><div><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 compilation<br>
> went wrong.<br>
> I receive this message:<br>
><br>
> In file included from<br>
> /home/eugen/development/slam/Installationen/InsightToolkit/InsightToolkit-3.18.0/Utilities/itkjpeg/jmemnobs.c:20:<br>
> /home/eugen/development/slam/Installationen/InsightToolkit/InsightToolkit-3.18.0/Utilities/itkjpeg/jpeglib.h:78:<br>
> error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ 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: 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>
</div></div><div><div></div><div>> _____________________________________<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>
</div></div></blockquote></div><br>
</div></div><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></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">www.alma3d.com</a><br>