Developer Blog - Inventic.eu
  • Skipper - The ORM Designer
  • VsBuilds - Parallel building
  • Pulpo - Free Skipper CLI

Tag: #boost

Problem with compiling Boost

Warning: &quot;using python&quot; expects a two part (major, minor) version number; got %d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))&quot;  instead<br />
Q:/ExternalLibraries/boost_trunk/tools/build/v2/build\feature.jam:276: in implied-feature from module featureerror: &quot;version_info[1]&quot; is not an implicit feature value<br />
Q:/ExternalLibraries/boost_trunk/tools/build/v2/build\feature.jam:355: in expand-subfeatures-aux from module featureQ:/ExternalLibraries/boost_trunk/tools/build/v2/build\feature.jam:424: in feature.expand-subfeatures from module feature<br />
Q:/ExternalLibraries/boost_trunk/tools/build/v2/build\property.jam:186: in property.expand-subfeatures-in-conditions from module property<br />
Q:/ExternalLibraries/boost_trunk/tools/build/v2/build\property-set.jam:407: in property-set.create-from-user-input from module property-set<br />
Q:/ExternalLibraries/boost_trunk/tools/build/v2/build\property-set.jam:461: in property-set.refine-from-user-input from module property-set<br />
Q:/ExternalLibraries/boost_trunk/tools/build/v2/build\targets.jam:1580: in targets.main-target-requirements from module targets<br />
Q:/ExternalLibraries/boost_trunk/tools/build/v2/tools\builtin.jam:532: in lib from module builtin<br />
Q:/ExternalLibraries/boost_trunk/tools/build/v2/tools\python.jam:680: in declare-libpython-target from module python<br />
Q:/ExternalLibraries/boost_trunk/tools/build/v2/tools\python.jam:925: in configure from module python<br />
Q:/ExternalLibraries/boost_trunk/tools/build/v2/tools\python.jam:110: in python.init from module python<br />
Q:/ExternalLibraries/boost_trunk/tools/build/v2/build\toolset.jam:41: in using from module toolset libs\python\build\Jamfile.v2:16: in modules.load from module Jamfile&lt;Q:\External<br />
Libraries\boost_trunk\libs\python\build&gt;<br />
Q:/ExternalLibraries/boost_trunk/tools/build/v2/build\project.jam:311: in load-jamfile from module project<br />
Q:/ExternalLibraries/boost_trunk/tools/build/v2/build\project.jam:64: in load from module project<br />
Q:/ExternalLibraries/boost_trunk/tools/build/v2/build\project.jam:89: in load-used-projects from module project<br />
Q:/ExternalLibraries/boost_trunk/tools/build/v2/build\project.jam:75: in load from module project<br />
Q:/ExternalLibraries/boost_trunk/tools/build/v2/build\project.jam:145: in project.find from module project<br />
Q:/ExternalLibraries/boost_trunk/tools/build/v2\build-system.jam:552: in load from module build-system<br />
Q:\ExternalLibraries\boost_trunk\tools\build\v2/kernel\modules.jam:289: in import from module modules<br />
Q:\ExternalLibraries\boost_trunk\tools\build\v2/kernel/bootstrap.jam:139: in boost-build from module<br />
Q:\ExternalLibraries\boost_trunk\boost-build.jam:17: in module scope from module<br />

The problem was that boost build helper run my python.bat instead of correct python.exe from %PATH% directory.

To check which python is used enter following param:

b2 --debug-configuration:<br />
notice: [python-cfg] Configuring python...<br />
notice: [python-cfg] Registry indicates Python 2.7 installed at &quot;C:\Python27\&quot;<br />
notice: [python-cfg] Checking interpreter command &quot;python&quot;...<br />
notice: [python-cfg] running command 'python -c &quot;from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))&quot; 2&gt;&amp;1'<br />
notice: [python-cfg] ...does not invoke a working interpreter<br />
notice: [python-cfg] Checking interpreter command &quot;C:\Python27\python&quot;...</p>
<p>####HERE####<br />
notice: [python-cfg] running command 'DIR /-C /A:S &quot;C:\Python27\python.exe&quot; 2&gt;&amp;1'<br />
####HERE####</p>
<p>notice: [python-cfg] running command 'C:\Python27\python -c &quot;from sys import *;print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))&quot; 2&gt;&amp;1'<br />
notice: [python-cfg] ...requested configuration matched!<br />
notice: [python-cfg] Details of this Python configuration:<br />
notice: [python-cfg]   interpreter command: &quot;C:\Python27\python&quot;<br />
notice: [python-cfg]   include path: &quot;C:\Python27\Include&quot;<br />
notice: [python-cfg]   library path: &quot;C:\Python27\libs&quot;<br />
notice: [python-cfg]   DLL search path: &quot;C:\Python27&quot;<br />

08 Sep 2012

Posted by: ludek.vodicka

Windows #C++ #boost #extrnal libraries