<div dir="ltr">I'm trying to install paraview from source using: <div><br></div><div><div>CC=clang CXX=clang++ CXXFLAGS="-nostdinc++ -stdlib=libc++ -I${LIBCXX_INCLUDE} -L${LIBCXX_LIB}" cmake $PV_SRC \</div><div> -DBUILD_DOCUMENTATION:BOOL=ON \</div><div> -DBUILD_SHARED_LIBS:BOOL=ON \</div><div> -DCMAKE_BUILD_TYPE:STRING=Release \</div><div> -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX \</div><div> -DPARAVIEW_ENABLE_PYTHON:BOOL=ON \</div><div> -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON \</div><div> -DPARAVIEW_USE_MPI:BOOL=ON \</div><div> -DPARAVIEW_ENABLE_FFMPEG:BOOL=ON \</div><div> -DVTK_SMP_IMPLEMENTATION_TYPE:STRING=TBB \</div><div> -DCMAKE_CXX_FLAGS="-nostdinc++ -stdlib=libc++ -I${LIBCXX_INCLUDE} -L${LIBCXX_LIB}" \</div><div> -DMPI_CXX_COMPILE_FLAGS="-nostdinc++ -stdlib=libc++ -I${LIBCXX_INCLUDE} -L${LIBCXX_LIB}"</div><div><br></div><div>Everything works fine up to the point where it tries to compile VTK/ThirdParty/netcdf: </div><div>
<p class=""><span class="">[ 21%] </span>Building CXX object VTK/ThirdParty/netcdf/vtknetcdf/CMakeFiles/vtkNetCDF_cxx.dir/cxx/netcdf.cpp.o</p>
<p class="">src/env/paraview_src/VTK/ThirdParty/netcdf/vtknetcdf/cxx/netcdf.cpp:13:10: <span class="">fatal error: </span>'iostream' file not found</p>
<p class="">#include <iostream></p>
<p class=""> ^</p>
<p class="">1 error generated.</p>
<p class="">make[2]: *** [VTK/ThirdParty/netcdf/vtknetcdf/CMakeFiles/vtkNetCDF_cxx.dir/cxx/netcdf.cpp.o] Error 1</p>
<p class="">make[1]: *** [VTK/ThirdParty/netcdf/vtknetcdf/CMakeFiles/vtkNetCDF_cxx.dir/all] Error 2</p>
<p class="">make[1]: *** Waiting for unfinished jobs....</p></div><div>A make VERBOSE=1 reveals that CMake does not pass the CXXFLAGS I've specified when compiling netcdf.cpp. Since the include directories of the standard library are missing, compilation fails. </div><div><br></div><div>Am I setting the compilation flags correctly (CXXFLAGS, DCMAKE_CXX_FLAGS, DMPI_CXX_FLAGS..) ? </div><div><br></div><div>How do I pass a group of flags to all translation units?</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Dipl.-Ing. Gonzalo Brito Gadeschi<br>Institute of Aerodynamics and Chair of Fluid Mechanics<br>RWTH Aachen University<br>Wuellnerstraße 5a<br>D-52062 Aachen<br>Germany<br>Phone: ++49-(0)241-80-94821<br>Fax: ++49-(0)241-80-92257<br>E-mail: <a href="mailto:g.brito@aia.rwth-aachen.de" target="_blank">g.brito@aia.rwth-aachen.de</a><br>Internet: <a href="http://www.aia.rwth-aachen.de" target="_blank">www.aia.rwth-aachen.de</a></div></div>
</div></div>