|
Boost Users : |
From: Chun Tse (chun.tse_at_[hidden])
Date: 2007-12-19 04:42:19
Hello,
I've followed the instructions from here:
http://www.boost.org/boost-build2/doc/html/bbv2/installation.html
I can build from example hello.cpp from:
/usr/share/boost-build/example/hello
$ bjam
...found 9 targets...
...updating 5 targets...
MkDir1 bin
MkDir1 bin\gcc-mingw-3.4.5
MkDir1 bin\gcc-mingw-3.4.5\debug
gcc.compile.c++ bin\gcc-mingw-3.4.5\debug\hello.o
gcc.link bin\gcc-mingw-3.4.5\debug\hello.exe
...updated 5 targets...
/usr/share/boost-build/example/hello
$ ls
Jamroot bin hello.cpp
/usr/share/boost-build/example/hello
$ find .
.
./bin
./bin/gcc-mingw-3.4.5
./bin/gcc-mingw-3.4.5/debug
./bin/gcc-mingw-3.4.5/debug/hello.exe
./bin/gcc-mingw-3.4.5/debug/hello.o
./hello.cpp
./Jamroot
I copy the example directory to my h drive and edit the
../boost-build.jam so it points to the build system:
/h/workspace/example/hello
$ cat ../boost-build.jam
# Copyright 2002, 2003 Vladimir Prus
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or
http://www.boost.org/LICENSE_1_0.txt)
boost-build /usr/share/boost-build/kernel ;
Then I run bjam and get an error saying it can't find bootstrap.jam.
/h/workspace/example/hello
$ ls
Jamroot hello.cpp
/h/workspace/example/hello
$ bjam
Unable to load Boost.Build: could not find build system.
---------------------------------------------------------
h:\workspace\example\boost-build.jam attempted to load the build
system by invoking
'boost-build /usr/share/boost-build/kernel ;'
but we were unable to find "bootstrap.jam" in the specified directory
or in BOOST_BUILD_PATH (searching /usr/share/boost-build/kernel,
/usr/share/boost-build).
Please consult the documentation at 'http://www.boost.org'.
bootstrap.jam is contained in /usr/share/boost-build/kernel
$ ls -l /usr/share/boost-build/kernel
total 18
-rw-r--r-- 1 mtse Administ 194 Dec 19 17:01 boost-build.jam
-rw-r--r-- 1 mtse Administ 4287 Dec 19 16:08 bootstrap.jam
-rw-r--r-- 1 mtse Administ 10260 Dec 19 16:08 class.jam
-rw-r--r-- 1 mtse Administ 7145 Dec 19 16:08 errors.jam
-rw-r--r-- 1 mtse Administ 11414 Dec 19 16:08 modules.jam
$ env | grep BOOS
BOOST_BUILD_PATH=/usr/share/boost-build
What could be wrong? How can I debug this?
$ bjam -v
Boost.Jam Version 3.1.16. OS=NT.
Copyright 1993-2002 Christopher Seiwald and Perforce Software, Inc.
Copyright 2001 David Turner.
Copyright 2001-2004 David Abrahams.
Copyright 2002-2005 Rene Rivera.
Copyright 2003-2005 Vladimir Prus.
Michael
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net