[vtkusers] Missing python bindings with VTK 8.0
David Gobbi
david.gobbi at gmail.com
Thu Jul 20 08:16:19 EDT 2017
That's strange, because this option has always been necessary for enabling
the python wrappers.
- David
On Thu, Jul 20, 2017 at 5:02 AM, Maxime Boissonneault <
maxime.boissonneault at calculquebec.ca> wrote:
> Thanks. That worked.
>
> Is this something that changed with version 8.0 ? I don't see this option
> in my install notes for version 7.x and the python bindings were installed.
>
> Maxime
>
>
> On juil. 19, 2017 at 6:23 PM, <David Gobbi <david.gobbi at gmail.com>> wrote:
>
> "-DVTK_WRAP_PYTHON:BOOL=ON"
>
>
> On Wed, Jul 19, 2017 at 4:07 PM, Maxime Boissonneault <
> maxime.boissonneault at calculquebec.ca> wrote:
>
>> Hi,
>> I am trying to compile VTK 8.0. I am passing the following flags to cmake
>> :
>> cmake . - DCMAKE_INSTALL_PREFIX=/home/mboisson/.local/easybuild/softwa
>> re/2017/avx2/MPI/intel2016.4/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='ifort' -DCMAKE_C_FLAGS='-O2 -xCore-AVX2 -ftz
>> -fp-speculation=safe -fp-model source' -DCMAKE_VERBOSE_MAKEFILE=ON
>> -DPYTHON_LIBRARY=$EBROOTPYTHON/lib/libpython2.7.so
>> -DPYTHON_INCLUDE_DIR=$EBROOTPYTHON/include/python2.7
>>
>>
>> Python is found, but the bindings are not created.
>>
>> Below is a grep of "python" from the CMakeCache.txt.
>>
>> Anyone got an idea on how to fix this ? Thanks
>>
>> [mboisson at build-node VTK-8.0.0]$ grep -i PYTHON CMakeCache.txt
>> CMAKE_EXE_LINKER_FLAGS:STRING=-L/cvmfs/soft.computecanada.ca
>> /easybuild/software/2017/Core/icc/2016.4.258/lib/intel64 -L/cvmfs/
>> soft.computecanada.ca/easybuild/software/2017/Core/imkl/11.3.4.258/lib
>> -L/cvmfs/soft.computecanada.ca/easybuild/software/2017/Core/
>> imkl/11.3.4.258/mkl/lib/intel64 -L/cvmfs/soft.computecanada.ca
>> /easybuild/software/2017/Core/imkl/11.3.4.258/lib -L/cvmfs/
>> soft.computecanada.ca/easybuild/software/2017/avx2/
>> Compiler/intel2016.4/hdf5/1.8.18/lib -L/cvmfs/soft.computecanada.ca
>> /nix/var/nix/profiles/python-2.7.13/lib
>> CMAKE_MODULE_LINKER_FLAGS:STRING=-L/cvmfs/soft.computecanada
>> .ca/easybuild/software/2017/Core/icc/2016.4.258/lib/intel64 -L/cvmfs/
>> soft.computecanada.ca/easybuild/software/2017/Core/imkl/11.3.4.258/lib
>> -L/cvmfs/soft.computecanada.ca/easybuild/software/2017/Core/
>> imkl/11.3.4.258/mkl/lib/intel64 -L/cvmfs/soft.computecanada.ca
>> /easybuild/software/2017/Core/imkl/11.3.4.258/lib -L/cvmfs/
>> soft.computecanada.ca/easybuild/software/2017/avx2/
>> Compiler/intel2016.4/hdf5/1.8.18/lib -L/cvmfs/soft.computecanada.ca
>> /nix/var/nix/profiles/python-2.7.13/lib
>> CMAKE_SHARED_LINKER_FLAGS:STRING=-L/cvmfs/soft.computecanada
>> .ca/easybuild/software/2017/Core/icc/2016.4.258/lib/intel64 -L/cvmfs/
>> soft.computecanada.ca/easybuild/software/2017/Core/imkl/11.3.4.258/lib
>> -L/cvmfs/soft.computecanada.ca/easybuild/software/2017/Core/
>> imkl/11.3.4.258/mkl/lib/intel64 -L/cvmfs/soft.computecanada.ca
>> /easybuild/software/2017/Core/imkl/11.3.4.258/lib -L/cvmfs/
>> soft.computecanada.ca/easybuild/software/2017/avx2/
>> Compiler/intel2016.4/hdf5/1.8.18/lib -L/cvmfs/soft.computecanada.ca
>> /nix/var/nix/profiles/python-2.7.13/lib
>> //Request building AutobahnPython
>> Module_AutobahnPython:BOOL=OFF
>> //Request building SixPython
>> Module_SixPython:BOOL=OFF
>> //Request building vtkPython
>> Module_vtkPython:BOOL=OFF
>> //Request building vtkPythonInterpreter
>> Module_vtkPythonInterpreter:BOOL=OFF
>> //Request building vtkWebPython
>> Module_vtkWebPython:BOOL=OFF
>> //Request building vtkWrappingPythonCore
>> Module_vtkWrappingPythonCore:BOOL=OFF
>> PYTHON_EXECUTABLE:FILEPATH=/cvmfs/soft.computecanada.ca/nix/
>> var/nix/profiles/16.09/bin/python2
>> PYTHON_INCLUDE_DIR:UNINITIALIZED=/cvmfs/soft.computecanada.c
>> a/nix/var/nix/profiles/python-2.7.13/include/python2.7
>> PYTHON_LIBRARY:UNINITIALIZED=/cvmfs/soft.computecanada.ca/ni
>> x/var/nix/profiles/python-2.7.13/lib/libpython2.7.so
>> //Directory where python modules will be put inside the build tree
>> VTK_BUILD_PYTHON_MODULE_DIR:PATH=-NOTFOUND
>> //Directory where python modules will be installed
>> VTK_INSTALL_PYTHON_MODULE_DIR:PATH=-NOTFOUND
>> //Python version to use: 2, 2.x, 3, 3.x, or empty
>> VTK_PYTHON_VERSION:STRING=2
>> //Should VTK Python wrapping be built?
>> VTK_WRAP_PYTHON:BOOL=OFF
>> //ADVANCED property for variable: Module_AutobahnPython
>> Module_AutobahnPython-ADVANCED:INTERNAL=1
>> //ADVANCED property for variable: Module_SixPython
>> Module_SixPython-ADVANCED:INTERNAL=1
>> //ADVANCED property for variable: Module_vtkPython
>> Module_vtkPython-ADVANCED:INTERNAL=1
>> //ADVANCED property for variable: Module_vtkPythonInterpreter
>> Module_vtkPythonInterpreter-ADVANCED:INTERNAL=1
>> //ADVANCED property for variable: Module_vtkWebPython
>> Module_vtkWebPython-ADVANCED:INTERNAL=1
>> //ADVANCED property for variable: Module_vtkWrappingPythonCore
>> Module_vtkWrappingPythonCore-ADVANCED:INTERNAL=1
>> //ADVANCED property for variable: PYTHON_EXECUTABLE
>> PYTHON_EXECUTABLE-ADVANCED:INTERNAL=1
>> //ADVANCED property for variable: VTK_BUILD_PYTHON_MODULE_DIR
>> VTK_BUILD_PYTHON_MODULE_DIR-ADVANCED:INTERNAL=1
>> //ADVANCED property for variable: VTK_INSTALL_PYTHON_MODULE_DIR
>> VTK_INSTALL_PYTHON_MODULE_DIR-ADVANCED:INTERNAL=1
>>
>>
>> --
>> ---------------------------------
>> Maxime Boissonneault
>> Analyste de calcul - Calcul Québec, Université Laval
>> Président - Comité de coordination du soutien à la recherche de Calcul
>> Québec
>> Team lead - Research Support National Team, Compute Canada
>> Instructeur Software Carpentry
>> Ph. D. en physique
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170720/3cff7983/attachment.html>
More information about the vtkusers
mailing list