Problem in building the BGL Python 0.95 on Windows

Hi there, I have got the latest BGL-Python 0.95 from svn (thanks to John), but I can't build it. My environment: Windows 7 x64, Python 2.66 x86, MPICH2 1.32 x86, VS2010 I have tried the following steps: 1. The boost 1.53 source code distribution dir (newly extracted from the zip package) is E:\boost_1_53_0, the BGL Python 0.95 source code dir is E:\bgl-python_svn_095 2. Add a new environment variable, name: BOOST_ROOT, value: E:\boost_1_53_0 3. Append the boost 1.53 source code distribution dir (E:\boost_1_53_0) to the environment variable "PATH" to expose later built bjam.exe file. 4. Add some lines to the file user-config.jam (E:\boost_1_53_0\tools\build\v2\user-config.jam) import toolset : using ; using python : 2.6 : "C:\\Python266" : "C:\\Python266\\include" : "C:\\Python266\\libs" ; using mpi : : <find-static-library>mpi <library-path>"D:\\Program Files (x86)\\MPICH2\\lib" <include>"D:\\Program Files (x86)\\MPICH2\\include" : "\"D:\\Program Files (x86)\\MPICH2\\mpiexec\"" ; 5. Open the vs2010 commandline window (Visual Studio Command Prompt 2010) 6. Navigate to boost 1.53 source code distribution dir to build the bjam.exe: type bootstrap.bat 7. Then navigate to the BGL-Python-0.95 source code dir and type bjam --prefix=E:\boost_1_53_0\release32 stage toolset=msvc-10.0 variant=release link=static address-model=32 architecture=x86 threading=multi runtime-link=shared install The outputs are: Jamfile.v2:198: in load-aux rule python.get-python-interpreter unknown in module Jamfile E:/boost_1_53_0/tools/build/v2/build\project.jam:323: in load-jamfile E:/boost_1_53_0/tools/build/v2/build\project.jam:62: in load E:/boost_1_53_0/tools/build/v2/build\project.jam:168: in project.find E:/boost_1_53_0/tools/build/v2\build-system.jam:570: in load E:\boost_1_53_0\tools\build\v2/kernel\modules.jam:283: in import E:\boost_1_53_0\tools\build\v2/kernel/bootstrap.jam:142: in boost-build E:\boost_1_53_0\boost-build.jam:17: in module scope E:\bgl-python_svn_095> and the building process stopped. So what is the problem? Thanks. Zhiyu Li

On 20/06/13 09:18, lizy10b wrote:
Hi there, I have got the latest BGL-Python 0.95 from svn (thanks to John), but I can't build it. My environment: Windows 7 x64, Python 2.66 x86, MPICH2 1.32 x86, VS2010
I have tried the following steps:
1. The boost 1.53 source code distribution dir (newly extracted from the zip package) is E:\boost_1_53_0, the BGL Python 0.95 source code dir is E:\bgl-python_svn_095 2. Add a new environment variable, name: BOOST_ROOT, value: E:\boost_1_53_0 3. Append the boost 1.53 source code distribution dir (E:\boost_1_53_0) to the environment variable "PATH" to expose later built bjam.exe file. 4. Add some lines to the file user-config.jam (E:\boost_1_53_0\tools\build\v2\user-config.jam) import toolset : using ; using python : 2.6 : "C:\\Python266" : "C:\\Python266\\include" : "C:\\Python266\\libs" ; using mpi : : <find-static-library>mpi <library-path>"D:\\Program Files (x86)\\MPICH2\\lib" <include>"D:\\Program Files (x86)\\MPICH2\\include" : "\"D:\\Program Files (x86)\\MPICH2\\mpiexec\"" ; 5. Open the vs2010 commandline window (Visual Studio Command Prompt 2010) 6. Navigate to boost 1.53 source code distribution dir to build the bjam.exe: type bootstrap.bat 7. Then navigate to the BGL-Python-0.95 source code dir and type bjam --prefix=E:\boost_1_53_0\release32 stage toolset=msvc-10.0 variant=release link=static address-model=32 architecture=x86 threading=multi runtime-link=shared install
Did you try building one of the boost.python examples (available somewhere like $BOOST_ROOT/libs/python/examples)? That might be the simplest way to test your boost.build python configuration.

Hi John Reid , Thanks fo your reply. I have some questions about the statements in README file of BGL Python 0.95. It says "You must have a complete Boost distribution available (e.g., retrieved via CVS or as part of a Boost tarball) to compile the BGL-Python: the BGL-Python bindings will not compile properly with already-installed Boost trees." First, I have got the complete Boost distribution (1.52,ZIP) and extracted it to a path, and added the path as the value of the environment variable BOOST_ROOT. Second, What does it mean by "the BGL-Python bindings will not compile properly with already-installed Boost trees"? Should I build the boost.python before calling bjam inside BGL Python 0.95 source dir ? Or there is no need to build the boost.python separately, as the BGL Python 0.95 build process will build it and use it to continue to build the BGL Python binary automatically ? Without BGL Python, I could build the boost.python based on current configuration, and all the boost.python example passed successfully. Thanks. Zhiyu Li 2013-06-30 lizy10b 发件人: John Reid 发送时间: 2013-06-28 17:54:23 收件人: boost-users 抄送: 主题: Re: [Boost-users] Problem in building the BGL Python 0.95 on Windows On 20/06/13 09:18, lizy10b wrote:
Hi there, I have got the latest BGL-Python 0.95 from svn (thanks to John), but I can't build it. My environment: Windows 7 x64, Python 2.66 x86, MPICH2 1.32 x86, VS2010
I have tried the following steps:
1. The boost 1.53 source code distribution dir (newly extracted from the zip package) is E:\boost_1_53_0, the BGL Python 0.95 source code dir is E:\bgl-python_svn_095 2. Add a new environment variable, name: BOOST_ROOT, value: E:\boost_1_53_0 3. Append the boost 1.53 source code distribution dir (E:\boost_1_53_0) to the environment variable "PATH" to expose later built bjam.exe file. 4. Add some lines to the file user-config.jam (E:\boost_1_53_0\tools\build\v2\user-config.jam) import toolset : using ; using python : 2.6 : "C:\\Python266" : "C:\\Python266\\include" : "C:\\Python266\\libs" ; using mpi : : <find-static-library>mpi <library-path>"D:\\Program Files (x86)\\MPICH2\\lib" <include>"D:\\Program Files (x86)\\MPICH2\\include" : "\"D:\\Program Files (x86)\\MPICH2\\mpiexec\"" ; 5. Open the vs2010 commandline window (Visual Studio Command Prompt 2010) 6. Navigate to boost 1.53 source code distribution dir to build the bjam.exe: type bootstrap.bat 7. Then navigate to the BGL-Python-0.95 source code dir and type bjam --prefix=E:\boost_1_53_0\release32 stage toolset=msvc-10.0 variant=release link=static address-model=32 architecture=x86 threading=multi runtime-link=shared install
Did you try building one of the boost.python examples (available somewhere like $BOOST_ROOT/libs/python/examples)? That might be the simplest way to test your boost.build python configuration. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On 30/06/13 15:47, lizy10b wrote:
Hi John Reid , Thanks fo your reply. I have some questions about the statements in README file of BGL Python 0.95.
It says "You must have a complete Boost distribution available (e.g., retrieved via CVS or as part of a
Boost tarball) to compile the BGL-Python: the BGL-Python bindings will not compile properly with already-installed Boost trees."
First, I have got the complete Boost distribution (1.52,ZIP) and extracted it to a path, and added the path as the value of the environment variable BOOST_ROOT.
I believe this is what you should do.
Second, What does it mean by "the BGL-Python bindings will not compile properly with already-installed Boost trees"?
This means that the bindings are expecting to find the entire boost tree somewhere rather than just a set of installed libraries and headers.
Should I build the boost.python before calling bjam inside BGL Python 0.95 source dir ?
I don't think you have to.
Or there is no need to build the boost.python separately, as the BGL Python 0.95 build process will build it and use it to continue to build the BGL Python binary automatically ?
I belive so.
Without BGL Python, I could build the boost.python based on current configuration, and all the boost.python example passed successfully.
OK that narrows it down somewhat. I don't know about boost.build on Windows but are you sure it is finding your user-config.jam? The error message suggests it does not know the rule python.get-python-interpreter. On Linux I have user-config.jam in my home directory. You seem to have put it at $(BOOST_ROOT)\build\v2\
Thanks.
Zhiyu Li
2013-06-30 ------------------------------------------------------------------------ lizy10b ------------------------------------------------------------------------ *发件人:* John Reid *发送时间:* 2013-06-28 17:54:23 *收件人:* boost-users *抄送:* *主题:* Re: [Boost-users] Problem in building the BGL Python 0.95 on Windows On 20/06/13 09:18, lizy10b wrote:
Hi there, I have got the latest BGL-Python 0.95 from svn (thanks to John), but I can't build it. My environment: Windows 7 x64, Python 2.66 x86, MPICH2 1.32 x86, VS2010
I have tried the following steps:
1. The boost 1.53 source code distribution dir (newly extracted from the zip package) is E:\boost_1_53_0, the BGL Python 0.95 source code dir is E:\bgl-python_svn_095 2. Add a new environment variable, name: BOOST_ROOT, value: E:\boost_1_53_0 3. Append the boost 1.53 source code distribution dir (E:\boost_1_53_0) to the environment variable "PATH" to expose later built bjam.exe file. 4. Add some lines to the file user-config.jam (E:\boost_1_53_0\tools\build\v2\user-config.jam) import toolset : using ; using python : 2.6 : "C:\\Python266" : "C:\\Python266\\include" : "C:\\Python266\\libs" ; using mpi : : <find-static-library>mpi <library-path>"D:\\Program Files (x86)\\MPICH2\\lib" <include>"D:\\Program Files (x86)\\MPICH2\\include" : "\"D:\\Program Files (x86)\\MPICH2\\mpiexec\"" ; 5. Open the vs2010 commandline window (Visual Studio Command Prompt 2010) 6. Navigate to boost 1.53 source code distribution dir to build the bjam.exe: type bootstrap.bat 7. Then navigate to the BGL-Python-0.95 source code dir and type bjam --prefix=E:\boost_1_53_0\release32 stage toolset=msvc-10.0 variant=release link=static address-model=32 architecture=x86 threading=multi runtime-link=shared install
Did you try building one of the boost.python examples (available somewhere like $BOOST_ROOT/libs/python/examples)? That might be the simplest way to test your boost.build python configuration. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
John Reid
-
lizy10b