在OSX上安装PySide

2 投票
2 回答
1479 浏览
提问于 2025-04-15 18:52

有没有人成功在OSX上安装和使用PySide?我正在按照PySide网站上的安装说明进行操作,但在构建API提取器时遇到了问题。我在api extractor文件夹里的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是什么。如果你能对设置过程提供一些帮助,那就太好了。

谢谢

2 个回答

4

你可能想看看最近发布的PySide新版本,我记得它已经不再依赖Boost库了。

2

这是一些非常常用的C++库,可能是PySide需要用到的,虽然我自己没试过。

你可以从这里下载它们: http://sourceforge.net/projects/boost/files/boost/1.42.0/

另外,你也可以通过macports来安装它们:http://www.macports.org。安装好macports后,只需运行“sudo port install boost”命令。不过,遗憾的是,pyside似乎还没有在macports上提供。

撰写回答