[Paraview] ParaView Superbuild - changing default Paraciew cmake option

Su, Simon M CTR USARMY ARL (US) simon.m.su.ctr at mail.mil
Fri Oct 17 13:41:58 EDT 2014


Hi Ben,

Thanks for your help. How do I pass both arguments to ParaView build with  PV_EXTRA_CMAKE_ARGS?

When I do -DPV_EXTRA_CMAKE_ARGS separately, cmake didn't like it.
-DPV_EXTRA_CMAKE_ARGS="-DModule_vtkIOXdmf3:BOOL=ON" -DPV_EXTRA_CMAKE_ARGS="-DBoost_NO_BOOST_CMAKE:BOOL=ON"

I am getting
CMake Warning:
  Manually-specified variables were not used by the project:

    PV_EXTRA_CMAKE_ARGS=-DBoost_NO_BOOST_CMAKE

When I do both argument in the same -DPV_EXTRA_CMAKE_ARGS, cmake also didn't like it.
-DPV_EXTRA_CMAKE_ARGS="-DModule_vtkIOXdmf3:BOOL=ON -DBoost_NO_BOOST_CMAKE:BOOL=ON" 

I am getting 
CMake Warning:
  Manually-specified variables were not used by the project:

    PV_EXTRA_CMAKE_ARGS=-DModule_vtkIOXdmf3


But if I just do one of the argument, 
-DPV_EXTRA_CMAKE_ARGS="-DModule_vtkIOXdmf3:BOOL=ON"

it worked.

Please see below...

thanks
-simon



Build_mesa-2014-10-15/ParaViewSuperbuild_4.2.0-build> cmake -DCMAKE_INSTALL_PREFIX:PATH=${HOME}/pv-test/${version}_osmesa -DCMAKE_BUILD_TYPE=Release -DParaView_FROM_GIT=OFF -DParaView_URL=/mnt/lustre/people/ssu/build/paraview/dl/ParaView-v4.2.0-source-xdmf3.tar.gz -DENABLE_boost=ON -DENABLE_cgns=OFF -DENABLE_ffmpeg=ON -DENABLE_fontconfig=ON -DENABLE_freetype=ON -DENABLE_hdf5=ON -DENABLE_libxml2=ON -DENABLE_matplotlib=ON -DENABLE_mesa=OFF -DENABLE_mpi=ON -DENABLE_numpy=ON -DENABLE_osmesa=ON -DENABLE_paraview=ON -DENABLE_png=ON -DENABLE_python=ON -DENABLE_qhull=ON -DENABLE_qt=OFF -DENABLE_silo=ON -DENABLE_szip=ON -DENABLE_visitbridge=ON -DMPI_CXX_LIBRARIES:STRING="/opt/cray/mpt/5.3.5/xt/seastar/mpich2-gnu/46/lib/libmpichcxx.so" -DMPI_C_LIBRARIES:STRING="/opt/cray/mpt/5.3.5/xt/seastar/mpich2-gnu/46/lib/libmpich.so" -DMPI_LIBRARY:FILEPATH="/opt/cray/mpt/5.3.5/xt/seastar/mpich2-gnu/46/lib/libmpichcxx.so" -DMPI_CXX_INCLUDE_PATH:STRING="/opt/cray/mpt/5.3.5/xt/seastar/mpich2-gnu/46/include/" -DMPI_C_INCLUDE_PATH:STRING="/opt/cray/mpt/5.3.5/xt/seastar/mpich2-gnu/46/include/" -DUSE_SYSTEM_mpi=ON -DUSE_SYSTEM_python=OFF -DUSE_SYSTEM_zlib=OFF -DPV_EXTRA_CMAKE_ARGS="-DModule_vtkIOXdmf3:BOOL=ON -DBoost_NO_BOOST_CMAKE:BOOL=ON" ../ParaViewSuperbuild_4.2.0
-- Enabling zlib since needed by: boost;ffmpeg;freetype;hdf5;png;python;silo
-- Enabling boost as requested.
-- Enabling ffmpeg as requested.
-- Enabling freetype as requested.
-- Enabling libxml2 as requested.
-- Enabling fontconfig as requested.
-- Enabling szip as requested.
-- Enabling hdf5 as requested.
-- Enabling bzip2 since needed by: python
-- Enabling png as requested.
-- Enabling python as requested.
-- Enabling numpy as requested.
-- Enabling matplotlib as requested.
-- Enabling mpi as requested.
-- Enabling osmesa as requested.
-- Enabling qhull as requested.
-- Enabling silo as requested.
-- Enabling visitbridge as requested.
-- Enabling paraview as requested.
-- PROJECTS_ENABLED zlib;boost;ffmpeg;freetype;libxml2;fontconfig;szip;hdf5;bzip2;png;python;numpy;matplotlib;mpi;osmesa;qhull;silo;visitbridge;paraview
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    PV_EXTRA_CMAKE_ARGS=-DModule_vtkIOXdmf3


-- Build files have been written to: /usr/people/ssu/build/paraview/Build_mesa-2014-10-15/ParaViewSuperbuild_4.2.0-build
Build_mesa-2014-10-15/ParaViewSuperbuild_4.2.0-build> cmake -DCMAKE_INSTALL_PREFIX:PATH=${HOME}/pv-test/${version}_osmesa -DCMAKE_BUILD_TYPE=Release -DParaView_FROM_GIT=OFF -DParaView_URL=/mnt/lustre/people/ssu/build/paraview/dl/ParaView-v4.2.0-source-xdmf3.tar.gz -DENABLE_boost=ON -DENABLE_cgns=OFF -DENABLE_ffmpeg=ON -DENABLE_fontconfig=ON -DENABLE_freetype=ON -DENABLE_hdf5=ON -DENABLE_libxml2=ON -DENABLE_matplotlib=ON -DENABLE_mesa=OFF -DENABLE_mpi=ON -DENABLE_numpy=ON -DENABLE_osmesa=ON -DENABLE_paraview=ON -DENABLE_png=ON -DENABLE_python=ON -DENABLE_qhull=ON -DENABLE_qt=OFF -DENABLE_silo=ON -DENABLE_szip=ON -DENABLE_visitbridge=ON -DMPI_CXX_LIBRARIES:STRING="/opt/cray/mpt/5.3.5/xt/seastar/mpich2-gnu/46/lib/libmpichcxx.so" -DMPI_C_LIBRARIES:STRING="/opt/cray/mpt/5.3.5/xt/seastar/mpich2-gnu/46/lib/libmpich.so" -DMPI_LIBRARY:FILEPATH="/opt/cray/mpt/5.3.5/xt/seastar/mpich2-gnu/46/lib/libmpichcxx.so" -DMPI_CXX_INCLUDE_PATH:STRING="/opt/cray/mpt/5.3.5/xt/seastar/mpich2-gnu/46/include/" -DMPI_C_INCLUDE_PATH:STRING="/opt/cray/mpt/5.3.5/xt/seastar/mpich2-gnu/46/include/" -DUSE_SYSTEM_mpi=ON -DUSE_SYSTEM_python=OFF -DUSE_SYSTEM_zlib=OFF -DPV_EXTRA_CMAKE_ARGS="-DModule_vtkIOXdmf3:BOOL=ON" ../ParaViewSuperbuild_4.2.0
-- Enabling zlib since needed by: boost;ffmpeg;freetype;hdf5;png;python;silo
-- Enabling boost as requested.
-- Enabling ffmpeg as requested.
-- Enabling freetype as requested.
-- Enabling libxml2 as requested.
-- Enabling fontconfig as requested.
-- Enabling szip as requested.
-- Enabling hdf5 as requested.
-- Enabling bzip2 since needed by: python
-- Enabling png as requested.
-- Enabling python as requested.
-- Enabling numpy as requested.
-- Enabling matplotlib as requested.
-- Enabling mpi as requested.
-- Enabling osmesa as requested.
-- Enabling qhull as requested.
-- Enabling silo as requested.
-- Enabling visitbridge as requested.
-- Enabling paraview as requested.
-- PROJECTS_ENABLED zlib;boost;ffmpeg;freetype;libxml2;fontconfig;szip;hdf5;bzip2;png;python;numpy;matplotlib;mpi;osmesa;qhull;silo;visitbridge;paraview
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/people/ssu/build/paraview/Build_mesa-2014-10-15/ParaViewSuperbuild_4.2.0-build
Build_mesa-2014-10-15/ParaViewSuperbuild_4.2.0-build> cmake -DCMAKE_INSTALL_PREFIX:PATH=${HOME}/pv-test/${version}_osmesa -DCMAKE_BUILD_TYPE=Release -DParaView_FROM_GIT=OFF -DParaView_URL=/mnt/lustre/people/ssu/build/paraview/dl/ParaView-v4.2.0-source-xdmf3.tar.gz -DENABLE_boost=ON -DENABLE_cgns=OFF -DENABLE_ffmpeg=ON -DENABLE_fontconfig=ON -DENABLE_freetype=ON -DENABLE_hdf5=ON -DENABLE_libxml2=ON -DENABLE_matplotlib=ON -DENABLE_mesa=OFF -DENABLE_mpi=ON -DENABLE_numpy=ON -DENABLE_osmesa=ON -DENABLE_paraview=ON -DENABLE_png=ON -DENABLE_python=ON -DENABLE_qhull=ON -DENABLE_qt=OFF -DENABLE_silo=ON -DENABLE_szip=ON -DENABLE_visitbridge=ON -DMPI_CXX_LIBRARIES:STRING="/opt/cray/mpt/5.3.5/xt/seastar/mpich2-gnu/46/lib/libmpichcxx.so" -DMPI_C_LIBRARIES:STRING="/opt/cray/mpt/5.3.5/xt/seastar/mpich2-gnu/46/lib/libmpich.so" -DMPI_LIBRARY:FILEPATH="/opt/cray/mpt/5.3.5/xt/seastar/mpich2-gnu/46/lib/libmpichcxx.so" -DMPI_CXX_INCLUDE_PATH:STRING="/opt/cray/mpt/5.3.5/xt/seastar/mpich2-gnu/46/include/" -DMPI_C_INCLUDE_PATH:STRING="/opt/cray/mpt/5.3.5/xt/seastar/mpich2-gnu/46/include/" -DUSE_SYSTEM_mpi=ON -DUSE_SYSTEM_python=OFF -DUSE_SYSTEM_zlib=OFF -DPV_EXTRA_CMAKE_ARGS="-DModule_vtkIOXdmf3:BOOL=ON" -DPV_EXTRA_CMAKE_ARGS="-DBoost_NO_BOOST_CMAKE:BOOL=ON" ../ParaViewSuperbuild_4.2.0
-- Enabling zlib since needed by: boost;ffmpeg;freetype;hdf5;png;python;silo
-- Enabling boost as requested.
-- Enabling ffmpeg as requested.
-- Enabling freetype as requested.
-- Enabling libxml2 as requested.
-- Enabling fontconfig as requested.
-- Enabling szip as requested.
-- Enabling hdf5 as requested.
-- Enabling bzip2 since needed by: python
-- Enabling png as requested.
-- Enabling python as requested.
-- Enabling numpy as requested.
-- Enabling matplotlib as requested.
-- Enabling mpi as requested.
-- Enabling osmesa as requested.
-- Enabling qhull as requested.
-- Enabling silo as requested.
-- Enabling visitbridge as requested.
-- Enabling paraview as requested.
-- PROJECTS_ENABLED zlib;boost;ffmpeg;freetype;libxml2;fontconfig;szip;hdf5;bzip2;png;python;numpy;matplotlib;mpi;osmesa;qhull;silo;visitbridge;paraview
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    PV_EXTRA_CMAKE_ARGS=-DBoost_NO_BOOST_CMAKE


-- Build files have been written to: /usr/people/ssu/build/paraview/Build_mesa-2014-10-15/ParaViewSuperbuild_4.2.0-build

________________________________________
From: Ben Boeckel [ben.boeckel at kitware.com]
Sent: Friday, October 17, 2014 12:23 PM
To: Su, Simon M CTR USARMY ARL (US)
Cc: paraview at paraview.org
Subject: Re: [Paraview] ParaView Superbuild - changing default Paraciew cmake option

On Fri, Oct 17, 2014 at 15:18:00 +0000, Su, Simon M CTR USARMY ARL (US) wrote:
> CMake Warning:
>   Manually-specified variables were not used by the project:
>
>     Boost_NO_BOOST_CMAKE
>     Module_vtkIOXdmf3
>
> How do I go around that?

The options need to be passed to the ParaView build itself, not the
superbuild. There's a cache option in the superbuild named
PV_EXTRA_CMAKE_ARGS which should contain
"-DBoost_NO_BOOST_CMAKE:BOOL=ON -DModule_vtkIOXdmf3:BOOL=ON" to pass it
to the ParaView build properly.

--Ben


More information about the ParaView mailing list