Boost logo

Boost :

Subject: [boost] Cross compilation problem
From: Jostein Austvik Jacobsen (josteija_at_[hidden])
Date: 2009-04-15 06:06:21


I'm trying to cross compile boost 1.38 for the gumstix motherboard (ARM)
like this:

wget --tries=10
http://heanet.dl.sourceforge.net/soruceforge/boost/boost_1_38_0.tar.gz
tar xzf boost_1_38_0.tar.gz
cd boost_1_38_0
echo "using gc : `${GUMSTIXTOP}/tmp/cross/arm-angstrom-linux-gnueabi7bin/g++
-v 2>&1 | tail --1 | awk '{print $3}'`
: ${GUMSTIXTOP}/tmp/cross/arm-angstrom-linux-gnueabi7bin/g++ ; " >
tools/build/v2/user-config.jam
sudo apt-get install bjam
sudo bjam --toolset=gcc-arm --prefix=/opt/gumros install

It seems to compile correctly, but when I compile my application that
depends on Boost (I have remembered to tell it where to find the cross
compiled boost), I get this:

/home/jostein/gumstix/gumstix-oe/tmp/cross/lib/gcc/arm-
angstrom-linux-gnueabi/4.1.2/../../../../arm-angstrom-linux-gnueabi/bin/ld:
skipping incompatible /opt/gumros/lib/libboost_thread-gcc-mt-1_38.so when
searching for -lboost_thread-gcc-mt-1_38

This looks like Boost wasn't cross compiled at all (or at least
incorrectly). Are there any obvious problems with the way I'm doing this?

Eventually, does anyone use bitbake and have a working recipe for one of the
newer Boost releases (1.35+)?

Regards
Jostein


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk