Build Boost 1.50 on Windows XP for MSVS2008
Hi there, I am wondering if anyone here have built 1.50 on Windows XP for MSVS2008 and can kindly share what exact commands in command line that I should use to manaully build everything from the sorce for use with MSVS2008. I have downloaded boost 1.50 and placed it under "C:\Program Files\boost_1_50_0\" folder and can modify the folder when building. I read here that someone tried something like: cd "C:\Program Files\boost_1_50_0\" bootstrap.bat bjam.exe but I could not find "bjam.exe". I also suspect the building process might not be so simple. Thanks in advance for your help. Robert
I am wondering if anyone here have built 1.50 on Windows XP for MSVS2008 and can kindly share what exact commands in command line that I should use to manaully build everything from the sorce for use with MSVS2008.
I have downloaded boost 1.50 and placed it under "C:\Program Files\boost_1_50_0\" folder and can modify the folder when building.
I read here that someone tried something like: cd "C:\Program Files\boost_1_50_0\" bootstrap.bat bjam.exe
but I could not find "bjam.exe". I also suspect the building process might not be so simple.
Bootstrap is supposed to create bjam.exe. Look into that. John
if the compilation process is no different form 1.49 , then you can have alook at here : http://forum.ustmb.ir/thread1504.html the commands are accompanied with screeenshots , so you shouldnt have any problem using them though the article is in farsi .
Hi everyone,
After typing in command line:
bootstrap.bat
I got:
Building Boost.Build engine
"......... (my build environment info)" was unexpected at this time.
then I was automatically set to:
C:\Program Files\boost_1_50_0\tools\build\v2\engine\
Any ideas?
BTW: I can not open this link suggested:
http://forum.ustmb.ir/thread1504.html
Thanks
Robert
On Wed, Jul 18, 2012 at 1:19 PM, Master
if the compilation process is no different form 1.49 , then you can have alook at here : http://forum.ustmb.ir/thread1504.html the commands are accompanied with screeenshots , so you shouldnt have any problem using them though the article is in farsi .
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On Wed, Jul 18, 2012 at 3:00 PM, Boost lzw
Hi everyone,
After typing in command line: bootstrap.bat
I got: Building Boost.Build engine "......... (my build environment info)" was unexpected at this time.
then I was automatically set to: C:\Program Files\boost_1_50_0\tools\build\v2\engine\
Any ideas?
Are you building from a Visual Studio 2008 command prompt? John
Yes.
(1) Start->All Programs->Microsoft Visual Studio 2008->Visual Studio
Tools->Visual Studion Command Prompt
C:\Program Files\Microsoft Visul Studio 9.0\VC>
(2) C:\Program Files\Microsoft Visul Studio 9.0\VC>cd C:\Program
Files\boost_1_50_0
(3) C:\Program Files\boost_1_50_0>bootstrap.bat
then I got:
Building Boost.Build engine
"......... (my build environment info)" was unexpected at this time.
Thanks,
Robert
On Wed, Jul 18, 2012 at 3:07 PM, John Drescher
On Wed, Jul 18, 2012 at 3:00 PM, Boost lzw
wrote: Hi everyone,
After typing in command line: bootstrap.bat
I got: Building Boost.Build engine "......... (my build environment info)" was unexpected at this time.
then I was automatically set to: C:\Program Files\boost_1_50_0\tools\build\v2\engine\
Any ideas?
Are you building from a Visual Studio 2008 command prompt?
John _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On Wed, Jul 18, 2012 at 03:37:58PM -0400, Boost lzw wrote:
Yes.
(1) Start->All Programs->Microsoft Visual Studio 2008->Visual Studio Tools->Visual Studion Command Prompt
C:\Program Files\Microsoft Visul Studio 9.0\VC>
(2) C:\Program Files\Microsoft Visul Studio 9.0\VC>cd C:\Program Files\boost_1_50_0
(3) C:\Program Files\boost_1_50_0>bootstrap.bat
then I got: Building Boost.Build engine "......... (my build environment info)" was unexpected at this time.
Make sure that you have permission to work in Program Files. Consider trying to build somewhere more accessible, preferably somewhere without spaces, in case that's the reason. The output there looks strange, as I am not aware of any branding of VS where it's called 'Visul'. You do not need a VS command prompt to build Boost.Build or Boost itself, it can automatically find and use the MSVC you have. You could try going into tools\build\v2\engine and run build.bat from there. If that succeeds, copy the resulting bin.ntx86\b2.exe into the boost_1_50_0 directory and continue from there. -- Lars Viklund | zao@acc.umu.se
I am having issue running vcvars32.bat. I got the same error when running
it.
This is a known issue:
http://www.blinnov.com/2010/06/04/microsoft-was-unexpected-at-this-time/en/
I will fix it first and come back with a report.
Thanks,
Robert
On Wed, Jul 18, 2012 at 4:12 PM, Lars Viklund
On Wed, Jul 18, 2012 at 03:37:58PM -0400, Boost lzw wrote:
Yes.
(1) Start->All Programs->Microsoft Visual Studio 2008->Visual Studio Tools->Visual Studion Command Prompt
C:\Program Files\Microsoft Visul Studio 9.0\VC>
(2) C:\Program Files\Microsoft Visul Studio 9.0\VC>cd C:\Program Files\boost_1_50_0
(3) C:\Program Files\boost_1_50_0>bootstrap.bat
then I got: Building Boost.Build engine "......... (my build environment info)" was unexpected at this time.
Make sure that you have permission to work in Program Files. Consider trying to build somewhere more accessible, preferably somewhere without spaces, in case that's the reason.
The output there looks strange, as I am not aware of any branding of VS where it's called 'Visul'.
You do not need a VS command prompt to build Boost.Build or Boost itself, it can automatically find and use the MSVC you have.
You could try going into tools\build\v2\engine and run build.bat from there. If that succeeds, copy the resulting bin.ntx86\b2.exe into the boost_1_50_0 directory and continue from there.
-- Lars Viklund | zao@acc.umu.se _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
I resolved the issue and tried everthing suggested.
Here is the complete ouput error I got after runing bootstrap.bat or
\v2\engine\build.bat:
C:\boost_1_50_0\tools\build\v2\engine>build.bat
\Utilities\Bin\x86";c:\python23\.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\syst
em32\wbem;c:\program files\ati technologies\ati.ace\;c:\program
files\microsoft
sql server\80\tools\binn\;c:\program files\cvsnt;c:\Program Files\Microsoft
SQL
Server\90\Tools\binn\;C:\Program Files\TortoiseSVN\bin;C:\Program
Files\MySQL\My
SQL Server 5.0\bin;C:\Program Files\Microsoft Visual Studio
9.0\VC\bin;C:\WINDOW
S\Microsoft.NET\Framework\v3.5\;C:\Program Files\Microsoft Visual Studio
2008 SD
K\VisualStudioIntegration\Tools\Sandcastle\ProductionTools\" was unexpected
at this time.
Any idea?
Robert
On Wed, Jul 18, 2012 at 4:32 PM, Boost lzw
I am having issue running vcvars32.bat. I got the same error when running it.
This is a known issue: http://www.blinnov.com/2010/06/04/microsoft-was-unexpected-at-this-time/en/
I will fix it first and come back with a report.
Thanks, Robert
On Wed, Jul 18, 2012 at 4:12 PM, Lars Viklund
wrote: On Wed, Jul 18, 2012 at 03:37:58PM -0400, Boost lzw wrote:
Yes.
(1) Start->All Programs->Microsoft Visual Studio 2008->Visual Studio Tools->Visual Studion Command Prompt
C:\Program Files\Microsoft Visul Studio 9.0\VC>
(2) C:\Program Files\Microsoft Visul Studio 9.0\VC>cd C:\Program Files\boost_1_50_0
(3) C:\Program Files\boost_1_50_0>bootstrap.bat
then I got: Building Boost.Build engine "......... (my build environment info)" was unexpected at this time.
Make sure that you have permission to work in Program Files. Consider trying to build somewhere more accessible, preferably somewhere without spaces, in case that's the reason.
The output there looks strange, as I am not aware of any branding of VS where it's called 'Visul'.
You do not need a VS command prompt to build Boost.Build or Boost itself, it can automatically find and use the MSVC you have.
You could try going into tools\build\v2\engine and run build.bat from there. If that succeeds, copy the resulting bin.ntx86\b2.exe into the boost_1_50_0 directory and continue from there.
-- Lars Viklund | zao@acc.umu.se _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
I resolved the issue and tried everthing suggested.
Here is the complete ouput error I got after runing bootstrap.bat or \v2\engine\build.bat: C:\boost_1_50_0\tools\build\v2\engine>build.bat \Utilities\Bin\x86";c:\python23\.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\syst em32\wbem;c:\program files\ati technologies\ati.ace\;c:\program files\microsoft sql server\80\tools\binn\;c:\program files\cvsnt;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\MySQL\My SQL Server 5.0\bin;C:\Program Files\Microsoft Visual Studio 9.0\VC\bin;C:\WINDOW S\Microsoft.NET\Framework\v3.5\;C:\Program Files\Microsoft Visual Studio 2008 SD K\VisualStudioIntegration\Tools\Sandcastle\ProductionTools\" was unexpected at this time.
Any idea?
It seems that you fixed it incorrectly. Ensure that PATH variable is correct.
Thanks, Igor.
I finally fixed it. The issue is mentioned in the following link:
http://www.blinnov.com/2010/06/04/microsoft-was-unexpected-at-this-time/en/
In my case, the offender is that the value of my "System Variable->%PATH%"
was set to:
"C:\Program Files\Microsoft DirectX SDK (October 2006)\Utilities\Bin\x86";
(other paths omitted)
I remove its openning and closing quotes, like so:
C:\Program Files\Microsoft DirectX SDK (October 2006)\Utilities\Bin\x86;
(other paths omitted)
To share my experience, here is how I sucessfully build everything in boost
1_50_0 on Windows XP for MSVC2008:
(0) download "boost_1_50_0.zip" from
http://sourceforge.net/projects/boost/files/boost/1.50.0/
and unzip it to (your preferred directory, in my case):
C:\boost_1_50_0
(1) Launch Visual Studio 2008 Prompt Console Windows from:
Start->All Programs->Microsoft Visual Studio 2008->Visual Studio
Tools->Visual Studion Command Prompt
(2) cd C:\boost_1_50_0
(3) bootstrap.bat
This automatically generated b2.exe under C:\boost_1_50_0 directory
(4) .\b2
I got the following, NICE reminding prompts at its end [of step (4) ]:
The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
C:/boost_1_50_0
The following directory should be added to linker library paths:
C:\boost_1_50_0\stage\lib
The building process is suprisingly simple and user-friendly.
Thanks a lot for Boost library developers.
Robert
On Wed, Jul 18, 2012 at 5:37 PM, Igor R
I resolved the issue and tried everthing suggested.
Here is the complete ouput error I got after runing bootstrap.bat or \v2\engine\build.bat: C:\boost_1_50_0\tools\build\v2\engine>build.bat
\Utilities\Bin\x86";c:\python23\.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\syst
em32\wbem;c:\program files\ati technologies\ati.ace\;c:\program files\microsoft sql server\80\tools\binn\;c:\program files\cvsnt;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\MySQL\My SQL Server 5.0\bin;C:\Program Files\Microsoft Visual Studio 9.0\VC\bin;C:\WINDOW S\Microsoft.NET\Framework\v3.5\;C:\Program Files\Microsoft Visual Studio 2008 SD K\VisualStudioIntegration\Tools\Sandcastle\ProductionTools\" was unexpected at this time.
Any idea?
It seems that you fixed it incorrectly. Ensure that PATH variable is correct. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
I am wondering if anyone here have built 1.50 on Windows XP for MSVS2008 and can kindly share what exact commands in command line that I should use to manaully build everything from the sorce for use with MSVS2008.
I have downloaded boost 1.50 and placed it under "C:\Program Files\boost_1_50_0\" folder and can modify the folder when building.
I read here that someone tried something like: cd "C:\Program Files\boost_1_50_0\" bootstrap.bat bjam.exe
but I could not find "bjam.exe". I also suspect the building process might not be so simple.
If try "b2" instead of "bjam", does it work?
participants (5)
-
Boost lzw
-
Igor R
-
John Drescher
-
Lars Viklund
-
Master