Jump to content
  • Advertisement
Sign in to follow this  
Toni Petrina

Boost.Python and VC9 troubles

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

If you intended to correct an error in the post then please contact us.

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 this post


Link to post
Share on other sites
Advertisement
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 this post


Link to post
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 this post


Link to post
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 this post


Link to post
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
D:\Modules\boost\bin.v2\libs\python\build\msvc-9.0\debug\threading-multi

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 this post


Link to post
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.

Thanks for your help.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!