【问题标题】:Building boost library构建boost库
【发布时间】:2011-03-11 12:45:59
【问题描述】:

我正在尝试在 Arch Linux 下构建 boost 库

$ uname -a
Linux wincode 2.6.37-ARCH #1 SMP PREEMPT Fri Feb 25 07:53:43 CET 2011 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ AuthenticAMD GNU/Linux

$ python --version
Python 3.2

$ ls /usr/include/python
python2.7/   python3.2mu/

$ ls /usr/lib/python
python2.6/ python2.7/ python3.1/ python3.2/ 

我正在使用 aur-repo 构建它。自动编译脚本可以在here找到。

现在我明白了:

./boost/python/*:50:23: fatal error: pyconfig.h: No such file or directory
compilation terminated.

几乎所有来自 boost.python 库的文件。所以python有问题,boost找不到。在编译结束时我得到:

...failed updating 336 targets...
...skipped 48 targets...
...updated 13264 targets...

有什么帮助吗?

【问题讨论】:

    标签: c++ python boost compilation


    【解决方案1】:

    快速谷歌搜索出现http://lists.boost.org/boost-build/2006/04/13457.php

    基本上,将您的 python 包含目录添加到包含搜索路径。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-21
      • 2015-02-25
      • 2017-05-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多