Re: [Boost-users] Weird cross compiling issue
From: Rene Rivera [mailto:grafik.list@redshift-software.com] Sent: 23 January 2006 16:21 To: boost-users@lists.boost.org Subject: Re: [Boost-users] Weird cross compiling issue
Hello all,
I am cross compiling Boost to an embedded Linux Arm architecture. I reported a problem a week or so ago with failures in some of the
James Hughes wrote: libraries which I
was unable to solve, and have a bit more information.
One of the issues appears with the serialisation library. Although I am compiling for Arm, the serialisation libs end up as Intel X86 binaries, even though all the other successfully compiled libs are ARM. This then leads to problems elsewhere with libraries that appear to need the serialisation libs.
I can only think that there is an issue with the make system to do with serialisation area.
Anyone have any comments/thoughts?
Well I don't see anything that would make it not build with the same compiler as the others. Are you sure it's not just a leftover from some previous build? Could you do a build with the "-d+2" option to see which commands it's invoking to compile? To verify that it's always using the cross compiler.
I thought it odd too. I manually deleted all the files flagged as Intel binaries, then re-did the build, and hey presto, they reappeared - as Intel binaries!! I will try the debug option you suggest.
In addition, when I do a build to a particular directory:
bjam "-sGCC_ROOT_DIRECTORY=/opt/montavista/mobilinux/devkit/arm/iwmmxt_le" "-sGCC=iwmmxt_le-gcc" "-sGXX=iwmmxt_le-g++" stage
the stage folder is created, in which is a lib folder, in which are all the binaries (including the defective Intel ones). However, I would also expect some header files somewhere - should there also be a h (or header) folder next to lib? If not where are the headers I need to include in my apps using Boost?
The includes only show up if you do "install". Since you obviously don't want to obliterate your system Boost install you'll also have to specify the "--prefix" of where to install :-)
Thanks - that's what I needed to know. I pressume I could simply copy the headers from the boost directory to where I need them - is this all the build/install does? James
James Hughes wrote:
Thanks - that's what I needed to know. I pressume I could simply copy the headers from the boost directory to where I need them - is this all the build/install does?
Yes, that's all it does. The "stage" is meant for those who just copy straight into a VC system and hence don't need to "install". -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - Grafik/jabber.org
participants (2)
-
James Hughes
-
Rene Rivera