|
Boost Users : |
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2008-05-30 00:11:21
CSB wrote:
> I've manage to build Boost (1_35_0) on my windows/cygwin machine using gcc
> (version 3.4.4) and it builds the threads dll such that I'm able to compile
> and run an application on windows that tests the threads.
>
> Now I'd like to be able to build using a cross-compiler
> (arm-xscale-linux-gnu-gcc version 4.1.0) but I'm not sure how to get it to
> recognize the tools.
>
> I was able to build for windows/cygwin with the following command:
>
>> bjam --build-dir=tmp/build-boost --toolset=gcc threading=multi
>> target-os=cygwin threadapi=pthread stage
>
> Changing 'gcc' to 'arm-xscale-linux-gnu-gcc' and 'cygwin' to 'linux' didn't
> work.
You need to configure you compiler in user-config.jam. For example:
using gcc : arm : arm-xscale-linux-gnu-gcc ;
and then use
bjam ... toolset=gcc-arm ...
When building on linux, you don't need target-os and threadapi properties.
- Volodya
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