[vtkusers] VTK_USE_MATLAB_MEX mac problem with libvtkGraphics

Jeff Baumes jeff.baumes at kitware.com
Mon Feb 15 15:44:24 EST 2010


This is a response from Tom, the main implementer of the VTK/Matlab interface.

Jeff

On Mon, Feb 15, 2010 at 3:38 PM, Otahal, Thomas <tjotaha at sandia.gov> wrote:
>
>
>
> Hi Jeff,
>
> Try setting the DYLD_LIBRARY_PATH environment variable to include the
> directory where the Matlab libraries are installed.  On my Mac it is set to
> the following:
>
> DYLD_LIBRARY_PATH=/Users/tjotaha/local/MATLAB_R2008b.app/bin/maci:/Users/tjotaha/local/MATLAB_R2008b.app/sys/os/maci/:/Users/tjotaha/build/VTK/bin
>
>
> --Tom
>
>
>
>
> On 2/15/10 1:29 PM, "Jeff Baumes" <jeff.baumes at kitware.com> wrote:
>
> Didn't know if you're on this mailing list, do you have any ideas here?
>
> Jeff
>
> ---------- Forwarded message ----------
> From: Eric E. Monson <emonson at cs.duke.edu>
> Date: Mon, Feb 15, 2010 at 3:27 PM
> Subject: [vtkusers] VTK_USE_MATLAB_MEX mac problem with libvtkGraphics
> To: VTK Mailing List <vtkusers at vtk.org>
>
>
> Hello,
>
> For the first time today I tried compiling CVS VTK (today's) with
> VTK_USE_MATLAB_MEX turned ON (OS X 10.6.2, cmake 2.9.20100113), and it
> finished compiling but I'm having trouble with the generated
> vtkGraphics library. When I try to run a cxx example like Medical1
> (and similar problems trying to "import vtk" from Python) I get:
>
> dyld: Library not loaded: @loader_path/libmex.dylib
>  Referenced from:
> /Users/emonson/Programming/VTK_cvs/VTK/build/bin/libvtkGraphics.5.5.dylib
>  Reason: image not found
> Trace/BPT trap
>
> If I do an "otool -L libvtkGraphics.5.5.dylib", everything except the
> matlab libraries look fine -- for the matlab lines I get:
>
>        @loader_path/libmx.dylib (compatibility version 0.0.0, current
> version 0.0.0)
>        @loader_path/libmex.dylib (compatibility version 0.0.0, current
> version 0.0.0)
>        @loader_path/libmat.dylib (compatibility version 0.0.0, current
> version 0.0.0)
>        @loader_path/libeng.dylib (compatibility version 0.0.0, current
> version 0.0.0)
>
> So, when anything runs trying to use this library I guess it doesn't
> have the proper thing to substitute for @loader_path (these really do
> exist on my system in /Applications/MATLAB_R2009b.app/bin/maci64/ )
>
> Has anyone else run into this, or does anyone know how to fix it? It
> seems like one of those things that can be fixed by using the
> install_name_tool, or maybe there's a cmake options I'm not setting
> properly so it doesn't happen in the first place?
>
> Thanks,
> -Eric
>
> ------------------------------------------------------
> Eric E Monson
> Duke Visualization Technology Group
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
> --
> Jeff Baumes, Ph.D.
> R&D Engineer, Kitware Inc.
> (518) 881-4932
> jeff.baumes at kitware.com
>
>
>



-- 
Jeff Baumes, Ph.D.
R&D Engineer, Kitware Inc.
(518) 881-4932
jeff.baumes at kitware.com



More information about the vtkusers mailing list