<div dir="ltr"><div><div><div><div>Hi Jamil,<br><br></div>Please keep replies CCed to the mailing list (Reply All) so others can contribute to the discussion (or find answers to their own problems later in the archives).<br><br></div>We use the most recent release of ninja on most of our build machines (so that one should work). I'm not sure why you are getting that error messages from what you have included... maybe others on the list can chime in or you can give more details.<br></div><br></div>Shawn<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 27, 2018 at 6:40 AM, Jamil Goettlich <span dir="ltr"><<a href="mailto:jamil.goettlich@gmail.com" target="_blank">jamil.goettlich@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Shawn,</div><div><br></div><div>thanks a lot for the tip, configuring worked with the Visual Studio 12.0 compiler! Now I am getting a lot of build errors though.<br><br><div>C:\Tools\paraview\superbuild\<wbr>hdf5\src\src\H5Ztrans.c(1135) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data</div><div>[255/256] Linking C shared library bin\hdf5.dll</div><div> Creating library bin\hdf5.lib and object bin\hdf5.exp</div><div>[256/256] Linking C shared library bin\hdf5_hl.dll</div><div> Creating library bin\hdf5_hl.lib and object bin\hdf5_hl.exp</div><div>ninja: build stopped: subcommand failed.</div><div><br></div><div><div>LINK : fatal error LNK1104: cannot open file 'quat\quat.lib'</div><div>[3/97] Linking CXX shared library gpsnmealib\gpsnmea.dll</div><div>[4/97] Building CXX object client_src\CMakeFiles\vrpn_<wbr>print_messages.dir\vrpn_print_<wbr>messages.C.obj</div><div>[5/97] Building CXX object client_src\CMakeFiles\ff_<wbr>client.dir\ff_client.C.obj</div><div>[6/97] Building CXX object client_src\CMakeFiles\phan_<wbr>client.dir\phan_client.C.obj</div><div>[7/97] Building CXX object client_src\CMakeFiles\<wbr>printvals.dir\printvals.C.obj</div><div>ninja: build stopped: subcommand failed.</div><div>CMake Error at C:/Tools/paraview/superbuild/<wbr>sb-vrpn-build.cmake:43 (message):</div><div> Failed with exit code 1</div><br>These are some examples. My it be possible that the ninja version is not suited either? Do you know what ninja version you were building the superbuild with?</div></div><div><br></div><div>Thanks a lot,</div><div>Jamil</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-03-26 17:21 GMT+02:00 Shawn Waldon <span dir="ltr"><<a href="mailto:shawn.waldon@kitware.com" target="_blank">shawn.waldon@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi Jamil,<br><br></div>I'm not sure if this will get you all the way to a build, but here are some pointers:<br><br></div>We build with the visual studio compiler but use the Ninja generator since it is significantly faster than VS.<br><br></div>VS 2017 may not work. Our binaries are built with 2013 right now and we plan to move to 2015 after the current release cycle. If you want what you are building to be compatible with the Kitware binaries, you will need to use 2013. Also, I believe there are compiler errors if you use 2017 right now.<br><br></div>To build with Ninja and VS compilers, you need to be in a visual studio command prompt rather than a normal shell (it sets a bunch of environment vars, which I think is what is missing in your last example). To convert a normal command prompt you run (example is for VS2015, your path may differ) 'C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat x64' in your shell and it will set the environment variables for you. If you have the environment set up before running cmake -G Ninja it should just pick the right compiler.<br><br></div>HTH,<br><br></div>Shawn<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-433800016438867982h5">On Mon, Mar 26, 2018 at 10:59 AM, Jamil Goettlich <span dir="ltr"><<a href="mailto:jamil.goettlich@gmail.com" target="_blank">jamil.goettlich@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-433800016438867982h5"><div dir="ltr">Hello,<div><br></div><div>I am having Problems building ParaView with ParaView-Superbuild. As Visual Studio is not supported, I tried other build systems and compilers. Unfortunately none of them succeeded. On the other hand I was able to build small HelloWord programs with each of the combinations listed below and without any errors. Here is what I did:</div><div><br></div><div>First, I cloned from git:<br>git clone --recursive <a href="https://gitlab.kitware.com/paraview/paraview-superbuild.git" target="_blank">https://gitlab.kitware.com/par<wbr>aview/paraview-superbuild.git</a></div><div>Then cd paraview-superbuild and created new folder (build).</div><div><br></div><div>The following cases did not work out (Doesnt matter if using Git Bash or VS Command Prompt):</div><div>Build System: Ninja, Compiler: MinGW<br>command: cmake .. -G "Ninja"</div><div>Error: </div><div><div><font color="#ff0000">CMake Error at superbuild/projects/win32/boos<wbr>t.cmake:5 (message):</font></div><div><font color="#ff0000"> At least Visual Studio 9.0 is required</font></div><div><font color="#ff0000">Call Stack (most recent call first):</font></div><div><font color="#ff0000"> superbuild/cmake/SuperbuildMac<wbr>ros.cmake:477 (include)</font></div><div><font color="#ff0000"> superbuild/CMakeLists.txt:145 (_superbuild_discover_projects<wbr>)</font></div></div><div><br></div><div>Although I have Visual Studio 15 2017 installed it does not seem to work.</div><div><br></div><div>Build System: Ninja, Compiler: MSVC compiler (cl.exe in C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools<wbr>\MSVC\14.12.25827\bin\Hostx64\<wbr>x64)</div><div>Error:</div><div>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)">The C compiler<br> "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools<wbr>/MSVC/14.12.25827/bin/Hostx86/<wbr>x64/cl.exe"<br> is not able to compile a simple test program.<br> It fails with the following output:<br> Change Dir: C:/Tools/paraview-superbuild/b<wbr>uild/CMakeFiles/CMakeTmp<br> Run Build Command:"nmake" "/NOLOGO" "cmTC_008b4\fast"<br> "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools<wbr>\MSVC\14.12.25827\bin\Hostx64\<wbr>x64\nmake.exe" -f CMakeFiles\cmTC_008b4.dir\buil<wbr>d.make /nologo -L CMakeFiles\cmTC_008b4.dir\buil<wbr>d</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"> Building C object CMakeFiles/cmTC_008b4.dir/test<wbr>CCompiler.c.obj</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"> C:\PROGRA~2\MIB055~1\2017\COMM<wbr>UN~1\VC\Tools\MSVC\1412~1.258\<wbr>bin\Hostx86\x64\cl.exe @C:\Users\JamiG\AppData\Local\<wbr>Temp\nmD540.tmp</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"> testCCompiler.c</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"> C:\Tools\paraview-superbuild\b<wbr>uild\CMakeFiles\CMakeTmp\testC<wbr>Compiler.c: fatal error C1001: An internal error has occurred in the compiler.</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"> (compiler file 'msc1.cpp', line 1507)</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"> To work around this problem, try simplifying or changing the program near the locations listed above.</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"> Please choose the Technical Support command on the Visual C++ </span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"> Help menu, or open the Technical Support help file for more information</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"> Internal Compiler Error in C:\PROGRA~2\MIB055~1\2017\COMM<wbr>UN~1\VC\Tools\MSVC\1412~1.258\<wbr>bin\Hostx86\x64\cl.exe. You will be prompted to send an error report to Microsoft later.</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"> NMAKE : fatal error U1077: 'C:\PROGRA~2\MIB055~1\2017\COM<wbr>MUN~1\VC\Tools\MSVC\1412~1.258<wbr>\bin\Hostx86\x64\cl.exe' : return code '0x2'</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"> Stop.</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools<wbr>\MSVC\14.12.25827\bin\Hostx64\<wbr>x64\nmake.exe"' : return code '0x2'</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"> Stop.</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font color="#000000">Build System: NMake, Compiler: </font><span style="white-space:normal">MSVC compiler (cl.exe in C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools<wbr>\MSVC\14.12.25827\bin\Hostx64\<wbr>x64)</span></p><p style="margin:0px;text-indent:0px">Here, cmake recognized the compiler, but it throws another error<br><font style="white-space:pre-wrap" color="#000000"></font></p><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><font style="white-space:pre-wrap" color="#000000">Error:</font></div><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font style="white-space:pre-wrap" color="#000000"><span style="color:rgb(255,0,0)">CMake Error at C:/Program Files/CMake/share/cmake-3.10/M<wbr>odules/CMakeDetermineRCCompile<wbr>r.cmake:20 (message):<br> Could not find compiler set in environment variable RC:<br> rc.<br>Call Stack (most recent call first):<br> C:/Program Files/CMake/share/cmake-3.10/M<wbr>odules/Platform/Windows-MSVC.c<wbr>make:323 (enable_language)<br> C:/Program Files/CMake/share/cmake-3.10/M<wbr>odules/Platform/Windows-MSVC-C<wbr>.cmake:5 (__windows_compiler_msvc)<br> C:/Program Files/CMake/share/cmake-3.10/M<wbr>odules/CMakeCInformation.cmake<wbr>:48 (include)<br> CMakeLists.txt:3 (project)<br></span></font></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font style="white-space:pre-wrap" color="#000000"><span style="color:rgb(255,0,0)">CMake Error: CMAKE_RC_COMPILER not set, after EnableLanguage</span></font></p><p style="margin:0px;text-indent:0px"><font style="white-space:pre-wrap" color="#000000"><font style="white-space:pre-wrap" color="#000000"><br></font></font></p><p style="margin:0px;text-indent:0px"><font style="white-space:pre-wrap" color="#000000"><font style="white-space:pre-wrap" color="#000000">I am out of ideas now.</font></font></p><font style="white-space:pre-wrap" color="#000000">I would be really happy for a detailed build description as I am sure I did not understand something properly. </font><p></p><p style="margin:0px;text-indent:0px"><font style="white-space:pre-wrap" color="#000000">And every hint on how to resolve on of those errors is very welcome too.</font></p><p style="margin:0px;text-indent:0px"><font style="white-space:pre-wrap" color="#000000"><br></font></p><p style="margin:0px;text-indent:0px"><font style="white-space:pre-wrap" color="#000000">Thanks in advance!</font></p><p style="margin:0px;text-indent:0px"><font style="white-space:pre-wrap" color="#000000">
</font></p></div></div>
<br></div></div>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">https://public.kitware.com/mai<wbr>lman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>