Boost logo

Boost Users :

Subject: Re: [Boost-users] Cross compiling
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-01-29 21:35:57


AMDG

Yepez, Esteban wrote:
> An update…
> I found the link that tells me how to build Bjam, but I run into a
> problem on the last part of the script:
> if test -x "./bootstrap/jam0" ; then
> if test "${BJAM_UPDATE}" != "update" ; then
> echo "bjam update = update"
> # echo_run ./bootstrap/jam0 -f build.jam --toolset=$BOOST_JAM_TOOLSET
> "--toolset-root=$BOOST_JAM_TOOLSET_ROOT" clean
> echo_run ./bootstrap/jam0 -f build.jam --toolset=tile
> "--toolset-root=$BOOST_JAM_TOOLSET_ROOT" clean
> fi
> echo "no update, just build"
> # echo_run ./bootstrap/jam0 -f build.jam --toolset=$BOOST_JAM_TOOLSET
> "--toolset-root=$BOOST_JAM_TOOLSET_ROOT" "$@"
> echo_run ./bootstrap/jam0 -f build.jam --toolset=tile
> "--toolset-root=$BOOST_JAM_TOOLSET_ROOT" "$@"
> Fi
> Because I have cross-compiled, I am not able to execute build.jam on
> the host. However when I try to execute on the target, the compiler is
> only on the host and the toolset I defined is not recognized! Yes, I
> copied the entire src directory into the target.

To build bjam you must use a compiler for the host because bjam has to
run on the host. There's no way around this.

In Christ,
Steven Watanabe


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