Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Boost::Python Windows 7 64 Bit

I can't seem to build boost::python correctly on my Windows 7 64Bit machine. It's vanilla 32bit python 2.6.4 in the c:\Python26 directory.

Pastebin is here of the debug build output : http://pastebin.com/m7d70f13e

Cheers,

Al

like image 812
AlMcLean Avatar asked Nov 09 '09 21:11

AlMcLean


People also ask

How do I download and install Boost?

Install Boost (Windows)Download the source code from http://www.boost.org/users/download/. Extract in a Boost folder located at C:\ or C:\Program files so that CMake find-modules can detect it. Invoke the command line and navigate to the extracted folder (e.g. cd C:\Boost\boost_1_63_0 ).


1 Answers

On IRC, we have found the following procedure fixes the problem:

  1. Open tools/build/v2/tools/python.jam
  2. There, locate the following code:

    if [ version.check-jam-version 3 1 17 ] || ( [ os.name ] != NT )
    {
        # Prior to version 3.1.17 Boost Jam's SHELL command did not support
        # quoted commands correctly on Windows. This means that on that
        # platform we do not support using a Python command interpreter
        # executable whose path contains a space character.
        python-cmd = \"$(python-cmd)\" ;
    }
    
  3. Remove that code block completely.

I'll create an issue in Boost issue tracker and investigate this.

like image 188
Vladimir Prus Avatar answered Sep 21 '22 13:09

Vladimir Prus