Hi there, it's not as easy as I thought it would be. I copied the guid files in the appropriate folders in my boost/ directory. And then I tried: bjam -sTOOLS=vc-7_1 --with-guid But that doesn't work. So, how do I do that? I really have no clue about bjam, etc. Thanks in advance, Christian
"Christian Henning"
Hi there, it's not as easy as I thought it would be. I copied the guid files in the appropriate folders in my boost/ directory. And then I tried:
bjam -sTOOLS=vc-7_1 --with-guid
I also know little about bjam, but your line looks like you are using version 1 of bjam and the guid library only has scripts to be build with version 2 of bjam. Check with bjam --version I belive. For myself, if I want to just build the guid library, then I use: %BOOST_ROOT%\libs\guid\build\bjam
But that doesn't work. So, how do I do that? I really have no clue about bjam, etc.
Thanks in advance, Christian
Hope this helps. Andy.
Hi Andy, sorry but there is no --version option. When executing bjam
-help there is no version number either. But I have downloaded the
latest version of bjam. I think it was version 3.1.x and it still
doesn't work. How is it suppose to work?
Christian
On 2/19/07, Andy
"Christian Henning"
wrote in news:949801310702150917p6a002c2ld9d3546df6ccc3ef@mail.gmail.com: Hi there, it's not as easy as I thought it would be. I copied the guid files in the appropriate folders in my boost/ directory. And then I tried:
bjam -sTOOLS=vc-7_1 --with-guid
I also know little about bjam, but your line looks like you are using version 1 of bjam and the guid library only has scripts to be build with version 2 of bjam. Check with bjam --version I belive.
For myself, if I want to just build the guid library, then I use: %BOOST_ROOT%\libs\guid\build\bjam
But that doesn't work. So, how do I do that? I really have no clue about bjam, etc.
Thanks in advance, Christian
Hope this helps. Andy.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
"Christian Henning"
Hi Andy, sorry but there is no --version option. When executing bjam -help there is no version number either. But I have downloaded the latest version of bjam. I think it was version 3.1.x and it still doesn't work. How is it suppose to work?
<snip> On my computer running: D:\> set BOOST_ROOT=D:\libraries\boost_1_33_1 D:\> set BOOST_BUILD_PATH=D:\libraries\boost_1_33_1\tools\build\v2 D:\>bjam -v Boost.Jam Version 3.1.13. OS=NT. Copyright 1993-2002 Christopher Seiwald and Perforce Software, Inc. Copyright 2001 David Turner. Copyright 2001-2004 David Abrahams. Copyright 2002-2005 Rene Rivera. Copyright 2003-2005 Vladimir Prus. D:\>bjam --version Boost.Build V2 (Milestone 10) Boost.Jam 03.1.13 Note: Version 1 of bjam does not have a --version option, only version 2 Hope this helps. Andy.
Alright I'm getting the same output. I haven't know that I need to set some environmental variables. So, back to my question how do I build the guid id lib? This is what I tried: shell> set BOOST_ROOT=C:\boost shell> set BOOST_BUILD_PATH=C:\boost\tools\build\v2 shell> bjam --version Boost.Build V2 (Milestone 10) Boost.Jam 03.1.13 shell> bjam -sTOOLS=vc-7_1 --libdir=c:\boost\lib --with-guid stage C:/boost/tools/build/v1\testing.jam:12: in load rule difference unknown in module testing. C:\boost\tools\build\v2/kernel\modules.jam:259: in import C:/boost/tools/build/v2/build\project.jam:723: in project._using C:/boost/tools/build/v2/build\project.jam:748: in using project-root.jam:6: in modules.load C:/boost/tools/build/v2/build\project.jam:306: in load-jamfile C:/boost/tools/build/v2/build\project.jam:68: in load C:/boost/tools/build/v2/build\project.jam:164: in project.find C:/boost/tools/build/v2\build-system.jam:136: in load C:\boost\tools\build\v2/kernel\modules.jam:259: in import C:\boost\tools\build\v2/kernel/bootstrap.jam:153: in boost-build C:\boost\boost-build.jam:16: in module scope That obviously hasn't worked. Any ideas? Do you think I should get the latest source code tree, maybe? Thanks for you help, Christian
"Christian Henning"
Alright I'm getting the same output. I haven't know that I need to set some environmental variables. So, back to my question how do I build the guid id lib? This is what I tried:
shell> set BOOST_ROOT=C:\boost shell> set BOOST_BUILD_PATH=C:\boost\tools\build\v2 shell> bjam --version Boost.Build V2 (Milestone 10) Boost.Jam 03.1.13
This is good; it's obviously using BBv2.
shell> bjam -sTOOLS=vc-7_1 --libdir=c:\boost\lib --with-guid stage
OK, -sTOOLS=... is a BBv1-style option. You need toolset=msvc
C:/boost/tools/build/v1\testing.jam:12: in load ^^
Whoops; it seems to have picked up a v1 jamfile. I suggest cd C:\boost\tools\build del /f/s/q v1 and then try the whole thing again.
rule difference unknown in module testing.
The rest looks OK, in principle.
C:\boost\tools\build\v2/kernel\modules.jam:259: in import C:/boost/tools/build/v2/build\project.jam:723: in project._using C:/boost/tools/build/v2/build\project.jam:748: in using project-root.jam:6: in modules.load C:/boost/tools/build/v2/build\project.jam:306: in load-jamfile C:/boost/tools/build/v2/build\project.jam:68: in load C:/boost/tools/build/v2/build\project.jam:164: in project.find C:/boost/tools/build/v2\build-system.jam:136: in load C:\boost\tools\build\v2/kernel\modules.jam:259: in import C:\boost\tools\build\v2/kernel/bootstrap.jam:153: in boost-build C:\boost\boost-build.jam:16: in module scope
That obviously hasn't worked. Any ideas? Do you think I should get the latest source code tree, maybe?
Thanks for you help, Christian
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Hi there, some steps further, I guess. I did the suggested steps from David. Now my output looks like: C:\boost>bjam toolset=msvc --libdir=c:\boost\lib --with-guid stage warning: no toolsets are configured. warning: you won't be able to build C++ programs. warning: please consult the documentation. C:/boost/tools/build/v2/build\feature.jam:431: in feature.validate-value-string from module feature error: "msvc" is not a known value of feature <toolset> error: legal values: C:/boost/tools/build/v2/build\property.jam:250: in validate1 from module propert y C:/boost/tools/build/v2/build\property.jam:273: in property.validate from module property C:/boost/tools/build/v2/build\build-request.jam:176: in convert-command-line-ele ment from module build-request C:/boost/tools/build/v2/build\build-request.jam:138: in build-request.from-comma nd-line from module build-request C:/boost/tools/build/v2\build-system.jam:151: in load from module build-system C:\boost\tools\build\v2/kernel\modules.jam:259: in import from module modules C:\boost\tools\build\v2/kernel/bootstrap.jam:153: in boost-build from module C:\boost\boost-build.jam:16: in module scope from module I can assure you that I invoke vsvars32.bat and were also setting the BOOST_ROOT and BOOST_BUILD_PATH variables. Christian
Christian Henning wrote:
Hi there, some steps further, I guess. I did the suggested steps from David. Now my output looks like:
C:\boost>bjam toolset=msvc --libdir=c:\boost\lib --with-guid stage
[snip]
I can assure you that I invoke vsvars32.bat and were also setting the BOOST_ROOT and BOOST_BUILD_PATH variables.
Hi Christian, this should be --toolset=... -- HTH dave
Thanks David, the output now is: C:\boost>bjam --toolset=msvc --libdir=c:\boost\lib --with-guid stage warning: no toolsets are configured. warning: you won't be able to build C++ programs. warning: please consult the documentation. error: Unable to find file or target named error: '/boost/serialization' error: referred from project at error: 'libs/guid/build' The path %BOOST_ROOT%/boost/serialization is valid. Christian
Christian Henning wrote:
Thanks David, the output now is:
C:\boost>bjam --toolset=msvc --libdir=c:\boost\lib --with-guid stage warning: no toolsets are configured. warning: you won't be able to build C++ programs. warning: please consult the documentation.
error: Unable to find file or target named error: '/boost/serialization' error: referred from project at error: 'libs/guid/build'
The path %BOOST_ROOT%/boost/serialization is valid.
Christian _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hm, i just tried to build the guid lib. Here is what i did. (current boost from cvs + guid_v5.zip from vault) 1) Start msvc command prompt (Start/Programs/Microsoft VS XXX/Tools/Visual Studio XXX Tools/Visual Studio XXX Command Prompt) 2) set BOOST_ROOT = X:\path_to_boost 3) set BOOST_BUILD_PATH = X:\path_to_boost\tools\build\v2 3) cd into x:\path_of_guid_lib\libs\guid\build 4) bjam --toolset=msvc-8.0 link=static bjam now builds Boost.Serialization + Boost.Threads + the guid library. I had to use link=static, because there was an error building the wserialization.dll's, and i don't have time to figure out why now. But i hope this works for you, too. -- Regards, dave
Andy
"Christian Henning"
wrote in news:949801310702191703n7df5e1dat38ad33d43cbb538b@mail.gmail.com: Hi Andy, sorry but there is no --version option. When executing bjam -help there is no version number either. But I have downloaded the latest version of bjam. I think it was version 3.1.x and it still doesn't work. How is it suppose to work?
<snip>
On my computer running: D:\> set BOOST_ROOT=D:\libraries\boost_1_33_1 D:\> set BOOST_BUILD_PATH=D:\libraries\boost_1_33_1\tools\build\v2 D:\>bjam -v Boost.Jam Version 3.1.13. OS=NT. Copyright 1993-2002 Christopher Seiwald and Perforce Software, Inc. Copyright 2001 David Turner. Copyright 2001-2004 David Abrahams. Copyright 2002-2005 Rene Rivera. Copyright 2003-2005 Vladimir Prus.
It isn't the version of bjam that matters, so much...
D:\>bjam --version Boost.Build V2 (Milestone 10) Boost.Jam 03.1.13
That's what matters.
Note: Version 1 of bjam does not have a --version option, only version 2
It isn't part of bjam but of Boost.Build, which is a collection of .jam files. If Christian is trying this atop a boost-1.33.1 installation, he should type bjam --v2 --version and then, in $BOOST_ROOT/libs/guid/build, bjam --v2 -- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (4)
-
Andy
-
Christian Henning
-
David Abrahams
-
David Klein