[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-build
Subject:    Re: [Boost-build] How to build boost libraries of which the names get flag g on it?
From:       PJB <darthpjb () gmail ! com>
Date:       2015-02-15 15:21:31
Message-ID: CABFdgh7mgk-0ygcsZzehDxXC3-ZSbvin3zizz0QodJd=9=62Yw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,

I've had a few problems over the years running the build for boost.
The command line I use is:
vs2010

*b2 toolset=msvc-10.0 --stagedir=stage\x32 variant=debug,release
threading=multi link=static runtime-link=static --with-date_time
--with-thread --with-system --with-chrono --with-atomic stage*
vs2013

*b2 toolset=msvc-12.0 --stagedir=stage\x32 variant=debug,release
threading=multi link=static runtime-link=static --with-date_time
--with-thread --with-system --with-chrono --with-atomic stage*
vs2015

*b2 toolset=msvc-14.0 --stagedir=stage\x32 variant=debug,release
threading=multi link=static runtime-link=static --with-date_time
--with-thread --with-system --with-chrono --with-atomic stage*


64 bit

using the 64 bit visual-studio command prompt run the following command in
the boost directory
vs2010

*b2 toolset=msvc-10.0 --stagedir=stage\x64 address-model=64
variant=debug,release threading=multi link=static runtime-link=static
--with-date_time --with-thread --with-system --with-chrono --with-atomic
stage*
vs2013

*b2 toolset=msvc-12.0 --stagedir=stage\x64 address-model=64
variant=debug,release threading=multi link=static runtime-link=static
--with-date_time --with-thread --with-system --with-chrono --with-atomic
stage*
vs2015

*b2 toolset=msvc-14.0 --stagedir=stage\x64 address-model=64
variant=debug,release threading=multi link=static runtime-link=static
--with-date_time --with-thread --with-system --with-chrono --with-atomic
stage*

When the task is completed the 64bit libraries will be found in
<boostDIR>\stage\lib\x64\lib

These commands are broken down as follows:
*toolset=msvc-14.0*

*The version of visual studio-compile to use.*

* --stagedir=stage\x64*

*The output directory for the lib-files*

* address-model=64*

*This is used to instruct B2 to compile 64-bit libraries*

* variant=debug,release*

*This will instruct B2 to build both the release and debug libs*

* threading=multi*

*Used to instruct boost to use multi-threading - I'd recommend using it
unless you are building a single-threaded software*

* link=static *

*Static output Lib files (rather than DLLs)*

*runtime-link=static*

*Outputs the static-libraries, rather than dynamic libraries with
static-wrappers*

* --with-date_time --with-thread --with-system --with-chrono --with-atomic
stage*


*Using the --with-library instructs B2 to only build these specific
libraries.If you know exactly what libraries you want to compile this can
save you hours of compile time. If you don't know what you need, omit this
- it will build everything.*

On 13 February 2015 at 19:09, 許 善閎 <iscream.frank@hotmail.com> wrote:

> I am trying boost_1_57 on Windows 8_1. I have downloaded the prebuilt msvc
> boost library. Now I want to use tdm-gcc to recompiled it, but when I saw
> the output files, the name of debug version library file only with flag d
> on it, not like the prebuilt boost library I downloaded, the filenames are
> with flag g and d on them. I've already tried several combinations of options
> and properties like the command below:
> b2 --build-dir=D:\tmp --stagedir=. toolset=gcc address-model=32
> variant=debug runtime-debugging=on cxxflags="-g3 -DDebug=1
> -D_GLIBCXX_DEBUG" stage
> But the library files I got,  of which names are still only d flag on them.
> I've learned programming for some days, but I know not much things about
> "make" "rule" etc.
> Could anyone tell me how to do?
> Thank you!  : )
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
>

[Attachment #5 (text/html)]

<div dir="ltr">Hello,<br><br>I&#39;ve had a few problems over the years running the \
build for boost.<br>The command line I use is:<br><h4 \
style="color:rgb(0,0,0);margin:0px 0px \
0.3em;overflow:hidden;padding-top:0.5em;padding-bottom:0.17em;border-bottom-style:none \
;width:auto;font-size:14.8480005264282px;font-family:sans-serif;line-height:19.2000007 \
629395px;background-image:none;background-repeat:initial"><span>vs2010</span></h4><p \
style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><b>b2 \
toolset=msvc-10.0 --stagedir=stage\x32 variant=debug,release threading=multi \
link=static runtime-link=static --with-date_time --with-thread --with-system \
--with-chrono --with-atomic stage</b></p><h4 style="color:rgb(0,0,0);margin:0px 0px \
0.3em;overflow:hidden;padding-top:0.5em;padding-bottom:0.17em;border-bottom-style:none \
;width:auto;font-size:14.8480005264282px;font-family:sans-serif;line-height:19.2000007 \
629395px;background-image:none;background-repeat:initial"><span>vs2013</span></h4><p \
style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><b>b2 \
toolset=msvc-12.0 --stagedir=stage\x32 variant=debug,release threading=multi \
link=static runtime-link=static --with-date_time --with-thread --with-system \
--with-chrono --with-atomic stage</b></p><h4 style="color:rgb(0,0,0);margin:0px 0px \
0.3em;overflow:hidden;padding-top:0.5em;padding-bottom:0.17em;border-bottom-style:none \
;width:auto;font-size:14.8480005264282px;font-family:sans-serif;line-height:19.2000007 \
629395px;background-image:none;background-repeat:initial"><span>vs2015</span></h4><p \
style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><b>b2 \
toolset=msvc-14.0 --stagedir=stage\x32 variant=debug,release threading=multi \
link=static runtime-link=static --with-date_time --with-thread --with-system \
--with-chrono --with-atomic stage</b></p><p style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><br></p><h4 \
style="color:rgb(0,0,0);margin:0px 0px \
0.3em;overflow:hidden;padding-top:0.5em;padding-bottom:0.17em;border-bottom-style:none \
;width:auto;font-size:14.8480005264282px;font-family:sans-serif;line-height:19.2000007629395px;background-image:none;background-repeat:initial"><span>64 \
bit</span></h4><p style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px">using \
the 64 bit visual-studio command prompt run the following command in the boost \
directory  <br></p><h4 style="color:rgb(0,0,0);margin:0px 0px \
0.3em;overflow:hidden;padding-top:0.5em;padding-bottom:0.17em;border-bottom-style:none \
;width:auto;font-size:14.8480005264282px;font-family:sans-serif;line-height:19.2000007 \
629395px;background-image:none;background-repeat:initial"><span>vs2010</span></h4><p \
style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><b>b2 \
toolset=msvc-10.0 --stagedir=stage\x64 address-model=64 variant=debug,release \
threading=multi link=static runtime-link=static --with-date_time --with-thread \
--with-system --with-chrono --with-atomic stage</b></p><h4 \
style="color:rgb(0,0,0);margin:0px 0px \
0.3em;overflow:hidden;padding-top:0.5em;padding-bottom:0.17em;border-bottom-style:none \
;width:auto;font-size:14.8480005264282px;font-family:sans-serif;line-height:19.2000007 \
629395px;background-image:none;background-repeat:initial"><span>vs2013</span></h4><p \
style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><b>b2 \
toolset=msvc-12.0 --stagedir=stage\x64 address-model=64 variant=debug,release \
threading=multi link=static runtime-link=static --with-date_time --with-thread \
--with-system --with-chrono --with-atomic stage</b></p><h4 \
style="color:rgb(0,0,0);margin:0px 0px \
0.3em;overflow:hidden;padding-top:0.5em;padding-bottom:0.17em;border-bottom-style:none \
;width:auto;font-size:14.8480005264282px;font-family:sans-serif;line-height:19.2000007 \
629395px;background-image:none;background-repeat:initial"><span>vs2015</span></h4><p \
style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><b>b2 \
toolset=msvc-14.0 --stagedir=stage\x64 address-model=64 variant=debug,release \
threading=multi link=static runtime-link=static --with-date_time --with-thread \
--with-system --with-chrono --with-atomic stage</b></p><p style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px">When \
the task is completed the 64bit libraries will be found in \
&lt;boostDIR&gt;\stage\lib\x64\lib<br><br>These commands are broken down as \
follows:<br><b style="font-size:12.8000001907349px;line-height:19.2000007629395px">toolset=msvc-14.0</b></p><p \
style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><i>The \
version of visual studio-compile to use.</i></p><p style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><b \
style="font-size:12.8000001907349px;line-height:19.2000007629395px">  \
--stagedir=stage\x64</b></p><p style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><i>The \
output directory for the lib-files</i></p><p style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><b \
style="font-size:12.8000001907349px;line-height:19.2000007629395px">  \
address-model=64</b></p><p style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><span \
style="font-size:12.8000001907349px;line-height:19.2000007629395px"><i>This is used \
to instruct B2 to compile 64-bit libraries</i></span></p><p style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><b \
style="font-size:12.8000001907349px;line-height:19.2000007629395px">  \
variant=debug,release</b></p><p style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><span \
style="font-size:12.8000001907349px;line-height:19.2000007629395px"><i>This will \
instruct B2 to build both the release and debug libs</i></span></p><p \
style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><b \
style="font-size:12.8000001907349px;line-height:19.2000007629395px">  \
threading=multi</b></p><p style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><span \
style="font-size:12.8000001907349px;line-height:19.2000007629395px"><i>Used to \
instruct boost to use multi-threading - I&#39;d recommend using it unless you are \
building a single-threaded software</i></span></p><p style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><b \
style="font-size:12.8000001907349px;line-height:19.2000007629395px">  link=static  \
</b></p><p style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><span \
style="font-size:12.8000001907349px;line-height:19.2000007629395px"><i>Static output \
Lib files (rather than DLLs)</i></span></p><p style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><b \
style="font-size:12.8000001907349px;line-height:19.2000007629395px">runtime-link=static</b></p><p \
style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><span \
style="font-size:12.8000001907349px;line-height:19.2000007629395px"><i>Outputs the \
static-libraries, rather than dynamic libraries with static-wrappers</i></span></p><p \
style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><b \
style="font-size:12.8000001907349px;line-height:19.2000007629395px">  \
--with-date_time --with-thread --with-system --with-chrono --with-atomic \
stage</b><br></p><p style="margin:0.4em 0px \
0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><i>Using \
the --with-<b>library </b>instructs B2 to only build these specific libraries.<br>If \
you know exactly what libraries you want to compile this can save you <b>hours of \
compile time. </b>If you don&#39;t know what you need, omit this - it will build \
everything.</i></p></div><div class="gmail_extra"><br><div class="gmail_quote">On 13 \
February 2015 at 19:09, 許 善閎 <span dir="ltr">&lt;<a \
href="mailto:iscream.frank@hotmail.com" \
target="_blank">iscream.frank@hotmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">


<div><div dir="ltr"><font color="#000000" \
style="font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">I \
am trying boost_1_57 on Windows 8_1. I have downloaded the prebuilt msvc boost \
library. Now I want to use tdm-gcc to recompiled it, but when I saw the output files, \
the name of debug version library file only with flag d on it, not like the prebuilt \
boost library I downloaded, the filenames are with flag g and d on them. I&#39;ve \
already tried several  </font><span \
style="font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">combinations \
of  </span><font color="#000000" \
style="font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">options \
and properties like the command below:<br>b2 --build-dir=D:\tmp --stagedir=. \
toolset=gcc address-model=32 variant=debug  <span \
style="line-height:18.2000007629395px">runtime</span><span \
style="line-height:18.2000007629395px">-</span><span \
style="line-height:18.2000007629395px">debuggin<u></u>g=on</span>  cxxflags=&quot;-g3 \
-DDebug=1 -D_GLIBCXX_DEBUG&quot; stage<br></font><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">But \
the library files I got,    of which  names are still only d flag on them.</span><br \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">I&#39;ve \
learned programming for some days, but I know not much things about &quot;make&quot; \
&quot;rule&quot; etc.</span><br \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">Could \
anyone tell me how to do?  </span><br \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">Thank \
you!   : )</span> 		 	   		  </div></div> \
<br>_______________________________________________<br> Unsubscribe &amp; other \
changes: <a href="http://lists.boost.org/mailman/listinfo.cgi/boost-build" \
target="_blank">http://lists.boost.org/mailman/listinfo.cgi/boost-build</a><br> \
<br></blockquote></div><br></div>



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic