Hi,

Could you be patient to have a look on my steps from
install boost to build the example "hello"? I consider
I did them according to the guides, but still get an
error as building the example:((

warning: no toolsets are configured.                            warning: you
won't be able to build C++ programs.            warning: please
consult the documentation.
                                                
/home/hnn/boost/tools/build/v2/build/targets.jam:1245:
in construct from moduleobject(typed-target)@1
                                                        
error: unable to construct ./hello                                      
............
 
My steps are:

 1  Check out Boost                             
- cvs
-d:pserver:[EMAIL PROTECTED]:/cvsroot/boost
login
                                                
- cvs -z3
-d:pserver:[EMAIL PROTECTED]:/cvsroot/boost
co -p boost

  (Afterwards, <root of boost> =/home/hnn/boost )       
                                
 2  Build and install Boost.Bjam                
- go to <root of boost>/tools/build/jam-src, then run 
  sh ./build.sh
- copy the generated file bjam to /usr/local/bin and
copy again to get bjam and jam
  
 3  Configure tools and parameters              
- <root of boost>/bjam "-sGCC_ROOT_DIRECTORY=/usr"              
- <root of boost>/export PYTHON_ROOT=/usr                       
- <root of boost>/export PYTHON_VERSION=2.3
                                        
 4  Build and install Boost libraries           
- <root of boost>/bjam "-sTOOLS=gcc" install
  
 5  Set build path for Boost.Build              
- export BOOST_BUILD_PATH
/home/hnn/boost/tools/build/v2
  
 6  Configure user-config.jam   at <root of
boost>/tools/build/v2/  
- Change the content of file user-config.jam to:
   import toolset : using ;
   using gcc;
- <root of boost>/bjam install
                                                
 7  Build "hello" example with bjam             
- go to <root of boost>/tools/build/v2/example/hello,
then run
   bjam --v2
- get the error listed above
                                                  

My questions are:
 1  Are there some problems in those steps?

 2  In step2, I get only one file bjam after builing
boost.bjam. However the guide says there should be two
files bjam and jam. Is there some error with me?

 3  In step3,   
    1) do I need to use the command 
    - bjam "-sGCC_ROOT_DIRECTORY=/usr"?
    2) Before my setting, how can I know whether my OS
preconfigured this parameter or not?
    3) And do I need to direct the parameter to the
folder where the whole GCC are installed, or...?
    4) If I configure a wrong path to this parameter,
might I get the "warning: no toolsets are
configured."?



Thank you very much in advance.

Best regards,
Vning


                
___________________________________________________________ 
雅虎免费G邮箱-No.1的防毒防垃圾超大邮箱 
http://cn.mail.yahoo.com/?id=77072


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to