Boost.Python and VC9 troubles

This topic is 3623 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

Has anyone successfully compiled Boost.Python on VC9? I am becoming very frustrated with stupid errors it spits out. And google is no help either. In case you wonder, here is the error
notice: [python-cfg] Configuring python...
notice: [python-cfg] Registry indicates Python 2.4 installed at "C:\Program Files\Python24\"
notice: [python-cfg] Checking interpreter command "python"...
notice: [python-cfg] running command 'python -c "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)" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "C:\Program Files\Python24\python"...
notice: [python-cfg] running command 'DIR /-C /A:S C:\Program Files\Python24\python.exe 2>&1'
notice: [python-cfg] running command 'C:\Program Files\Python24\python -c "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)" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] No working Python interpreter found.
notice: [python-cfg] falling back to "python"
notice: [python-cfg] Details of this Python configuration:
notice: [python-cfg]   interpreter command: "python"
notice: [python-cfg]   include path: "Include"
notice: [python-cfg]   library path: "\libs"
notice: [python-cfg]   DLL search path: "<empty>"

Share on other sites
I had successfully compiled Boost.Python with VC9. I had no problems in compilation. I did checkout Boost from the repository, instead of the 1.34 stable.

Share on other sites
Thanks, I'll try that.

Share on other sites
From those errors it looks like the Python executable is not on your PATH, have you checked that?

Share on other sites
No, it wasn't. But now I have another problem, when running bjam in boost/libs/python/build I only get one target build (although it says 36 targets found)
boost_python-vc-gd-1_35.dll

Any ideas?

Share on other sites
Wow, that's weird. It's vc-gd and not vc90-gd? Boost marks the version of VC++ used to compile. I had no problems building the various targets on my end. I did explicitly state release and debug builds when instruction bjam to build the library, but technically it should not make a single bit of difference. Omitting targets means all get built automatically.

Apologies, but I don't know why you are running into this problem.

Share on other sites
It is because I wrote toolkit instead of toolset :P Anyway, after compiling with toolset=msvc-9.0 I've got
boost_python-vc90-mt-gd-1_35.dll
in

And nothing else. Last time I compiled 1.33.1 version all targets were compiled, debug and release, static and dynamic, single and multi threaded. I can't find instructions for explicitly building other targets (maybe I don't see something). What did you use?

Share on other sites
If you can't get bjam to work, you could try adding the boost::python sources directly to your project. Instruction to do so are at the end of this article.

Share on other sites
I've fixed it by simply compiling entire boost. Now all I need to do is to fix header for auto linking so that it finds vc90 and not vc80 dll's.

Share on other sites

This topic is 3623 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Create an account

Register a new account

• Forum Statistics

• Total Topics
628719
• Total Posts
2984385

• 25
• 11
• 10
• 15
• 14