[Paraview] Passing group of flags to all TUs
Gonzalo Brito Gadeschi
g.brito at aia.rwth-aachen.de
Thu Nov 6 07:52:56 EST 2014
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: g.brito at aia.rwth-aachen.de
Internet: www.aia.rwth-aachen.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20141106/488ed9bb/attachment-0001.html>
More information about the ParaView
mailing list