|
Boost Users : |
From: zhengyi (goodmen_at_[hidden])
Date: 2005-03-16 11:23:38
Arkadiy Vertleyb,
This is a programmer from China. My poor English maybe bore you ,
but all the steps of building boost is here(as far as I know ).
I can answer your problem , because i am a newer also.
It took me several days to build the boost.
I don't know your boost version and your platform situation.
Now let me tell you how I do it:
I 'm using boost 1.32.0 and stlport 4.6.2. In msvc71 enviroment.
For the compatibility sake , i perfer the jam come with boost package.
So the first step is to build the jam(using msvc compiler ).
1) run vcvars32.bat(you can find it in ms visual studio .) to set up the msvc environment variables.
2) goto BOOST_ROOT/tools/build/jam_src dir to run the file build.bat.
3) when compile ok , and you can get the result in BOOST_ROOT\tools\build\jam_src\bin.ntx86
4) please copy the Bjam.exe to the BOOST_ROOT\ dir.
OK , the prepare was done! Let go on to build the boost lib.
1) if you close the cmd wnd in the last step , please open it and run vcvars32.bat again.
2) write a bat file and copy it to the BOOST_ROOT\ (the file content is as follow )
some comment may not display correctly because it was writen in Chinese^_^
/**************************************************************************************/
rem install_msvc71stlport.bat
SET TargetDir=E:\Program_Files\Develop\Boost\boost_1_32_0
SET Toolset=vc-7_1-stlport
SET STLPORTPAHT=E:\Program_Files\Develop\STLport-4.6.2
SET STLPORTVERSION=4.6.2
rem ================================
rem ??????????????
SET OLD_LIB=%LIB%
SET LIB=%LIB%;%STLPORTPAHT%\lib
rem ================================
Bjam "-sBUILD=debug release <runtime-link>static/dynamic <threading>single/multi <native-wchar_t>on" "-sSTLPORT_%STLPORTVERSION%_PATH=%STLPORTPAHT%" "-sSTLPORT_VERSION=%STLPORTVERSION%" "--prefix=%TargetDir%" "-sTOOLS=%Toolset%" install
rem ================================
rem ??????????????
SET LIB=%OLD_LIB%
rem ================================
/**************************************************************************************/
3) run the bat file you've written .
4) waiting for the computer to build the whole lib. It will take a long time( about 20 minutes in my computer)
5) Don't think all was done!! the most difficult step is here:
6) I bet you that there are some error in the building. so try to fix them and goto step 3 until all error was killed.
now , I will tell you the errors I meet in the building:
1) date_time will give you some error when using STLport. this is because when you build stlport the
/Zc:wchar_t compiler option was not set . So ,set /Zc:wchar_t and rebuild the stlport, and rebuild
the data_time lib . the error disappear.
if you don't want to rebuild the stlport , add the "-sBUILD=<native-wchar_t>on" in Bjam cmd line.
2) program_options lib, \boost\program_options\detail\utf8_codecvt_facet.hpp line70,
replace "using ::codecvt" to "using std::codecvt". I think it is a error of source file.
3) Serialization lib: \boost\archive\impl\xml_woarchive_impl.ipp line47
replace the line with the following
typedef iterators::xml_escape<const wchar_t *> xmbtows .
This is a problem boring me for a long time . A last , Robert Ramey told me to do that.but is
is a temporary solution because this change has not been fully tested on other Platform.
Here , it is all I know about how to build boost.
I ' a newer to boost and my english is poor , so
if you has any question ,please tell me .
======= 2005-03-16 10:15:00 您在来信中写道:=======
>Hi all,
>
>I am trying to use Boost.Build to build my own project. However I found out
>that the documentation, while doing a good job in explaining details, is
>petty difficult to use if all one wants to know is how to use bjam to build
>a "Hello world" project in a couple of toolsets.
>
>I already downloaded bjam.exe, and I have no problem in creating the
>jamfile. However, AFAIU, I need more files to be installed, such as
>jamrools, files that describe toolsets, etc. Can anybody to just list which
>files are needed, where to get, and where to put them? Or point me to where
>it's described if I missed something...
>
>Unless, of course, this is kind of Illuminati path, and one only deserves to
>use this tool if able to figure out how? :-)
>
>Thanks a lot in advance.
>
>Regards,
>Arkadiy
>
>
>
>_______________________________________________
>Boost-users mailing list
>Boost-users_at_[hidden]
>http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>.
= = = = = = = = = = = = = = = = = = = =
致
礼!
zhengyi
goodmen_at_[hidden]
2005-03-16
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net