[Regex] Has build location changed between 1.34.1 and 1.64.0 ?
I've just added Boost Regex to a new project. It is the first time I've done that for quite a long time (several years) and I'm left wondering whether Regex's standard build location has been changed, or whether I've missed a detail in the instructions.
The last one I did was Boost version 1.34.1, under Visual Studio 6.
The one I have just done is Boost version 1.64.0, under Visual Studio 12, aka Visual Studio 2013.
To build 1.34.1 (on VC6) I run "bjam --toolset=msvc --with-regex stage".
This creates two folders - "bin.v2" and "stage".
Bin.v2 is where all the intermediate files are written.
Stage/lib is where the final outputs are written. There are a number of different ones built; for all the various static/dynamic, single/multi-threading, debug/release options.
Because of the auto-link stuff I just #include
AMDG On 05/22/2017 04:25 AM, Kerry, Richard via Boost-users wrote:
To build 1.64.0 I've followed the current instructions. I ran "b2 regex", which built a dll, which is not what I want. I then ran "b2 regex link=static", which build the static lib I wanted. However, the lib is left in a folder a long way down from the bin.v2 folder, which is where I expected it to be. It's in bin.v2\libs\regex\build\msvc-12\debug\link-static\threading-multi.
It should be --with-regex. b2 regex builds the regex library, but doesn't try to install in. In Christ, Steven Watanabe
Thank you, that's done it. Though I think the documentation is not clear about this. See my other reply. Regards, Richard. Richard Kerry BNCS Engineer, SI SOL Telco & Media Vertical Practice T: +44 (0)20 3618 2669 M: +44 (0)7812 325518 4 Triton Square, Regent’s Place, London NW1 3HG richard.kerry@atos.net This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. ________________________________________ From: Boost-users [boost-users-bounces@lists.boost.org] on behalf of Steven Watanabe via Boost-users [boost-users@lists.boost.org] Sent: 22 May 2017 17:52 To: boost-users@lists.boost.org Cc: Steven Watanabe Subject: Re: [Boost-users] [Regex] Has build location changed between 1.34.1 and 1.64.0 ? AMDG On 05/22/2017 04:25 AM, Kerry, Richard via Boost-users wrote:
To build 1.64.0 I've followed the current instructions. I ran "b2 regex", which built a dll, which is not what I want. I then ran "b2 regex link=static", which build the static lib I wanted. However, the lib is left in a folder a long way down from the bin.v2 folder, which is where I expected it to be. It's in bin.v2\libs\regex\build\msvc-12\debug\link-static\threading-multi.
It should be --with-regex. b2 regex builds the regex library, but doesn't try to install in. In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users Atos, Atos Consulting, Worldline and Canopy The Open Cloud Company are trading names used by the Atos group. The following trading entities are registered in England and Wales: Atos IT Services UK Limited (registered number 01245534), Atos Consulting Limited (registered number 04312380), Atos Worldline UK Limited (registered number 08514184) and Canopy The Open Cloud Company Limited (registration number 08011902). The registered office for each is at 4 Triton Square, Regent’s Place, London, NW1 3HG.The VAT No. for each is: GB232327983. This e-mail and the documents attached are confidential and intended solely for the addressee, and may contain confidential or privileged information. If you receive this e-mail in error, you are not authorised to copy, disclose, use or retain it. Please notify the sender immediately and delete this email from your systems. As emails may be intercepted, amended or lost, they are not secure. Atos therefore can accept no liability for any errors or their content. Although Atos endeavours to maintain a virus-free network, we do not warrant that this transmission is virus-free and can accept no liability for any damages resulting from any virus transmitted. The risks are deemed to be accepted by everyone who communicates with Atos by email.
On 22/05/2017 22:25, Kerry, Richard wrote:
To build 1.34.1 (on VC6) I run "bjam --toolset=msvc --with-regex stage". [...] To build 1.64.0 I've followed the current instructions. I ran "b2 regex", which built a dll, which is not what I want. I then ran "b2 regex link=static", which build the static lib I wanted. However, the lib is left in a folder a long way down from the bin.v2 folder, which is where I expected it to be.
It's unsurprising that a different command line produces different output. Your original 1.34 command line is still the correct one. (Although you'd probably use b2 rather than bjam. The options are the same.) I'm curious which "current instructions" you're referring to here.
It's unsurprising that a different command line produces different output.
Given that nearly ten years have passed between 1.34.1 (July 2007) and 1.64.0 (April 2017), and the command has changed from bjam to b2, I had no particular reason to assume that the parameters should be the same.
Your original 1.34 command line is still the correct one. (Although you'd probably use b2 rather than bjam. OK, thank you. Though it doesn't appear to need "stage" to put its output in "stage\lib". And it didn't build all variants, which I think the older one did. Not that I need all, just the static one, I'm just noting that it's different.
The options are the same.) I didn't know that. It's a different command (and I haven't noticed anything that states that it is essentially the same), so I looked at its options [1] and it doesn't show "--with-xxx", just the ability to build a specific target, so I did that. And I then added "link=static" to get the static one built, since the default was to build just the dll variant.
I'm curious which "current instructions" you're referring to here. Starting with "Getting Started" [2] and "Getting Started on Windows" [3] led me to "Simplified Build From Source", which just says "bootstrap" followed by "b2". I knew I didn't want to build everything (I remember from last time that it takes ages, and I don't need anything else) so I followed the link to the Boost.Build Documentation [1] to find how to specify just regex. As noted above that page doesn't mention "--with-", so the obvious option was just to list "regex", with the result as previously noted.
What I had not done at that time was to look at regex's own page on "Building and Installing the Library" [4]. On looking there just now I find that it says to use bjam, but then goes on to link to the "Getting started guide" [2]. Hence still no mention of "--with-", or even b2. Regards, Richard. [1] http://www.boost.org/build/doc/html/bbv2/overview/invocation.html [2]http://www.boost.org/doc/libs/1_64_0/more/getting_started/index.html [3]http://www.boost.org/doc/libs/1_64_0/more/getting_started/windows.html [4]http://www.boost.org/doc/libs/1_64_0/libs/regex/doc/html/boost_regex/install... Richard Kerry BNCS Engineer, SI SOL Telco & Media Vertical Practice T: +44 (0)20 3618 2669 M: +44 (0)7812 325518 4 Triton Square, Regent’s Place, London NW1 3HG richard.kerry@atos.net This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. ________________________________________ From: Boost-users [boost-users-bounces@lists.boost.org] on behalf of Gavin Lambert via Boost-users [boost-users@lists.boost.org] Sent: 23 May 2017 01:54 To: boost-users@lists.boost.org Cc: Gavin Lambert Subject: Re: [Boost-users] [Regex] Has build location changed between 1.34.1 and 1.64.0 ? On 22/05/2017 22:25, Kerry, Richard wrote:
To build 1.34.1 (on VC6) I run "bjam --toolset=msvc --with-regex stage". [...] To build 1.64.0 I've followed the current instructions. I ran "b2 regex", which built a dll, which is not what I want. I then ran "b2 regex link=static", which build the static lib I wanted. However, the lib is left in a folder a long way down from the bin.v2 folder, which is where I expected it to be.
It's unsurprising that a different command line produces different output. Your original 1.34 command line is still the correct one. (Although you'd probably use b2 rather than bjam. The options are the same.) I'm curious which "current instructions" you're referring to here. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users Atos, Atos Consulting, Worldline and Canopy The Open Cloud Company are trading names used by the Atos group. The following trading entities are registered in England and Wales: Atos IT Services UK Limited (registered number 01245534), Atos Consulting Limited (registered number 04312380), Atos Worldline UK Limited (registered number 08514184) and Canopy The Open Cloud Company Limited (registration number 08011902). The registered office for each is at 4 Triton Square, Regent’s Place, London, NW1 3HG.The VAT No. for each is: GB232327983. This e-mail and the documents attached are confidential and intended solely for the addressee, and may contain confidential or privileged information. If you receive this e-mail in error, you are not authorised to copy, disclose, use or retain it. Please notify the sender immediately and delete this email from your systems. As emails may be intercepted, amended or lost, they are not secure. Atos therefore can accept no liability for any errors or their content. Although Atos endeavours to maintain a virus-free network, we do not warrant that this transmission is virus-free and can accept no liability for any damages resulting from any virus transmitted. The risks are deemed to be accepted by everyone who communicates with Atos by email.
AMDG On 05/23/2017 04:59 AM, Kerry, Richard via Boost-users wrote:
It's unsurprising that a different command line produces different output.
Given that nearly ten years have passed between 1.34.1 (July 2007) and 1.64.0 (April 2017), and the command has changed from bjam to b2, I had no particular reason to assume that the parameters should be the same.
Your original 1.34 command line is still the correct one. (Although you'd probably use b2 rather than bjam. OK, thank you. Though it doesn't appear to need "stage" to put its output in "stage\lib". And it didn't build all variants, which I think the older one did. Not that I need all, just the static one, I'm just noting that it's different.
Right. The defaults have been changed somewhat.
The options are the same.) I didn't know that. It's a different command (and I haven't noticed anything that states that it is essentially the same), so I looked at its options [1] and it doesn't show "--with-xxx", just the ability to build a specific target, so I did that. And I then added "link=static" to get the static one built, since the default was to build just the dll variant.
I'm curious which "current instructions" you're referring to here. Starting with "Getting Started" [2] and "Getting Started on Windows" [3] led me to "Simplified Build From Source", which just says "bootstrap" followed by "b2". I knew I didn't want to build everything (I remember from last time that it takes ages, and I don't need anything else) so I followed the link to the Boost.Build Documentation [1] to find how to specify just regex. As noted above that page doesn't mention "--with-", so the obvious option was just to list "regex", with the result as previously noted.
The --with-xxx option is listed farther down in the Getting Started Guide. http://www.boost.org/doc/libs/1_64_0/more/getting_started/windows.html#invok... It isn't listed in the Boost.Build documentation because it's project specific.
What I had not done at that time was to look at regex's own page on "Building and Installing the Library" [4]. On looking there just now I find that it says to use bjam, but then goes on to link to the "Getting started guide" [2]. Hence still no mention of "--with-", or even b2.
In Christ, Steven Watanabe
participants (3)
-
Gavin Lambert
-
Kerry, Richard
-
Steven Watanabe