Hi there,
I was trying to do the superbuild of paraview on Windows 10. I followed the exact procedure as below.
-
Install Visual Studio 2019 community with all C++ related tools
-
Install cmake 3.13.5
-
Install git bash
-
Install Ninja
- add Ninja into PATH
-
Install Qt 5.12.2
-
open git bash
cd C:/
mkdir pv
cd pv
git clone https://gitlab.kitware.com/paraview/paraview-superbuild.git
mv paraview-superbuild pvsb
mkdir pvsb_b
cd pvsb
git submodule update --init --recursive
Open Visual Studio Native Command X64
then :
cd C:\pv\pvsb_b
cmake-gui
-
configure paraview-superbuild accordingly to your need
-
ENABLE_qt5 and USE_SYSTEM_qt should be ON
-
generate
-
close cmake-gui
ninja
but after several hours, it is failed as below.
then I checked the first error , " ‘string’: is not a member of ‘std’", but it is suggested in other forum that I should add
#include in the .h file. but I doubt it.
could somebody help to see what can I do with this?
I started with
“ninja: build stopped: subcommand failed.”
FAILED: Wrapping/ClientServer/CMakeFiles/vtkRenderingAnnotationCS.dir/vtkPolarAxesActorClientServer.cxx.obj
C:\PROGRA~2\MICROS~3\2019\COMMUN~1\VC\Tools\MSVC\1421~1.277\bin\Hostx64\x64\cl.exe /nologo /TP -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -I. -IVTK\Common\Core -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Common\Core -IVTK\Utilities\KWIML -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Utilities\KWIML -IVTK\Utilities\KWSys -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Utilities\KWSys -IVTK\ThirdParty\utf8 -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\ThirdParty\utf8 -IVTK\Common\DataModel -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Common\DataModel -IVTK\Common\Math -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Common\Math -IVTK\Common\Misc -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Common\Misc -IVTK\Common\System -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Common\System -IVTK\Common\Transforms -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Common\Transforms -IVTK\Common\ExecutionModel -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Common\ExecutionModel -IVTK\Filters\Core -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Filters\Core -IVTK\Filters\General -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Filters\General -IVTK\Common\ComputationalGeometry -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Common\ComputationalGeometry -IVTK\Filters\Sources -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Filters\Sources -IVTK\Imaging\Color -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Imaging\Color -IVTK\Imaging\Core -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Imaging\Core -IVTK\Rendering\Core -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Rendering\Core -IVTK\Common\Color -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Common\Color -IVTK\Filters\Geometry -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Filters\Geometry -IVTK\Rendering\FreeType -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Rendering\FreeType -IVTK\ThirdParty\freetype -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\ThirdParty\freetype -IVTK\ThirdParty\zlib -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\ThirdParty\zlib -IVTK\Rendering\Annotation -IC:\pv\pvsb_b\superbuild\paraview\src\VTK\Rendering\Annotation -IParaViewCore\ClientServerStream -IC:\pv\pvsb_b\superbuild\paraview\src\ParaViewCore\ClientServerStream /DWIN32 /D_WINDOWS /W4 /GR /EHsc /MD /O2 /Ob2 /DNDEBUG /showIncludes /FoWrapping\ClientServer\CMakeFiles\vtkRenderingAnnotationCS.dir\vtkPolarAxesActorClientServer.cxx.obj /FdWrapping\ClientServer\CMakeFiles\vtkRenderingAnnotationCS.dir\vtkRenderingAnnotationCS.pdb /FS -c Wrapping\ClientServer\vtkPolarAxesActorClientServer.cxx
C:\pv\pvsb_b\superbuild\paraview\src\VTK\Rendering\Annotation\vtkPolarAxesActor.h(780): error C2039: ‘string’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\list(19): note: see declaration of ‘std’
C:\pv\pvsb_b\superbuild\paraview\src\VTK\Rendering\Annotation\vtkPolarAxesActor.h(780): error C3646: ‘FindExponentAndAdjustValues’: unknown override specifier
C:\pv\pvsb_b\superbuild\paraview\src\VTK\Rendering\Annotation\vtkPolarAxesActor.h(780): error C2059: syntax error: ‘(’
C:\pv\pvsb_b\superbuild\paraview\src\VTK\Rendering\Annotation\vtkPolarAxesActor.h(780): error C2238: unexpected token(s) preceding ‘;’
[5192/12038] Building CXX object Wrapping\ClientServer\CMakeFiles\vtkRenderingAnnotationCS.dir\vtkLegendBoxActorClientServer.cxx.obj
[5193/12038] Building CXX object Wrapping\ClientServer\CMakeFiles\vtkRenderingAnnotationCS.dir\vtkParallelCoordinatesActorClientServer.cxx.obj
[5194/12038] Building CXX object Wrapping\ClientServer\CMakeFiles\vtkRenderingAnnotationCS.dir\vtkLeaderActor2DClientServer.cxx.obj
[5195/12038] Building CXX object Wrapping\ClientServer\CMakeFiles\vtkRenderingAnnotationCS.dir\vtkSpiderPlotActorClientServer.cxx.obj
[5196/12038] Building CXX object Wrapping\ClientServer\CMakeFiles\vtkRenderingAnnotationCS.dir\vtkScalarBarActorClientServer.cxx.obj
[5197/12038] Building CXX object Wrapping\ClientServer\CMakeFiles\vtkRenderingAnnotationCS.dir\vtkProp3DAxisFollowerClientServer.cxx.obj
[5198/12038] Building CXX object Wrapping\ClientServer\CMakeFiles\vtkPVVTKExtensionsCGNSReaderCS.dir\vtkCGNSSubsetInclusionLatticeClientServer.cxx.obj
[5199/12038] Building CXX object Wrapping\ClientServer\CMakeFiles\vtkRenderingAnnotationCS.dir\vtkXYPlotActorClientServer.cxx.obj
[5200/12038] Building CXX object VTK\IO\Geometry\CMakeFiles\vtkIOGeometry.dir\vtkFLUENTReader.cxx.obj
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\xutility(2776): warning C4389: ‘==’: signed/unsigned mismatch
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\xutility(2792): note: see reference to function template instantiation ‘_InIt std::_Find_unchecked1<_InIt,_Ty>(_InIt,const _InIt,const _Ty &,std::false_type)’ being compiled
with
[
_InIt=int ,
_Ty=unsigned int
]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\xutility(2798): note: see reference to function template instantiation '_InIt std::_Find_unchecked<int,_Ty>(const _InIt,const _InIt,const _Ty &)’ being compiled
with
[
_InIt=int *,
_Ty=unsigned int
]
C:\pv\pvsb_b\superbuild\paraview\src\VTK\IO\Geometry\vtkFLUENTReader.cxx(337): note: see reference to function template instantiation ‘_InIt std::find<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>,unsigned int>(_InIt,const _InIt,const unsigned int &)’ being compiled
with
[
_InIt=std::_Vector_iterator<std::_Vector_val<std::_Simple_types>>,
_Ty=int
]
ninja: build stopped: subcommand failed.
CMake Error at C:/pv/pvsb_b/superbuild/sb-paraview-build.cmake:47 (message):
Failed with exit code 1