|
Boost Users : |
Subject: Re: [Boost-users] Some questions about cross-compiling boost
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-02-26 10:27:12
ç£ å¨ wrote:
> Hi,everyone.
> The version of boost I used is 1.38. I have tried to cross-compile the boost library for a
> platform with ARM and Linux, but I failed. What I did is listed following:
>
> #cd mypath/boost_1_38_0/tools/jam/src
> #./build/build.sh
>
> By doing these, I got a executable file named bjam in the folder "bin.linuxx86". I copied the bjam
> to the directory "mypath/boost_1_38_0/", then :
>
> #cd mypath/boost_1_38_0
> #./bjam "-sGCC_ROOT_DIRECTORY=/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le"
> #"-sGCC=arm_v5t_le-gcc" "-sGXX=arm_v5t_le-g++"
> #"-sGCC_BIN_DIRECTORY=/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin"
All of the -s options above have no effect, since probably 1.34
> finally, there were some libraries gengerated in "usr/local/lib". Unfortunately, these libraries
> just can be used in the X86 platform but not ARM platform. Maybe my method was incorrect. Could
> anyone give me some advices to deal with my problem? Thanks! Best wishes Zou
See:
http://www.boost.org/boost-build2/doc/html/bbv2/tasks/crosscompile.html
- 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