Subject: Re: [Boost-build] cross compiling
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-10-15 23:56:56
On 10/15/2012 04:39 PM, Larry E. Ramey wrote:
> OK, we are almost there. When I execute now, it seems to recognize msvc and arm as a valid combo. But for some reason it is trying to execute the .rsp files, which of course windows doesn't know how to run and thus brings up the "how would you like to open this file" dialog.
The problem is that the compiler is expanding to nothing
(thus leaving the .rsp as the first component on the command line).
This indicates that $(cpu-conditions) isn't matching anything.
I'm not sure why. You might want to add
ECHO cpu-conditions: $(cpu-conditions) ;
before all the toolset.flags calls to check
that it has the expected value. If that
looks okay, you can try --debug-building
to check the build properties. (This will generate
a ridiculous amount of output. You can use
--with-system to limit it to one library)
> Its just my wild guess but I think maybe there should be a $VAR_NAME in front of the files ( has_icu_test.obj.rsp is the first one) that executes that file (probably cmd.exe or something?).
> I'm happy to try to read how to fix this, but the boost build docs are pretty.... obscure. :)
One problem is that you created a special toolset
version for msvc. Just use 11.0 as the version
and pass architecture=arm when building.
In summary, what you should have is:
using msvc : 11.0 ;
./b2 toolset=msvc-11.0 architecture=arm link=shared threading=multi
runtime-link=shared variant=debug,release --without-context
(I'm being very explicit here. Some of this can be abbreviated.)
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk