我正在尝试在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...

有什么帮助吗?

最佳答案

快速Google搜索附带http://lists.boost.org/boost-build/2006/04/13457.php

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

关于c++ - 建立 boost 库,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/5273038/

10-12 00:37
查看更多