Build boost::python

Discussion about using Python with libRocket.

Build boost::python

Postby leeonix on Tue Oct 25, 2011 12:22 am

hi, i follow http://librocket.com/wiki/documentation/BuildingBoostPython to build boost1.47, it isn't work.
i find a way and do it. and now i submit this topic maybe help other peoples.

if this way have some help, plz adminstrator change this wiki. :D

1. run bootstrap.bat or bootstrap.sh can create bjam
2. don't create bjam-config.jam file in HOME PATH, modify project-config.jam in boost path is same way.
3. in project-config.jam python lib set like this:
Code: Select all
using python
: 2.7
: D:\\development\\support\\python
: D:\\development\\support\\python\include
: D:\\development\\support\\python\\PCbuild
;

this is set the LIB path can find python.lib and python_d.lib
3. bjam. use option --with-python build python. and link=shared build dynamic link file boost_xxx not libboost_xxx.
so like this is debug version:
Code: Select all
bjam --toolset=msvc-9.0 link=shared --with-python python-debugging=on variant=debug

or set option clear:
Code: Select all
bjam --toolset=msvc-9.0 link=shared --with-python python-debugging=on variant=debug threading=multi runtime-link=shared

and release version:
Code: Select all
bjam --toolset=msvc-9.0 link=shared --with-python variant=release

Code: Select all
bjam --toolset=msvc-9.0 link=shared --with-python variant=release threading=multi runtime-link=shared
leeonix
 
Posts: 1
Joined: Mon Oct 24, 2011 11:39 pm

Return to libRocket and Python


cron