<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">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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/<wbr>paraview/paraview-superbuild.<wbr>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/<wbr>boost.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/<wbr>SuperbuildMacros.cmake:477 (include)</font></div><div><font color="#ff0000"> superbuild/CMakeLists.txt:145 (_superbuild_discover_<wbr>projects)</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\<wbr>Tools\MSVC\14.12.25827\bin\<wbr>Hostx64\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/<wbr>Tools/MSVC/14.12.25827/bin/<wbr>Hostx86/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/<wbr>build/CMakeFiles/CMakeTmp<br> Run Build Command:"nmake" "/NOLOGO" "cmTC_008b4\fast"<br> "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\<wbr>Tools\MSVC\14.12.25827\bin\<wbr>Hostx64\x64\nmake.exe" -f CMakeFiles\cmTC_008b4.dir\<wbr>build.make /nologo -L CMakeFiles\cmTC_008b4.dir\<wbr>build</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/<wbr>testCCompiler.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\<wbr>COMMUN~1\VC\Tools\MSVC\1412~1.<wbr>258\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\<wbr>build\CMakeFiles\CMakeTmp\<wbr>testCCompiler.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\<wbr>COMMUN~1\VC\Tools\MSVC\1412~1.<wbr>258\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\<wbr>COMMUN~1\VC\Tools\MSVC\1412~1.<wbr>258\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\<wbr>Tools\MSVC\14.12.25827\bin\<wbr>Hostx64\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\<wbr>Tools\MSVC\14.12.25827\bin\<wbr>Hostx64\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/<wbr>Modules/<wbr>CMakeDetermineRCCompiler.<wbr>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/<wbr>Modules/Platform/Windows-MSVC.<wbr>cmake:323 (enable_language)<br> C:/Program Files/CMake/share/cmake-3.10/<wbr>Modules/Platform/Windows-MSVC-<wbr>C.cmake:5 (__windows_compiler_msvc)<br> C:/Program Files/CMake/share/cmake-3.10/<wbr>Modules/CMakeCInformation.<wbr>cmake: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>______________________________<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/<wbr>opensource/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/<wbr>ParaView</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/<wbr>mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>