[MacPorts] #49418: vtk5: dyld: Library not loaded: /opt/local/lib/vtk-5.10/libvtksys.5.10.dylib
MacPorts
noreply at macports.org
Wed Jul 20 10:21:26 PDT 2016
#49418: vtk5: dyld: Library not loaded:
/opt/local/lib/vtk-5.10/libvtksys.5.10.dylib
-------------------------------+--------------------------------
Reporter: leonardo.pires@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Resolution: | Keywords: elcapitan
Port: vtk5 |
-------------------------------+--------------------------------
Comment (by stephen.langer@…):
For what it's worth, I was able to build vtk5 manually with the tarball
from vtk.org, installing it in /usr/local. Unpack it, then uncomment
"#define GLX_GLXEXT_LEGACY" in Rendering/vtkXOpenGLRenderWindow.cxx and
remove "#define inline" in Utilities/vtktiff/tif_config.h.in. Install
the dependencies from macports. Set these values in ccmake:
{{{
BUILD_SHARED_LIBS ON
CMAKE_BUILD_TYPE Release
CMAKE_CXX_FLAGS -I/opt/local/include
CMAKE_C_FLAGS -I/opt/local/include
OPENGL_INCLUDE_DIR /opt/local/include
OPENGL_gl_LIBRARY /opt/local/lib/libGL.dylib
OPENGL_glu_LIBRARY /opt/local/lib/libGLU.dylib
VTK_USE_COCOA OFF
VTK_USE_X ON
}}}
and then run "make; sudo make install".
After all that, I still had to put /usr/local/lib/vtk-5.10 in
DYLD_LIBRARY_PATH in order to use the libraries.
--
Ticket URL: <https://trac.macports.org/ticket/49418#comment:16>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list