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

John Reid j.reid at mail.cryst.bbk.ac.uk
Mon Oct 7 16:53:10 CEST 2013


On 04/10/13 19:12, Gary Oberbrunner wrote:
> 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):

Have you tried pointing the use-project boost to the boost source
directory rather than the boost installation directory? I don't think
boost installs the projects, just headers and libraries.



More information about the Cplusplus-sig mailing list