I'm trying to install paraview from source using:
CC=clang CXX=clang++ CXXFLAGS="-nostdinc++ -stdlib=libc++
-I${LIBCXX_INCLUDE} -L${LIBCXX_LIB}" cmake $PV_SRC \
-DBUILD_DOCUMENTATION:BOOL=ON \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_PREFIX:PATH=$PREFIX \
-DPARAVIEW_ENABLE_PYTHON:BOOL=ON \
-DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON \
-DPARAVIEW_USE_MPI:BOOL=ON \
-DPARAVIEW_ENABLE_FFMPEG:BOOL=ON \
-DVTK_SMP_IMPLEMENTATION_TYPE:STRING=TBB \
-DCMAKE_CXX_FLAGS="-nostdinc++ -stdlib=libc++ -I${LIBCXX_INCLUDE}
-L${LIBCXX_LIB}" \
-DMPI_CXX_COMPILE_FLAGS="-nostdinc++ -stdlib=libc++ -I${LIBCXX_INCLUDE}
-L${LIBCXX_LIB}"
Everything works fine up to the point where it tries to compile
VTK/ThirdParty/netcdf:
[ 21%] Building CXX object
VTK/ThirdParty/netcdf/vtknetcdf/CMakeFiles/vtkNetCDF_cxx.dir/cxx/netcdf.cpp.o
src/env/paraview_src/VTK/ThirdParty/netcdf/vtknetcdf/cxx/netcdf.cpp:13:10:
fatal
error: 'iostream' file not found
#include <iostream>
^
1 error generated.
make[2]: ***
[VTK/ThirdParty/netcdf/vtknetcdf/CMakeFiles/vtkNetCDF_cxx.dir/cxx/netcdf.cpp.o]
Error 1
make[1]: ***
[VTK/ThirdParty/netcdf/vtknetcdf/CMakeFiles/vtkNetCDF_cxx.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
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.
Am I setting the compilation flags correctly (CXXFLAGS, DCMAKE_CXX_FLAGS,
DMPI_CXX_FLAGS..) ?
How do I pass a group of flags to all translation units?
--
Dipl.-Ing. Gonzalo Brito Gadeschi
Institute of Aerodynamics and Chair of Fluid Mechanics
RWTH Aachen University
Wuellnerstraße 5a
D-52062 Aachen
Germany
Phone: ++49-(0)241-80-94821
Fax: ++49-(0)241-80-92257
E-mail: [email protected]
Internet: www.aia.rwth-aachen.de
_______________________________________________
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
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview