Difference between revisions of "Boost"

From CBLFS
Jump to navigationJump to search
 
(24 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
!Download Source:
 
!Download Source:
 
| http://downloads.sourceforge.net/boost/boost_{{Boost_Version}}.tar.bz2
 
| http://downloads.sourceforge.net/boost/boost_{{Boost_Version}}.tar.bz2
|-
 
!Download Patch:
 
| http://svn.cross-lfs.org/svn/repos/patches/boost/boost-1.34.1-fix-1.patch
 
 
|}
 
|}
 +
  
 
{{Package-Introduction|Boost provides free peer-reviewed portable C++ source libraries.|http://www.boost.org/}}
 
{{Package-Introduction|Boost provides free peer-reviewed portable C++ source libraries.|http://www.boost.org/}}
Line 13: Line 11:
  
 
=== Required ===
 
=== Required ===
* [[Jam]]
+
* [[bJam]]
  
 
== Non-Multilib ==
 
== Non-Multilib ==
Line 19: Line 17:
 
Compile the package:
 
Compile the package:
  
  patch -Np1 -i ../boost-1.34.1-fix-1.patch
+
  ./configure --prefix=/usr \
./configure --prefix=/usr
+
    --with-toolset=gcc --with-bjam=/usr/bin/bjam &&
 +
make
  
 
Install the package:
 
Install the package:
  
  make install
+
  make install &&
 +
ln -sfnv boost-{{Boost-Version2}}/boost /usr/include/boost
  
 
== Multilib ==
 
== Multilib ==
Line 32: Line 32:
 
Compile the package:
 
Compile the package:
  
  patch -Np1 -i ../boost-1.34.1-fix-1.patch
+
  echo "toolset.flags gcc OPTIONS : ${BUILD32} ;" >> tools/build/v2/tools/gcc.jam &&
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
+
  export USE_ARCH=32 &&
  USE_ARCH=32 ./configure --prefix=/usr
+
./configure --prefix=/usr --with-toolset=gcc \
 +
    --with-bjam=/usr/bin/bjam &&
 
  make
 
  make
  
 
Install the package:
 
Install the package:
  
  make install
+
  make install &&
 +
ln -sfnv boost-{{Boost-Version2}}/boost /usr/include/boost &&
 +
unset USE_ARCH
  
 
=== N32 ===
 
=== N32 ===
Line 55: Line 58:
 
Compile the package:
 
Compile the package:
  
  patch -Np1 -i ../boost-1.34.1-fix-1.patch
+
  echo "toolset.flags gcc OPTIONS : ${BUILD64} ;" >> tools/build/v2/tools/gcc.jam &&
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
+
  export USE_ARCH=64 &&
  USE_ARCH=64 ./configure --prefix=/usr --libdir=/usr/lib64
+
./configure --prefix=/usr --libdir=/usr/lib64 \
 +
    --with-toolset=gcc --with-bjam=/usr/bin/bjam &&
 
  make
 
  make
  
 
Install the package:
 
Install the package:
  
  make install
+
  make install &&
 +
ln -sfnv boost-{{Boost-Version2}}/boost /usr/include/boost &&
 +
unset USE_ARCH
  
 
== Contents ==
 
== Contents ==
Line 77: Line 83:
 
|Many libraries
 
|Many libraries
 
|}
 
|}
 +
 +
[[Category:General Utilities]]

Latest revision as of 13:53, 19 March 2009

Download Source: http://downloads.sourceforge.net/boost/boost_1_37_0.tar.bz2


Introduction to Boost

Boost provides free peer-reviewed portable C++ source libraries.

Project Homepage: http://www.boost.org/

Dependencies

Required

Non-Multilib

Compile the package:

./configure --prefix=/usr \
    --with-toolset=gcc --with-bjam=/usr/bin/bjam &&
make

Install the package:

make install &&
ln -sfnv boost-1_37/boost /usr/include/boost

Multilib

32Bit

Compile the package:

echo "toolset.flags gcc OPTIONS : ${BUILD32} ;" >> tools/build/v2/tools/gcc.jam &&
export USE_ARCH=32 &&
./configure --prefix=/usr --with-toolset=gcc \
    --with-bjam=/usr/bin/bjam &&
make

Install the package:

make install &&
ln -sfnv boost-1_37/boost /usr/include/boost &&
unset USE_ARCH

N32

Compile the package:

To do...

Install the package:

To Do...

64Bit

Compile the package:

echo "toolset.flags gcc OPTIONS : ${BUILD64} ;" >> tools/build/v2/tools/gcc.jam &&
export USE_ARCH=64 &&
./configure --prefix=/usr --libdir=/usr/lib64 \
    --with-toolset=gcc --with-bjam=/usr/bin/bjam &&
make

Install the package:

make install &&
ln -sfnv boost-1_37/boost /usr/include/boost &&
unset USE_ARCH

Contents

Installed Directories: /usr/include/boost-1_37_0
Installed Programs: None
Installed Libraries: Many libraries
Retrieved from "?title=Boost&oldid=17220"