libboost and asio

Mick Davis mickd at goanna.iinet.net.au
Wed Mar 16 15:48:34 UTC 2011


I've not actually used it, but my tools/build/v2/user-config.jam is;

using gcc : rtems4.10 : /opt/arm-rtems4.10/bin/arm-rtems4.10-g++ :
  <compileflags>-mcpu=arm926ej-s
  <compileflags>-mfpu=vfp
  <compileflags>-mfloat-abi=soft
  <compileflags>-fno-strict-aliasing
 
<compileflags>-I/home/mick/xarm/cpc2/rtems/V000/arm-rtems4.10/cpc2/lib/include
  <compileflags>-I/home/mick/xarm/cpc2/bzip2/include
  <compileflags>-I/home/mick/xarm/cpc2/zlib/include
  <linkflags>-L/home/mick/xarm/cpc2/zlib/lib
  <linkflags>-L/home/mick/xarm/cpc2/bzip2/lib
  ;

And then

bjam -d2 \
--toolset=gcc-rtems4.10 \
'-sBUILD=release static multi/single' \
link=static \
--prefix=/home/mick/xarm/cpc2/boost \
--layout=system \
--with-regex \
--with-date_time \
install



On 16/03/11 23:18, Eric Norum wrote:
> I don't understand how that works.  How do the target-specific flags get passed on to the compiler?
>
> For example, when I build an application for an RTEMS-mvme3100 target I see compiler flags like:
> 	powerpc-rtems4.10-g++ -B/usr/local/rtems/rtems-4.10/powerpc-rtems4.10/mvme3100/lib/ -specs bsp_specs -qrtems -mcpu=powerpc -msoft-float
> but if I build for an RTEMS-mvme2100 target I see
> 	powerpc-rtems4.10-g++ -B/usr/local/rtems/rtems-4.10/powerpc-rtems4.10/mvme2100/lib/ -specs bsp_specs -qrtems -mcpu=603e
>
> So with the 'using' line shown below, what header files are used for building boost and for what CPU architecture are the objects built?
>
> On Mar 16, 2011, at 12:41 AM, Sebastian Huber wrote:
>
>> On 03/15/2011 09:42 PM, Eric Norum wrote:
>>> Has anyone looked into proting the boost (http://www.boost.org/) and asio (http://think-async.com/) packages to RTEMS?
>>> Merging the boost and RTEMS build systems looks like a lot of work -- I'm hoping that I'm mistaken in this, though.
>>>
>>> Thanks,
>>
>> It was quite easy to build boost for RTEMS.  You have to modify the file:
>>
>> tools/build/v2/user-config.jam
>>
>> Use something like this:
>>
>> using gcc : 4.5.2 : powerpc-rtems4.11-g++ ;
>>
>> A lot of modules work well after minor modifications in the config header.  I
>> use mainly the header only parts.
>>
>> --
>> Sebastian Huber, embedded brains GmbH
>>
>> Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
>> Phone   : +49 89 18 90 80 79-6
>> Fax     : +49 89 18 90 80 79-9
>> E-Mail  : sebastian.huber at embedded-brains.de
>> PGP     : Public key available on request.
>>
>> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>> _______________________________________________
>> rtems-users mailing list
>> rtems-users at rtems.org
>> http://www.rtems.org/mailman/listinfo/rtems-users
>

-- 

Mick Davis
Goanna Technologies Pty Ltd
+61 8 9444 2634

"Shock your lizard today!"



More information about the users mailing list