List Info

Thread: Re: question about boost includes on, cygwin/win32




Re: question about boost includes on, cygwin/win32
country flaguser name
United States
2007-08-09 10:04:45
Ray Lambert wrote:
lists.boost.org" type="cite">

  
Thanks, that worked very well.  It still has to be manually updated but at
least now it only needs to be updated in one place (and committed).

I had to change the command though to <target-os>windows and to use a full
windows path.  I guess I'm using a somewhat mixed environment; I'm
building with <target-os>windows but using cygwin's gcc (which is the only
gcc I have installed).  This is the final command that I used (in
Jamroot):

  project
      : requirements
          <target-os>windows:<include>d:/cygwin/usr/include/boost-1_33_1
          <target-os>linux:<library>rt
      ;
  
(The last requirement is for my linux builds, of course.)
  

Hmmm... replying to myself here...

I *thought* I had tested that last part ("&lt;target-os>linux:&lt;library&gt;rt") but it turns out that it doesn't work. ; I get an error saying it can't find "rt" (but "[ lib rt ]" on the "exe" line works fine).&nbsp; I had to use this instead (which did work):

&nbsp; &nbsp; project
  ;   &nbsp;  : requirements
   ; &nbsp; &nbsp;  &nbsp;  &lt;target-os>windows:<include>d:/cygwin/usr/include/boost-1_33_1
&nbsp;    &nbsp; &nbsp; &nbsp;  <target-os>linux:<linkflags>-lrt
 &nbsp;   &nbsp;  ;

*Should* "<library>rt" have worked?

Thanks again,

~ray

Re: question about boost includes on, cygwin/win32
user name
2007-08-09 10:23:53
Ray Lambert wrote:

> Ray Lambert wrote:
>> Thanks, that worked very well.  It still has to be
manually updated but
>> at least now it only needs to be updated in one
place (and committed).
>>
>> I had to change the command though to
<target-os>windows and to use a
>> full
>> windows path.  I guess I'm using a somewhat mixed
environment; I'm
>> building with <target-os>windows but using
cygwin's gcc (which is the
>> only
>> gcc I have installed).  This is the final command
that I used (in
>> Jamroot):
>>
>>   project
>>       : requirements
>>          
<target-os>windows:<include>d:/cygwin/usr/includ
e/boost-1_33_1
>>           <target-os>linux:<library>rt
>>       ;
>>   
>> (The last requirement is for my linux builds, of
course.)
>>   
> 
> Hmmm... replying to myself here...
> 
> I *thought* I had tested that last part
("<target-os>linux:<library>rt")
> but it turns out that it doesn't work.  I get an error
saying it can't
> find "rt" (but "[ lib rt ]" on the
"exe" line works fine).  I had to use
> this instead (which did work):
> 
>     project
>         : requirements
>            
<target-os>windows:<include>d:/cygwin/usr/includ
e/boost-1_33_1
>            
<target-os>linux:<linkflags>-lrt
>         ;
> 
> *Should* "<library>rt" have worked?

No. <library> is a dependency feature and the value of
it should
be a name of a target. If you don't declare target named
'rt' in your
Jamfile, then

        <library>rt

won't work. You can use:

        <target-os>linux:<find-library>rt

though.

- Volodya


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )