[C++-sig] Newbie trouble with Boost.Python tutorial on Ubuntu

Maximilian Wilson wilson.max at gmail.com
Sat Jan 6 21:52:33 CET 2007


On 1/5/07, Sean Hammond <s0094060 at sms.ed.ac.uk> wrote:
> Following the tutorial, I created a Boost folder on my desktop. I copied
> hello.cpp, Jamfile, and Jamrules from here:
[snip]
> s0094060 at marley-20:~/Desktop/Boost$ bjam -sTOOLS=gcc
> Failed to find the project root for directory '.'.
> Did not find a project-root.jam file there or in any of its parent directories.
> Please consult the documentation at 'http://www.boost.org'.

I'm not familiar with Ubuntu, but bjam relies on a file called
boost-build.jam to point it to the .jam files on your system for gcc,
etc. It searches in the current directory and on up. When I did the
tutorial a couple of weeks ago, I just copied
$BOOST/libs/python/example/boost-build.jam and (because I was on
MinGW) altered it to point to "boost-build
c:\\Boost\\tools\\build\\v1".

HTH,
-Max Wilson

-- 
Be pretty if you are, be witty if you can,
But be cheerful if it kills you.

Everything in Windows is very simple, but the simplest thing is difficult.
    -Clausewitz



More information about the Cplusplus-sig mailing list