[Paraview] ParaView-Superbuild Win10 Errors
Shawn Waldon
shawn.waldon at kitware.com
Mon Mar 26 11:21:03 EDT 2018
Hi Jamil,
I'm not sure if this will get you all the way to a build, but here are some
pointers:
We build with the visual studio compiler but use the Ninja generator since
it is significantly faster than VS.
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.
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.
HTH,
Shawn
On Mon, Mar 26, 2018 at 10:59 AM, Jamil Goettlich <jamil.goettlich at gmail.com
> wrote:
> Hello,
>
> 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:
>
> First, I cloned from git:
> git clone --recursive https://gitlab.kitware.com/
> paraview/paraview-superbuild.git
> Then cd paraview-superbuild and created new folder (build).
>
> The following cases did not work out (Doesnt matter if using Git Bash or
> VS Command Prompt):
> Build System: Ninja, Compiler: MinGW
> command: cmake .. -G "Ninja"
> Error:
> CMake Error at superbuild/projects/win32/boost.cmake:5 (message):
> At least Visual Studio 9.0 is required
> Call Stack (most recent call first):
> superbuild/cmake/SuperbuildMacros.cmake:477 (include)
> superbuild/CMakeLists.txt:145 (_superbuild_discover_projects)
>
> Although I have Visual Studio 15 2017 installed it does not seem to work.
>
> Build System: Ninja, Compiler: MSVC compiler (cl.exe in C:\Program Files
> (x86)\Microsoft Visual Studio\2017\Community\VC\
> Tools\MSVC\14.12.25827\bin\Hostx64\x64)
> Error:
>
> The C compiler
> "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/
> Tools/MSVC/14.12.25827/bin/Hostx86/x64/cl.exe"
> is not able to compile a simple test program.
> It fails with the following output:
> Change Dir: C:/Tools/paraview-superbuild/build/CMakeFiles/CMakeTmp
> Run Build Command:"nmake" "/NOLOGO" "cmTC_008b4\fast"
> "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\
> Tools\MSVC\14.12.25827\bin\Hostx64\x64\nmake.exe" -f
> CMakeFiles\cmTC_008b4.dir\build.make /nologo -L CMakeFiles\cmTC_008b4.dir\
> build
>
> Building C object CMakeFiles/cmTC_008b4.dir/testCCompiler.c.obj
>
> C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx86\x64\cl.exe
> @C:\Users\JamiG\AppData\Local\Temp\nmD540.tmp
>
> testCCompiler.c
>
> C:\Tools\paraview-superbuild\build\CMakeFiles\CMakeTmp\testCCompiler.c:
> fatal error C1001: An internal error has occurred in the compiler.
>
> (compiler file 'msc1.cpp', line 1507)
>
> To work around this problem, try simplifying or changing the program near
> the locations listed above.
>
> Please choose the Technical Support command on the Visual C++
>
> Help menu, or open the Technical Support help file for more information
>
> Internal Compiler Error in C:\PROGRA~2\MIB055~1\2017\
> COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx86\x64\cl.exe. You will be
> prompted to send an error report to Microsoft later.
>
> NMAKE : fatal error U1077: 'C:\PROGRA~2\MIB055~1\2017\
> COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx86\x64\cl.exe' : return code
> '0x2'
>
> Stop.
>
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\Hostx64\x64\nmake.exe"'
> : return code '0x2'
>
> Stop.
>
>
> Build System: NMake, Compiler: MSVC compiler (cl.exe in C:\Program Files
> (x86)\Microsoft Visual Studio\2017\Community\VC\
> Tools\MSVC\14.12.25827\bin\Hostx64\x64)
>
> Here, cmake recognized the compiler, but it throws another error
> Error:
>
> CMake Error at C:/Program Files/CMake/share/cmake-3.10/Modules/
> CMakeDetermineRCCompiler.cmake:20 (message):
> Could not find compiler set in environment variable RC:
> rc.
> Call Stack (most recent call first):
> C:/Program Files/CMake/share/cmake-3.10/Modules/Platform/Windows-MSVC.cmake:323
> (enable_language)
> C:/Program Files/CMake/share/cmake-3.10/Modules/Platform/Windows-MSVC-C.cmake:5
> (__windows_compiler_msvc)
> C:/Program Files/CMake/share/cmake-3.10/Modules/CMakeCInformation.cmake:48
> (include)
> CMakeLists.txt:3 (project)
>
> CMake Error: CMAKE_RC_COMPILER not set, after EnableLanguage
>
>
> I am out of ideas now.
> I would be really happy for a detailed build description as I am sure I
> did not understand something properly.
>
> And every hint on how to resolve on of those errors is very welcome too.
>
>
> Thanks in advance!
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180326/8c17275e/attachment.html>
More information about the ParaView
mailing list