[C++-sig] Building tutorial example out of the boost tree, on Windows

Raghvendra Jain raghavendra.jain at gmail.com
Sat Oct 5 15:44:53 CEST 2013


Hi,

Placing  user-config.jam in your %HOMEDRIVE%%HOMEPATH%
location, and configured Python inside it, is very crucial step.

I spent like 4 days while trying to build it without following this step.
Please see the tutorial with the link below:


http://garkavictor.blogspot.jp/2013/09/compiling-boost-and-boostpython-running.html

Cheers,
Raghav


On Sat, Oct 5, 2013 at 10:42 PM, Wojciech Mamrak <wmamrak at gmail.com> wrote:

> hi,
>
> have you placed user-config.jam in your %HOMEDRIVE%%HOMEPATH%
> location, and configured Python inside it, e.g.
>
> using msvc : 10.0 : : ;
>
> using python
>   : 2.7 #version
>   : D:/Python27 # cmd-or-prefix
>   : D:/Libs/Python273/include #includes
>   : D:/Libs/Python273/libs #libraries
>   ;
>
> as described here:
>
> http://www.boost.org/boost-build2/doc/html/bbv2/reference/tools.html
> http://www.boost.org/boost-build2/doc/html/bbv2/overview/configuration.html
> http://www.boost.org/boost-build2/doc/html/bbv2/overview/invocation.html
>
> ?
>
> regards
>
> 2013/10/4 Gary Oberbrunner <garyo at genarts.com>:
> > Hi folks -- new to Boost.Python, old-school C/C++/Python developer.
> >
> > I'm trying to set up Boost.Python 1.54.0 on Windows 7, python 2.7.3,
> Visual Studio 2010. I installed boost_1_54_0 using the VS10 installer, then
> built bjam using 'bootstrap; .\b2 toolset=msvc', then copied bjam into my
> $PATH.  I can build and run the quickstart and tutorial examples in the
> distribution (I had to add some MSVC lib dirs as library-path requirements
> in Jamroot, but that's OK). But when I copy the tutorial example to a
> different dir, not inside the boost distribution dir, to make it more like
> a real project, bjam gives build errors. I changed the use-project boost
> location in Jamroot to /local/boost_1_54_0/ which is where boost wanted to
> install itself, and added a simple one-line boost-build.jam (based on
> something I found online):
> >
> >   boost-build C:/local/boost_1_54_0/tools/build/v2 ;
> >
> > but ultimately bjam gives me this error:
> >
> > % bjam
> > notice: no Python configured in user-config.jam
> > notice: will use default configuration
> > C:/local/boost_1_54_0/tools/build/v2/build\project.jam:262: in
> find-jamfile from module project
> > error: Unable to load Jamfile.
> > error: Could not find a Jamfile in directory '/local/boost_1_54_0'.
> > error: Attempted to find it with pattern '[Bb]uild.jam [Jj]amfile.v2
> [Jj]amfile [Jj]amfile.jam'.
> > error: Please consult the documentation at 'http://www.boost.org'.
> > C:/local/boost_1_54_0/tools/build/v2/build\project.jam:280: in
> load-jamfile from module project
> > C:/local/boost_1_54_0/tools/build/v2/build\project.jam:64: in load from
> module project
> > C:/local/boost_1_54_0/tools/build/v2/build\project.jam:89: in
> load-used-projects from module project
> > C:/local/boost_1_54_0/tools/build/v2/build\project.jam:75: in load from
> module project
> > C:/local/boost_1_54_0/tools/build/v2/build\project.jam:145: in
> project.find from module project
> > C:/local/boost_1_54_0/tools/build/v2\build-system.jam:535: in load from
> module build-system
> > C:\local\boost_1_54_0\tools\build\v2/kernel\modules.jam:289: in import
> from module modules
> > C:\local\boost_1_54_0\tools\build\v2/kernel/bootstrap.jam:139: in
> boost-build from module
> > C:\tmp\tutorial\boost-build.jam:1: in module scope from module
> >
> > What else do I need to add, or what am I doing wrong?
> >
> > thanks,
> >
> > -- Gary Oberbrunner
> > _______________________________________________
> > Cplusplus-sig mailing list
> > Cplusplus-sig at python.org
> > https://mail.python.org/mailman/listinfo/cplusplus-sig
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig at python.org
> https://mail.python.org/mailman/listinfo/cplusplus-sig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20131005/ae6dbf3b/attachment.html>


More information about the Cplusplus-sig mailing list