[C++-sig] building boost with custom python 3.5 installation

Kovas Palunas kovas at uw.edu
Tue Jul 5 15:28:37 EDT 2016


Hi all,

I'm trying to build boost.python with a custom python 3.5 installation in a
custom directory.  So far, I've been using the following sequence of
commands and have not gotten a successful build.  Are there any other
things I have to tell boost in order for it to find all it needs properly?
I get errors along the lines of "cannot find Python.h", even though I think
I'm telling boost where to find the python headers.

python_root=`python3.5 -c "import sys; print(sys.prefix)”`

./bootstrap.sh --with-python-root=$python_root
--prefix=/mnt/data/kpalunas/boost/boost_1_58_0
--with-python=/mnt/data/kpalunas/python3.5/bin/python3.5
–with-libraries=python,regex,thread,serialization --with-python-version=3.5

(I add the following line to project-config.jam after running bootstrap.sh)

using python : 3.5 : /mnt/data/kpalunas/python3.5/bin/python3.5m :
/mnt/data/kpalunas/python3.5/include : /mnt/data/kpalunas/python3.5/lib ;

./b2 install

Thanks!

 - Kovas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20160705/10061adb/attachment.html>


More information about the Cplusplus-sig mailing list