<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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Texte de bulles Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.TextedebullesCar
{mso-style-name:"Texte de bulles Car";
mso-style-priority:99;
mso-style-link:"Texte de bulles";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:891189960;
mso-list-type:hybrid;
mso-list-template-ids:2147097680 -110342258 67895299 67895301 67895297 67895299 67895301 67895297 67895299 67895301;}
@list l0:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-font-family:Calibri;
color:windowtext;}
@list l1
{mso-list-id:1381787570;
mso-list-type:hybrid;
mso-list-template-ids:-710250644 -110342258 67895299 67895301 67895297 67895299 67895301 67895297 67895299 67895301;}
@list l1:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-font-family:Calibri;
color:windowtext;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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="FR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’m facing some serious troubles trying to compile ParaView on Windows.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Note that the same compilation on a Linux environment with GNU instead of mingw works.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Here is the environment I use:<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l1 level1 lfo2"><![if !supportLists]><span lang="EN-US"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US">QtCreator 3.3.1 or Eclipse Luna 4.4<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l1 level1 lfo2"><![if !supportLists]><span lang="EN-US"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US">QT 4.8.6<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l1 level1 lfo2"><![if !supportLists]><span lang="EN-US"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US">CMake 2.8<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l1 level1 lfo2"><![if !supportLists]><span lang="EN-US"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US">MinGW 4.4<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l1 level1 lfo2"><![if !supportLists]><span lang="EN-US"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US">Paraview 4.3.1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">1/ I run the CMake operation and I can correctly generate the makefiles.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2/ I import the project either on QtCreator or Eclipse => I got the same error at the end.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">3/ I launch a full compilation but I first have some code modifications to do :<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l1 level1 lfo2"><![if !supportLists]><span lang="EN-US"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US">subprocess.h : change “static string Subprocess::Win32ErrorMessage(DWORD error_code);” to “static string Win32ErrorMessage(DWORD error_code);” to avoid extra configuration error<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l1 level1 lfo2"><![if !supportLists]><span lang="EN-US"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US">H5.c : add macro “#if !defined(OPJ_STATIC) && !defined(__MINGW32__)” around DllMain function to avoid multiple definition<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l1 level1 lfo2"><![if !supportLists]><span lang="EN-US"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US">paraview_main.cxx : change “#if !defined(_WIN32) || defined(__CYGWIN__)” to “#if !defined(_WIN32) || defined(__CYGWIN__) || defined(__MINGW32__)” to avoid unknown function _dupenv_s<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">All of this leads to the following error message at the end of the build process :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Scanning dependencies of target paraview<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> [100%] Building CXX object Applications/ParaView/CMakeFiles/paraview.dir/paraview_main.cxx.obj<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> [100%] Building RC object Applications/ParaView/CMakeFiles/paraview.dir/Icon.rc.obj<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Command line is too long.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> C:\MinGW\bin\windres.exe: preprocessing failed.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Applications\ParaView\CMakeFiles\paraview.dir\build.make:105: recipe for target 'Applications/ParaView/CMakeFiles/paraview.dir/Icon.rc.obj' failed<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> mingw32-make[2]: *** [Applications/ParaView/CMakeFiles/paraview.dir/Icon.rc.obj] Error 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> CMakeFiles\Makefile2:16792: recipe for target 'Applications/ParaView/CMakeFiles/paraview.dir/all' failed<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Makefile:115: recipe for target 'all' failed<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> mingw32-make[1]: *** [Applications/ParaView/CMakeFiles/paraview.dir/all] Error 2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> mingw32-make: *** [all] Error 2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> 22:01:07: Process "C:\MinGW\bin\mingw32-make.exe" exit with code 2.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Error compiling/deploying project ParaView (kit : MinGW)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> When executing step "Make"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Indeed, when I look to the command line, it is very very long: between 20000 and 29000 characters depending on where I put the paraview build directory.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you in advance for your help.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Sébastien.<o:p></o:p></span></p>
</div>
</body>
</html>