Created
June 13, 2013 08:26
-
-
Save iMichka/5772102 to your computer and use it in GitHub Desktop.
VTK linking error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
running cd "/tmp/vtk-JK8s/VTK5.10.1/build/Wrapping/Python" && /usr/local/bin/python setup.py install --prefix=/usr/local/Cellar/vtk/5.10.1 2>&1 | |
running install | |
Checking .pth file support in /usr/local/Cellar/vtk/5.10.1/lib/python2.7/site-packages/ | |
/usr/local/opt/python/bin/python2.7 -E -c pass | |
TEST FAILED: /usr/local/Cellar/vtk/5.10.1/lib/python2.7/site-packages/ does NOT support .pth files | |
error: bad install directory or PYTHONPATH | |
You are attempting to install a package to a directory that is not | |
on PYTHONPATH and which Python does not read ".pth" files from. The | |
installation directory you specified (via --install-dir, --prefix, or | |
the distutils default setting) was: | |
/usr/local/Cellar/vtk/5.10.1/lib/python2.7/site-packages/ | |
and your PYTHONPATH environment variable currently contains: | |
'' | |
Here are some of your options for correcting the problem: | |
* You can choose a different installation directory, i.e., one that is | |
on PYTHONPATH or supports .pth files | |
* You can add the installation directory to the PYTHONPATH environment | |
variable. (It must then also be on PYTHONPATH whenever you run | |
Python and want to use the package(s) you are installing.) | |
* You can set up the installation directory to support ".pth" files by | |
using one of the approaches described here: | |
http://packages.python.org/distribute/easy_install.html#custom-installation-locations | |
Please make the appropriate changes for your system and try again. | |
-- Installing: /usr/local/Cellar/vtk/5.10.1/lib/vtk-5.10/VTKTargets.cmake | |
-- Installing: /usr/local/Cellar/vtk/5.10.1/lib/vtk-5.10/VTKTargets-none.cmake | |
-- Installing: /usr/local/Cellar/vtk/5.10.1/lib/vtk-5.10/VTKConfig.cmake | |
-- Installing: /usr/local/Cellar/vtk/5.10.1/lib/vtk-5.10/VTKConfigVersion.cmake | |
==> Cleaning | |
rmdir: /usr/local/Cellar/vtk/5.10.1/lib/python2.7/site-packages (empty) | |
==> Caveats | |
Even without the --with-pyqt option, you can display native VTK render windows | |
from python. Alternatively, you can integrate the RenderWindowInteractor | |
in PyQt, PySide, Tk or Wx at runtime. Read more: | |
import vtk.qt4; help(vtk.qt4) or import vtk.wx; help(vtk.wx) | |
==> Finishing up | |
ln -s ../Cellar/vtk/5.10.1/bin/vtkWrapPythonInit vtkWrapPythonInit | |
ln -s ../Cellar/vtk/5.10.1/bin/vtkWrapPython vtkWrapPython | |
ln -s ../Cellar/vtk/5.10.1/bin/vtkWrapHierarchy vtkWrapHierarchy | |
ln -s ../Cellar/vtk/5.10.1/bin/vtkpython vtkpython | |
ln -s ../Cellar/vtk/5.10.1/bin/vtkEncodeString vtkEncodeString | |
ln -s ../Cellar/vtk/5.10.1/include/vtk-5.10 vtk-5.10 | |
ln -s ../Cellar/vtk/5.10.1/lib/vtk-5.10 vtk-5.10 | |
ln -s ../../Cellar/vtk/5.10.1 vtk | |
ln -s ../Cellar/vtk/5.10.1 vtk | |
==> Summary | |
🍺 /usr/local/Cellar/vtk/5.10.1: 2496 files, 104M, built in 52.1 minutes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment