Update Boost: Difference between revisions

From Bitpost wiki
No edit summary
No edit summary
Line 32: Line 32:
  cd ~m/development/boost_cvs/boost
  cd ~m/development/boost_cvs/boost
  ../bjam/boost-jam-3.1.13-1-linuxx86/bjam "-sTOOLS=gcc" install
  ../bjam/boost-jam-3.1.13-1-linuxx86/bjam "-sTOOLS=gcc" install
Update your projects to use the new boost. 
I made the following changes to my automake project:
configure.in: CPPFLAGS=”${CPPFLAGS} -I/usr/local/include/boost-#version#”
Makefile.am: yourproject_LDADD = (…) /usr/local/lib/libboost_serialization-gcc.a


== Windows ==
== Windows ==

Revision as of 19:30, 27 December 2006

You should upgrade all development environments, including Linux and Windows, to a similar version - don't wait a week or two and expect CVS installations to be compatible.

Linux

Remove the old boost:

cd ~m/development/boost_cvs
rm -rf boost
su -
cd /usr/local/lib
rm -f libboost*
cd /usr/local/include
rm -rf boost*
ctrl-D

Grab a fresh copy from CVS:

cvs -d:pserver:anonymous@boost.cvs.sourceforge.net/cvsroot/boost login
cvs -z3 -d:pserver:anonymous@boost.cvs.sourceforge.net/cvsroot/boost co -P boost

Also grab a new version of bjam, if needed, and put it here:

~m/development/boost_cvs/bjam

Now kick off the install.

screen
../bjam/boost-jam-3.1.13-1-linuxx86/bjam "-sTOOLS=gcc"
(go get lunch)
...updated 1341 targets...
su -
cd ~m/development/boost_cvs/boost
../bjam/boost-jam-3.1.13-1-linuxx86/bjam "-sTOOLS=gcc" install

Update your projects to use the new boost. I made the following changes to my automake project:

configure.in: CPPFLAGS=”${CPPFLAGS} -I/usr/local/include/boost-#version#”
Makefile.am: yourproject_LDADD = (…) /usr/local/lib/libboost_serialization-gcc.a

Windows

Wipe out the old directory, except the boost\CVS directory, which will allow an easy fresh grab:

c:\Michael's Data\Software Development\boost_cvs\boost

Right-click on it and do a CVS update with Tortoise CVS. Also grab a new version of bjam, if needed, and put it in your path. Go to a command window:

<path to vc8>\vcvars32.bat
cd <boost dir>
bjam "-sTOOLS=vc8_0" stage

Make sure you've added the boost library and include paths to Visual Studio Tools->Options->Projects and Solutions->VC++ directories.


You should now be good to go!