[MacPorts] #33490: vtk5 -r90101 expecting a vtk library that isn't there. /opt/local/lib/vtk-5.8/libvtkftgl.5.8.dylib
MacPorts
noreply at macports.org
Wed Mar 7 03:27:05 PST 2012
#33490: vtk5 -r90101 expecting a vtk library that isn't there.
/opt/local/lib/vtk-5.8/libvtkftgl.5.8.dylib
------------------------------------+---------------------------------------
Reporter: shinko.cheng@… | Owner: adfernandes@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.4
Keywords: | Port: vtk5
------------------------------------+---------------------------------------
Comment(by shinko.cheng@…):
Correction: It's actually this command:
{{{
sudo /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -Wno-deprecated -O3
-DNDEBUG -arch x86_64 -isysroot / -mmacosx-version-min=10.6
-Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib
-arch x86_64 -flat_namespace -undefined suppress -u _PyMac_Error
CMakeFiles/vtkpython.dir/vtkPythonAppInit.cxx.o -o ../../bin/vtkpython
/opt/local/lib/libtk.dylib /opt/local/lib/libtcl.dylib -lm -lpthread
/opt/local/lib/libpython2.7.dylib ../../bin/libvtksys.5.8.0.dylib
../../bin/libvtkCommon.5.8.0.dylib ../../bin/libvtkFiltering.5.8.0.dylib
../../bin/libvtkIO.5.8.0.dylib ../../bin/libvtkGraphics.5.8.0.dylib
../../bin/libvtkImaging.5.8.0.dylib /usr/lib/libutil.dylib
../../bin/libvtkRendering.5.8.0.dylib
../../bin/libvtkVolumeRendering.5.8.0.dylib
../../bin/libvtkHybrid.5.8.0.dylib ../../bin/libvtkWidgets.5.8.0.dylib
../../bin/libvtkCharts.5.8.0.dylib ../../bin/libvtkGeovis.5.8.0.dylib
../../bin/libvtkInfovis.5.8.0.dylib ../../bin/libvtkViews.5.8.0.dylib
../../bin/libvtkInfovis.5.8.0.dylib ../../bin/libvtkWidgets.5.8.0.dylib
../../bin/libvtkVolumeRendering.5.8.0.dylib
../../bin/libvtkHybrid.5.8.0.dylib ../../bin/libvtkRendering.5.8.0.dylib
../../bin/libvtkIO.5.8.0.dylib ../../bin/libvtkGraphics.5.8.0.dylib
../../bin/libvtkImaging.5.8.0.dylib ../../bin/libvtkFiltering.5.8.0.dylib
../../bin/libvtkCommon.5.8.0.dylib ../../bin/libvtksys.5.8.0.dylib -lm -lm
-lpthread /opt/local/lib/libpython2.7.dylib /usr/lib/libutil.dylib
-L../../bin
ld: warning: duplicate dylib /usr/lib/libutil.dylib \
-L../../bin
}}}
Recap:
I had to run the following commands:
{{{
> sudo port install vtk5
> sudo /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -Wno-deprecated -O3
-DNDEBUG -arch x86_64 -isysroot / -mmacosx-version-min=10.6
-Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib
-arch x86_64 -flat_namespace -undefined suppress -u _PyMac_Error
CMakeFiles/vtkpython.dir/vtkPythonAppInit.cxx.o -o ../../bin/vtkpython
/opt/local/lib/libtk.dylib /opt/local/lib/libtcl.dylib -lm -lpthread
/opt/local/lib/libpython2.7.dylib ../../bin/libvtksys.5.8.0.dylib
../../bin/libvtkCommon.5.8.0.dylib ../../bin/libvtkFiltering.5.8.0.dylib
../../bin/libvtkIO.5.8.0.dylib ../../bin/libvtkGraphics.5.8.0.dylib
../../bin/libvtkImaging.5.8.0.dylib /usr/lib/libutil.dylib
../../bin/libvtkRendering.5.8.0.dylib
../../bin/libvtkVolumeRendering.5.8.0.dylib
../../bin/libvtkHybrid.5.8.0.dylib ../../bin/libvtkWidgets.5.8.0.dylib
../../bin/libvtkCharts.5.8.0.dylib ../../bin/libvtkGeovis.5.8.0.dylib
../../bin/libvtkInfovis.5.8.0.dylib ../../bin/libvtkViews.5.8.0.dylib
../../bin/libvtkInfovis.5.8.0.dylib ../../bin/libvtkWidgets.5.8.0.dylib
../../bin/libvtkVolumeRendering.5.8.0.dylib
../../bin/libvtkHybrid.5.8.0.dylib ../../bin/libvtkRendering.5.8.0.dylib
../../bin/libvtkIO.5.8.0.dylib ../../bin/libvtkGraphics.5.8.0.dylib
../../bin/libvtkImaging.5.8.0.dylib ../../bin/libvtkFiltering.5.8.0.dylib
../../bin/libvtkCommon.5.8.0.dylib ../../bin/libvtksys.5.8.0.dylib -lm -lm
-lpthread /opt/local/lib/libpython2.7.dylib /usr/lib/libutil.dylib
-L../../bin
ld: warning: duplicate dylib /usr/lib/libutil.dylib -L../../bin
> sudo port install vtk5
}}}
The way I found out this command is by looking at the log file, probably
located here:
{{{
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_vtk5/vtk5/main.log
}}}
And looked for the error pertaining to ld: Couldn't find
/opt/local/lib/libvtkftgl.dylib or libvtkxml2.dylib.
There's a command that cd's into the Wrapper/Python director and builds
vtkpython. That's the command I execute with the adder "-L../../bin"
--
Ticket URL: <https://trac.macports.org/ticket/33490#comment:8>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list