<div dir="ltr"><span style="font-size:12.8px">"-DVTK_WRAP_PYTHON:BOOL=ON"</span><div><span style="font-size:12.8px"><br></span><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 19, 2017 at 4:07 PM, Maxime Boissonneault <span dir="ltr"><<a href="mailto:maxime.boissonneault@calculquebec.ca" target="_blank">maxime.boissonneault@calculquebec.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I am trying to compile VTK 8.0. I am passing the following flags to cmake :<br>
cmake . - DCMAKE_INSTALL_PREFIX=/home/mb<wbr>oisson/.local/easybuild/softwa<wbr>re/2017/avx2/MPI/intel2016.4/<wbr>openmpi2.1/vtk/8.0.0 -DCMAKE_C_COMPILER='icc' -DCMAKE_Fortran_FLAGS='-O2 -xCore-AVX2 -ftz -fp-speculation=safe -fp-model source' -DCMAKE_CXX_FLAGS='-O2 -xCore-AVX2 -ftz -fp-speculation=safe -fp-model source' -DCMAKE_CXX_COMPILER='icpc' -DCMAKE_Fortran_COMPILER='ifor<wbr>t' -DCMAKE_C_FLAGS='-O2 -xCore-AVX2 -ftz -fp-speculation=safe -fp-model source' -DCMAKE_VERBOSE_MAKEFILE=ON -DPYTHON_LIBRARY=$EBROOTPYTHON<wbr>/lib/<a href="http://libpython2.7.so" rel="noreferrer" target="_blank">libpython2.7.so</a> -DPYTHON_INCLUDE_DIR=$EBROOTPY<wbr>THON/include/python2.7<br>
<br>
<br>
Python is found, but the bindings are not created.<br>
<br>
Below is a grep of "python" from the CMakeCache.txt.<br>
<br>
Anyone got an idea on how to fix this ? Thanks<br>
<br>
[mboisson@build-node VTK-8.0.0]$ grep -i PYTHON CMakeCache.txt<br>
CMAKE_EXE_LINKER_FLAGS:STRING=<wbr>-L/cvmfs/<a href="http://soft.computecanada.ca/easybuild/software/2017/Core/icc/2016.4.258/lib/intel64" rel="noreferrer" target="_blank">soft.computecanada.ca<wbr>/easybuild/software/2017/Core/<wbr>icc/2016.4.258/lib/intel64</a> -L/cvmfs/<a href="http://soft.computecanada.ca/easybuild/software/2017/Core/imkl/11.3.4.258/lib" rel="noreferrer" target="_blank">soft.computecanada.ca<wbr>/easybuild/software/2017/Core/<wbr>imkl/11.3.4.258/lib</a> -L/cvmfs/<a href="http://soft.computecanada.ca/easybuild/software/2017/Core/imkl/11.3.4.258/mkl/lib/intel64" rel="noreferrer" target="_blank">soft.computecanada.ca<wbr>/easybuild/software/2017/Core/<wbr>imkl/11.3.4.258/mkl/lib/intel6<wbr>4</a> -L/cvmfs/<a href="http://soft.computecanada.ca/easybuild/software/2017/Core/imkl/11.3.4.258/lib" rel="noreferrer" target="_blank">soft.computecanada.ca<wbr>/easybuild/software/2017/Core/<wbr>imkl/11.3.4.258/lib</a> -L/cvmfs/<a href="http://soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/intel2016.4/hdf5/1.8.18/lib" rel="noreferrer" target="_blank">soft.computecanada.ca<wbr>/easybuild/software/2017/avx2/<wbr>Compiler/intel2016.4/hdf5/1.8.<wbr>18/lib</a> -L/cvmfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/python-2.7.13/lib" rel="noreferrer" target="_blank">soft.computecanada.ca<wbr>/nix/var/nix/profiles/python-<wbr>2.7.13/lib</a><br>
CMAKE_MODULE_LINKER_FLAGS:STRI<wbr>NG=-L/cvmfs/<a href="http://soft.computecanada.ca/easybuild/software/2017/Core/icc/2016.4.258/lib/intel64" rel="noreferrer" target="_blank">soft.computecanada<wbr>.ca/easybuild/software/2017/<wbr>Core/icc/2016.4.258/lib/<wbr>intel64</a> -L/cvmfs/<a href="http://soft.computecanada.ca/easybuild/software/2017/Core/imkl/11.3.4.258/lib" rel="noreferrer" target="_blank">soft.computecanada.ca<wbr>/easybuild/software/2017/Core/<wbr>imkl/11.3.4.258/lib</a> -L/cvmfs/<a href="http://soft.computecanada.ca/easybuild/software/2017/Core/imkl/11.3.4.258/mkl/lib/intel64" rel="noreferrer" target="_blank">soft.computecanada.ca<wbr>/easybuild/software/2017/Core/<wbr>imkl/11.3.4.258/mkl/lib/intel6<wbr>4</a> -L/cvmfs/<a href="http://soft.computecanada.ca/easybuild/software/2017/Core/imkl/11.3.4.258/lib" rel="noreferrer" target="_blank">soft.computecanada.ca<wbr>/easybuild/software/2017/Core/<wbr>imkl/11.3.4.258/lib</a> -L/cvmfs/<a href="http://soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/intel2016.4/hdf5/1.8.18/lib" rel="noreferrer" target="_blank">soft.computecanada.ca<wbr>/easybuild/software/2017/avx2/<wbr>Compiler/intel2016.4/hdf5/1.8.<wbr>18/lib</a> -L/cvmfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/python-2.7.13/lib" rel="noreferrer" target="_blank">soft.computecanada.ca<wbr>/nix/var/nix/profiles/python-<wbr>2.7.13/lib</a><br>
CMAKE_SHARED_LINKER_FLAGS:STRI<wbr>NG=-L/cvmfs/<a href="http://soft.computecanada.ca/easybuild/software/2017/Core/icc/2016.4.258/lib/intel64" rel="noreferrer" target="_blank">soft.computecanada<wbr>.ca/easybuild/software/2017/<wbr>Core/icc/2016.4.258/lib/<wbr>intel64</a> -L/cvmfs/<a href="http://soft.computecanada.ca/easybuild/software/2017/Core/imkl/11.3.4.258/lib" rel="noreferrer" target="_blank">soft.computecanada.ca<wbr>/easybuild/software/2017/Core/<wbr>imkl/11.3.4.258/lib</a> -L/cvmfs/<a href="http://soft.computecanada.ca/easybuild/software/2017/Core/imkl/11.3.4.258/mkl/lib/intel64" rel="noreferrer" target="_blank">soft.computecanada.ca<wbr>/easybuild/software/2017/Core/<wbr>imkl/11.3.4.258/mkl/lib/intel6<wbr>4</a> -L/cvmfs/<a href="http://soft.computecanada.ca/easybuild/software/2017/Core/imkl/11.3.4.258/lib" rel="noreferrer" target="_blank">soft.computecanada.ca<wbr>/easybuild/software/2017/Core/<wbr>imkl/11.3.4.258/lib</a> -L/cvmfs/<a href="http://soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/intel2016.4/hdf5/1.8.18/lib" rel="noreferrer" target="_blank">soft.computecanada.ca<wbr>/easybuild/software/2017/avx2/<wbr>Compiler/intel2016.4/hdf5/1.8.<wbr>18/lib</a> -L/cvmfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/python-2.7.13/lib" rel="noreferrer" target="_blank">soft.computecanada.ca<wbr>/nix/var/nix/profiles/python-<wbr>2.7.13/lib</a><br>
//Request building AutobahnPython<br>
Module_AutobahnPython:BOOL=OFF<br>
//Request building SixPython<br>
Module_SixPython:BOOL=OFF<br>
//Request building vtkPython<br>
Module_vtkPython:BOOL=OFF<br>
//Request building vtkPythonInterpreter<br>
Module_vtkPythonInterpreter:BO<wbr>OL=OFF<br>
//Request building vtkWebPython<br>
Module_vtkWebPython:BOOL=OFF<br>
//Request building vtkWrappingPythonCore<br>
Module_vtkWrappingPythonCore:B<wbr>OOL=OFF<br>
PYTHON_EXECUTABLE:FILEPATH=/cv<wbr>mfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/16.09/bin/python2" rel="noreferrer" target="_blank">soft.computecanada.ca/nix/<wbr>var/nix/profiles/16.09/bin/<wbr>python2</a><br>
PYTHON_INCLUDE_DIR:UNINITIALIZ<wbr>ED=/cvmfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/python-2.7.13/include/python2.7" rel="noreferrer" target="_blank">soft.computecanada.<wbr>ca/nix/var/nix/profiles/<wbr>python-2.7.13/include/python2.<wbr>7</a><br>
PYTHON_LIBRARY:UNINITIALIZED=/<wbr>cvmfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/python-2.7.13/lib/libpython2.7.so" rel="noreferrer" target="_blank">soft.computecanada.ca/ni<wbr>x/var/nix/profiles/python-2.7.<wbr>13/lib/libpython2.7.so</a><br>
//Directory where python modules will be put inside the build tree<br>
VTK_BUILD_PYTHON_MODULE_DIR:PA<wbr>TH=-NOTFOUND<br>
//Directory where python modules will be installed<br>
VTK_INSTALL_PYTHON_MODULE_DIR:<wbr>PATH=-NOTFOUND<br>
//Python version to use: 2, 2.x, 3, 3.x, or empty<br>
VTK_PYTHON_VERSION:STRING=2<br>
//Should VTK Python wrapping be built?<br>
VTK_WRAP_PYTHON:BOOL=OFF<br>
//ADVANCED property for variable: Module_AutobahnPython<br>
Module_AutobahnPython-ADVANCED<wbr>:INTERNAL=1<br>
//ADVANCED property for variable: Module_SixPython<br>
Module_SixPython-ADVANCED:INTE<wbr>RNAL=1<br>
//ADVANCED property for variable: Module_vtkPython<br>
Module_vtkPython-ADVANCED:INTE<wbr>RNAL=1<br>
//ADVANCED property for variable: Module_vtkPythonInterpreter<br>
Module_vtkPythonInterpreter-AD<wbr>VANCED:INTERNAL=1<br>
//ADVANCED property for variable: Module_vtkWebPython<br>
Module_vtkWebPython-ADVANCED:I<wbr>NTERNAL=1<br>
//ADVANCED property for variable: Module_vtkWrappingPythonCore<br>
Module_vtkWrappingPythonCore-A<wbr>DVANCED:INTERNAL=1<br>
//ADVANCED property for variable: PYTHON_EXECUTABLE<br>
PYTHON_EXECUTABLE-ADVANCED:INT<wbr>ERNAL=1<br>
//ADVANCED property for variable: VTK_BUILD_PYTHON_MODULE_DIR<br>
VTK_BUILD_PYTHON_MODULE_DIR-AD<wbr>VANCED:INTERNAL=1<br>
//ADVANCED property for variable: VTK_INSTALL_PYTHON_MODULE_DIR<br>
VTK_INSTALL_PYTHON_MODULE_DIR-<wbr>ADVANCED:INTERNAL=1<br>
<br>
<br>
-- <br>
------------------------------<wbr>---<br>
Maxime Boissonneault<br>
Analyste de calcul - Calcul Québec, Université Laval<br>
Président - Comité de coordination du soutien à la recherche de Calcul Québec<br>
Team lead - Research Support National Team, Compute Canada<br>
Instructeur Software Carpentry<br>
Ph. D. en physique<br></blockquote></div></div></div></div>