Boost logo

Boost-Build :

Subject: Re: [Boost-build] cross compiling linux boost libraries
From: Madhukar Sandi (Madhukar.Sandi_at_[hidden])
Date: 2010-07-01 23:34:05


Thank you Moritz,

I am able to cross compile using ./bjam --toolset=gcc-mips. But when im seeing in library that was build for intel only

The following log

[root_at_infba01388 lib]# file libboost_math_tr1l.so.1.43.0
libboost_math_tr1l.so.1.43.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (GNU/Linux), dynamically linked, not stripped
[root_at_infba01388 lib]# file libboost_thread.so.1.43.0
libboost_thread.so.1.43.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (GNU/Linux), dynamically linked, not stripped

Cheers
Madhukar Sandi

-----Original Message-----
From: boost-build-bounces_at_[hidden] [mailto:boost-build-bounces_at_[hidden]] On Behalf Of Moritz Hassert
Sent: Thursday, July 01, 2010 5:54 PM
To: Boost.Build developer's and user's list
Subject: Re: [Boost-build] cross compiling linux boost libraries

Hi,

Madhukar Sandi wrote:

> using gcc : : mipsel-linux-g++ ;

I think you should give it a version. As far as I understand this does not
have to be a number, you could, for example say:
using gcc : mipsel : mipsel-linux-g++ ;

> [root_at_infba01388 boost_1_43_0]# ./bjam tooset-module=gcc-mips

Then you must call bjam with
./bjam --toolset=gcc-[YOUR_VERSION]
using my example above would be
./bjam --toolset=gcc-mipsel

But maybe the version 'mips' is somehow autodetected (I never had to do with
that target). Then, all you need to do is
./bjam --toolset=gcc-mips

Greetings
Moritz

Geschaeftsfuehrer: Dipl.-Inform. Christopher Asp
Amtsgericht Mannheim HRB 105845
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

______________________________________________________________________

This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

______________________________________________________________________


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