<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Dear all,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I’ve a problem compiling VTK. In order to keep VTK
compatible with software developed in QT Creator, I’m trying to compile
VTK using the MinGW with the QT command line delivered with QT Creator 1.3.0 (Last
version, based on Qt 4.6.0, using cmake 2.8). During building, I get the
compilation error shown below.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Does anyone have a suggestion to solve this?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Thanks for replies in advance,<o:p></o:p></p>
<p class=MsoNormal>Martijn<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Compilation error:<o:p></o:p></p>
<p class=MsoNormal><span lang=NL><o:p> </o:p></span></p>
<p class=MsoNormal>K:\VTK\vtk-5.4.2_build64>mingw32-make<o:p></o:p></p>
<p class=MsoNormal>[ 0%] Built target vtksysEncodeExecutable<o:p></o:p></p>
<p class=MsoNormal>[ 0%] Built target vtksysProcessFwd9x<o:p></o:p></p>
<p class=MsoNormal>[ 0%] Built target vtksys<o:p></o:p></p>
<p class=MsoNormal>[ 1%] Built target vtkzlib<o:p></o:p></p>
<p class=MsoNormal>[ 3%] Built target vtkjpeg<o:p></o:p></p>
<p class=MsoNormal>[ 4%] Built target vtkpng<o:p></o:p></p>
<p class=MsoNormal>[ 6%] Built target vtktiff<o:p></o:p></p>
<p class=MsoNormal>[ 6%] Built target vtkexpat<o:p></o:p></p>
<p class=MsoNormal>[ 7%] Built target vtkfreetype<o:p></o:p></p>
<p class=MsoNormal>[ 7%] Building C object
Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/threads.<o:p></o:p></p>
<p class=MsoNormal>obj<o:p></o:p></p>
<p class=MsoNormal>K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c: In
function 'vtk_libxml2_xm<o:p></o:p></p>
<p class=MsoNormal>lRMutexUnlock':<o:p></o:p></p>
<p class=MsoNormal>K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c:399:
error: incompatible typ<o:p></o:p></p>
<p class=MsoNormal>es when assigning to type 'pthread_t' from type 'int'<o:p></o:p></p>
<p class=MsoNormal>K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c: In
function 'vtk_libxml2_xm<o:p></o:p></p>
<p class=MsoNormal>lGetThreadId':<o:p></o:p></p>
<p class=MsoNormal>K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c:624:
error: aggregate value<o:p></o:p></p>
<p class=MsoNormal>used where an integer was expected<o:p></o:p></p>
<p class=MsoNormal>K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c: In
function 'vtk_libxml2_xm<o:p></o:p></p>
<p class=MsoNormal>lIsMainThread':<o:p></o:p></p>
<p class=MsoNormal>K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c:660:
error: invalid operands<o:p></o:p></p>
<p class=MsoNormal> to binary == (have 'pthread_t' and 'pthread_t')<o:p></o:p></p>
<p class=MsoNormal>K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c: In
function 'xmlOnceInit':<o:p></o:p></p>
<p class=MsoNormal>K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c:790:
error: 'run_once' undec<o:p></o:p></p>
<p class=MsoNormal>lared (first use in this function)<o:p></o:p></p>
<p class=MsoNormal>K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c:790:
error: (Each undeclared<o:p></o:p></p>
<p class=MsoNormal> identifier is reported only once<o:p></o:p></p>
<p class=MsoNormal>K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c:790:
error: for each functio<o:p></o:p></p>
<p class=MsoNormal>n it appears in.)<o:p></o:p></p>
<p class=MsoNormal>K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c:796:
error: incompatible typ<o:p></o:p></p>
<p class=MsoNormal>es when assigning to type 'pthread_t' from type 'DWORD'<o:p></o:p></p>
<p class=MsoNormal>mingw32-make[2]: ***
[Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/threads.obj<o:p></o:p></p>
<p class=MsoNormal>] Error 1<o:p></o:p></p>
<p class=MsoNormal>mingw32-make[1]: ***
[Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/all] Error<o:p></o:p></p>
<p class=MsoNormal>2<o:p></o:p></p>
<p class=MsoNormal>mingw32-make: *** [all] Error 2<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>K:\VTK\vtk-5.4.2_build64><o:p></o:p></p>
</div>
</body>
</html>