Boost logo

Boost Users :

Subject: [Boost-users] Custom build of Python3 not picked up by Boost.Build
From: Matthieu Brucher (matthieu.brucher_at_[hidden])
Date: 2016-08-16 07:37:36


Hi,

As I need a build of Python3 compatible with VS2012, I built it from
scratch and installed it in a _INSTALL folder, following a tutorial online.
Now, I want to use that Python3 with Boost.Python, so I did this in my
use-config.jam:
using python : 3.4 : D:/Tools/Python-3.4.5/_INSTALL/python.exe :
D:/Tools/Python-3.4.5/_INSTALL/include :
D:/Tools/Python-3.4.5/_INSTALL/libs ;

And then:

.\bootstrap.bat --with-python=D:\Tools\Python-3.4.5\_INSTALL
--with-python-version=3.4 --python-buildid=3
which failed.
The includes are found properly, but the link is floawed:

LINK : fatal error LNK1104: cannot open file 'python34.lib'

The library is in D:/Tools/Python-3.4.5/_INSTALL/libs, but could not be
found according to the log.
Also, something strange:
D:\Tools\boost_1_60_0\tools\build\src\engine>.\bootstrap\jam0 -f build.jam
--toolset=vc14 "--toolset-root=C:\Program Files (x86)\Microsoft Visual
Studio 14.0\Common7\Tools\..\..\VC\ "
--with-python=D:\Tools\Python-3.4.5\_INSTALL --with-python-version=3.4
--python-buildid=3

The retrieved toolset is wrong, as explicitely asked for VS2012 aka 11.0
int he user-config.jam and I'm running it from a VS2012 x64 native tools
command prompt.

Couldn't find any help online, so the best is to ask the Boost community!

Regards,

Matthieu

-- 
Information System Engineer, Ph.D.
Blog: http://blog.audio-tk.com/
LinkedIn: http://www.linkedin.com/in/matthieubrucher


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net