vtk建立mac os x 10.10,没有规则将目标设为'... libpython2.7.dylib' [英] vtk build mac os x 10.10 , no rule to make target '...libpython2.7.dylib'

查看:238
本文介绍了vtk建立mac os x 10.10,没有规则将目标设为'... libpython2.7.dylib'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Mac OS X 10.10上构建代码使用vtk-6.1.1。在 cmake之后,我运行 make,它给我带来以下错误:

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

使用自制软件,我仅安装了python 2.7.9。抱歉,已经环顾四周,但找不到解决此问题的方法,对cmake的了解还不够,无法自己解决。

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.

推荐答案

通过以下方式解决

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

这篇关于vtk建立mac os x 10.10,没有规则将目标设为'... libpython2.7.dylib'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆