hashdist / hashstack

Collection of software profiles for HashDist
https://hashdist.github.io/
51 stars 60 forks source link

VTK library and python #983

Closed ghost closed 7 years ago

ghost commented 7 years ago

I've tried these options to install VTK with hashdist (on OSX, I extend the osx.yaml):

vtk:
vtk:
    vtk_wrap_python: true
vtk:
    vtk_wrap_python: false

but in all cases the vtk-python libraries are linked to the wrong libraries:

salazardetro1@frankenstein:~/.hashdist/bld/vtk/vyl5qs6ziice/lib/python2.7/site-packages/vtk$ otool -L vtkCommonPython.so 
vtkCommonPython.so:
    /Users/salazardetro1/.hashdist/tmp/vtk-vyl5qs6ziice/_build/bin/libvtkCommonPythonD.5.10.dylib (compatibility version 5.10.0, current version 5.10.1)
    /System/Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.10)
    /Users/salazardetro1/.hashdist/tmp/vtk-vyl5qs6ziice/_build/bin/libvtkPythonCore.5.10.dylib (compatibility version 5.10.0, current version 5.10.1)
    /Users/salazardetro1/.hashdist/tmp/vtk-vyl5qs6ziice/_build/bin/libvtkCommon.5.10.dylib (compatibility version 5.10.0, current version 5.10.1)
    /Users/salazardetro1/.hashdist/tmp/vtk-vyl5qs6ziice/_build/bin/libvtksys.5.10.dylib (compatibility version 5.10.0, current version 5.10.1)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)

The directory ~/.hashdist/tmp/vtk-vyl5qs6ziice/ is deleted when the installation is complete. It should be pointing to ~/.hashdist/bld/vtk/vyl5qs6ziice/ instead. How can I fix this? Thanks.

Is it related to the these lines not being executed?

cekees commented 7 years ago

I haven't worked on vtk within hashdist, but I'm guessing you're going to have to modify the -D options in vtk.yaml unitl you force cmake to link properly to the proper paths.

ghost commented 7 years ago

So is this the line to blame (https://github.com/hashdist/hashstack/blob/master/pkgs/vtk/vtk.yaml#L63) ? ${ARTIFACT} is the tmp directory right? What would be the variable for ~/.hashdist/bld/vtk/vyl5qs6ziice/?

cekees commented 7 years ago

No, ${ARTIFACT} is the permanent thing in bld/vtk/..., so that is correct.

On Wed, Dec 14, 2016 at 11:39 AM, balborian notifications@github.com wrote:

So is this the line to blame (https://github.com/hashdist/ hashstack/blob/master/pkgs/vtk/vtk.yaml#L63) ? ${ARTIFACT} is the tmp directory right?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hashdist/hashstack/issues/983#issuecomment-267134389, or mute the thread https://github.com/notifications/unsubscribe-auth/AAldFngQqHYP0LXulOI905925YiqTe5dks5rIEX8gaJpZM4LNQPJ .

johannesring commented 7 years ago

I fixed a similar issue in the FEniCS fork of HashStack a few days ago. First I solved it with some rpath tricks (here), but then I found that setting CMAKE_MACOSX_RPATH=ON also fixed the problem (here and here).

Note that it is VTK 7 in the fork.

ghost commented 7 years ago

Now it's working with the FEniCS fork. Thanks!