安装 PySide - OSX
有人在 OSX 上成功安装和使用 PySide 吗?尽管我在构建 API 提取器时遇到了问题,但我正在按照 PySide 站点上的安装说明进行操作。我在 api 提取器目录内的 CMakeLists.txt 文件上运行 cmake
并:
抛出此错误 -
CMake Error at /Applications/CMake 2.8-0.app/Contents/share/cmake-2.8/Modules/FindBoost.cmake:894 (message):
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
CMakeLists.txt:5 (find_package)
我是使用 cmake 构建源代码的新手,我不太确定 Boost 是什么。如果您对设置过程有任何了解,那就太好了。
谢谢
Anyone had success installing and using PySide on OSX? I am following the install instructions on the PySide site, though I'm running into issues building the API Extractor. I run cmake
on the CMakeLists.txt file inside the api extractor dir and:
This error is thrown-
CMake Error at /Applications/CMake 2.8-0.app/Contents/share/cmake-2.8/Modules/FindBoost.cmake:894 (message):
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
CMakeLists.txt:5 (find_package)
I am new to building source w/ cmake and I'm not event really sure what Boost is. Any light you might shed on the set up process would be great.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能想查看最近发布的最新版本的 PySide,我相信对 Boost 库的依赖已被删除。
You may want to check the newest release of PySide, out very recently, I believe the dependency on the Boost libraries has been removed.
这是一组相当广泛的 C++ 库,PySide 可能需要它们,尽管我从未尝试过。
从那里下载它们:
http://sourceforge.net/projects/boost/files/boost/1.42 .0/
否则,您可以从 macports 安装它们:http://www.macports.org 安装 macports 后,只需运行“sudo port install boost”。不幸的是,pyside 本身似乎还没有出现在 macports 中。
It's a set of quite widespread C++ libraries, they're probably needed by PySide, even though I've never tried it.
Download them from there:
http://sourceforge.net/projects/boost/files/boost/1.42.0/
Otherwise, you can install them from macports: http://www.macports.org once you've installed macports, just run "sudo port install boost". Unluckily, pyside itself doesn't seem to be in macports yet.