[vtkusers] Installing python wrapper on mac

David Gobbi david.gobbi at gmail.com
Fri Oct 26 11:55:33 EDT 2012


Hi Matthew,

You might get more information about the library failure by running:
  otool -L bin/vtkHashSource-6.0

My guess is that the problem occurs because of "i386;x86_64",
If you use "x86_64" alone, then the install should work.  If it doesn't,
you can try setting the DYLD_LIBRARY_PATH environment variable
to the location of your VTKBuild/lib directory before "make install".

 - David

On Fri, Oct 26, 2012 at 9:27 AM, Matthew Blackledge
<Matthew.Blackledge at icr.ac.uk> wrote:
> Hi all
>
>   I am trying to install VTK python wrappers system wide on a mac (mountain Lion, 10.8.2) but am having difficulty when running 'make install'.  For my configuration, all I change are the following parameters in the CMakeCache:
>
> CMAKE_INSTALL_PREFIX:PATH=/Users/***/***/VTKBuild
> CMAKE_OSX_ARCHITECTURES:STRING=i386;x86_64
> VTK_WRAP_PYTHON:BOOL=ON
>
> I then run 'make -j 2', which completes with no errors and then run 'make install'
>
> After a while it brings up the following error:
>
> [ 66%] Generating vtkSocketCommunicatorHash.h
> dyld: Library not loaded: libvtksys-6.0.1.dylib
>   Referenced from: /Users/***/***/VTKBuild/Parallel/Core/../../bin/vtkHashSource-6.0
>   Reason: image not found
> /bin/sh: line 1: 19589 Trace/BPT trap: 5       ../../bin/vtkHashSource-6.0 /Users/***/***/VTK/Parallel/Core/vtkSocketCommunicator.cxx vtkSocketCommunicatorHash vtkSocketCommunicatorHash.h
> make[2]: *** [Parallel/Core/vtkSocketCommunicatorHash.h] Error 133
> make[1]: *** [Parallel/Core/CMakeFiles/vtkParallelCore.dir/all] Error 2
> make: *** [all] Error 2
>
> I do have a libvtksys-6.0.1.dylib file in ./VTKBuild/lib directory.
>
> I have tried this a few times and still no success.  Any help would be greatly appreciated!
>
> Matt
>
> The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP.
>
> This e-mail message is confidential and for use by the addressee only.  If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer and network.



More information about the vtkusers mailing list