I'm trying to build ParaView superbuild in Windows 10. My steps
- Open
VS2015 x86 x64 Cross Tools Command Prompt
and executecmake-gui
. - Change
CMAKE_BUILD_TYPE
fromdebug
torelease
- Enable:
ENABLE_python
- Enable:
ENABLE_python2
- Enable:
ENABLE_qt5
- Configure
- Enable:
USE_SYSTEM_qt5
- Configure
- Add Qt path:
C:\Qt\Qt5.9.9\5.9.9\msvc2013_64\lib\cmake\Qt5
- Configure
- Generate
- cd into build folder in git bash and execute:
ninja
I got
[26/76] Performing configure step for 'szip'
FAILED: superbuild/szip/stamp/szip-configure
cmd.exe /C "cd /D C:\Users\dev\Desktop\paraview\build\superbuild\szip\build && "C:\Program Files\CMake\bin\cmake.exe" -P C:/Users/dev/Desktop/paraview/build/superbuild/sb-szip-configure.cmake && "C:\Program Files\CMake\bin\cmake.exe" -E touch C:/Users/dev/Desktop/paraview/build/superbuild/szip/stamp/szip-configure"
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 9.2.0
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"C:/MinGW/bin/gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/dev/Desktop/paraview/build/superbuild/szip/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Ninja/ninja.exe cmTC_4484f && [1/2] Building C object CMakeFiles/cmTC_4484f.dir/testCCompiler.c.obj
FAILED: CMakeFiles/cmTC_4484f.dir/testCCompiler.c.obj
C:\MinGW\bin\gcc.exe /DWIN32 /D_WINDOWS /W3 -o CMakeFiles/cmTC_4484f.dir/testCCompiler.c.obj -c testCCompiler.c
gcc.exe: error: /DWIN32: No such file or directory
gcc.exe: error: /D_WINDOWS: No such file or directory
gcc.exe: error: /W3: No such file or directory
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (PROJECT)
-- Configuring incomplete, errors occurred!
See also "C:/Users/dev/Desktop/paraview/build/superbuild/szip/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/dev/Desktop/paraview/build/superbuild/szip/build/CMakeFiles/CMakeError.log".
CMake Error at C:/Users/dev/Desktop/paraview/build/superbuild/sb-szip-configure.cmake:47 (message):
Failed with exit code 1
[27/76] Performing configure step for 'zlib'
FAILED: superbuild/zlib/stamp/zlib-configure
cmd.exe /C "cd /D C:\Users\dev\Desktop\paraview\build\superbuild\zlib\build && "C:\Program Files\CMake\bin\cmake.exe" -P C:/Users/dev/Desktop/paraview/build/superbuild/sb-zlib-configure.cmake && "C:\Program Files\CMake\bin\cmake.exe" -E touch C:/Users/dev/Desktop/paraview/build/superbuild/zlib/stamp/zlib-configure"
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 9.2.0
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"C:/MinGW/bin/gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/dev/Desktop/paraview/build/superbuild/zlib/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Ninja/ninja.exe cmTC_aa51c && [1/2] Building C object CMakeFiles/cmTC_aa51c.dir/testCCompiler.c.obj
FAILED: CMakeFiles/cmTC_aa51c.dir/testCCompiler.c.obj
C:\MinGW\bin\gcc.exe /DWIN32 /D_WINDOWS /W3 -o CMakeFiles/cmTC_aa51c.dir/testCCompiler.c.obj -c testCCompiler.c
gcc.exe: error: /DWIN32: No such file or directory
gcc.exe: error: /D_WINDOWS: No such file or directory
gcc.exe: error: /W3: No such file or directory
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:4 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/dev/Desktop/paraview/build/superbuild/zlib/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/dev/Desktop/paraview/build/superbuild/zlib/build/CMakeFiles/CMakeError.log".
CMake Error at C:/Users/dev/Desktop/paraview/build/superbuild/sb-zlib-configure.cmake:47 (message):
Failed with exit code 1
It seems to be a problem with C:/MinGW/bin/gcc.exe
. Any clue on how to fix this?