vtk build mac os x 10.10 , no rule to make target '…libpython2.7.dylib'

半城伤御伤魂 提交于 2019-12-13 03:55:27

问题


I am trying to build this code on Mac OS X 10.10 with vtk-6.1.1. After "cmake" I run "make" and it delivers me the following error:

Scanning dependencies of target ReadDICOMSeries
[100%] Building CXX object CMakeFiles/ReadDICOMSeries.dir /ReadDICOMSeries.cxx.o
make[2]: *** No rule to make target `/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib', needed by `ReadDICOMSeries.app/Contents/MacOS/ReadDICOMSeries'.  Stop.
make[1]: *** [CMakeFiles/ReadDICOMSeries.dir/all] Error 2
make: *** [all] Error 2

With homebrew I only have python 2.7.9 installed. Sorry, have looked around but could not find a solution to this problem and don't know enough about cmake to figure it out by myself.


回答1:


Solved it by

brew update
brew rm vtk
brew install vtk --with-qt


来源:https://stackoverflow.com/questions/28755739/vtk-build-mac-os-x-10-10-no-rule-to-make-target-libpython2-7-dylib

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!