Difference between revisions of "Boost"

From CBLFS
Jump to navigationJump to search
m (Reverted edits by Oppiz (Talk); changed back to last version by Jciccone)
(Undo revision 12900 by Oppiz (Talk))
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://downloads.sourceforge.net/boost/boost_{{Boost_Version}}.tar.bz2
+
| http://downloads.sourceforge.net/boost/boost_{{Boost_Version}}.tar.bz23
|-
 
!Download Patch:
 
| http://svn.cross-lfs.org/svn/repos/patches/boost/boost-{{Boost_Version2}}-fix-1.patch
 
 
|}
 
|}
  
Line 19: Line 16:
 
Compile the package:
 
Compile the package:
  
  patch -Np1 -i ../boost-{{Boost_Version2}}-fix-1.patch &&
+
  bjam --prefix=/usr  
./configure --prefix=/usr &&
+
   
  make
 
 
 
 
Install the package:
 
Install the package:
  
  make install
+
  bjam --prefix=/usr install
  
 
== Multilib ==
 
== Multilib ==
Line 33: Line 28:
 
Compile the package:
 
Compile the package:
  
patch -Np1 -i ../boost-{{Boost_Version2}}-fix-1.patch &&
 
 
  export USE_ARCH=32 &&
 
  export USE_ARCH=32 &&
  ./configure --prefix=/usr &&
+
  CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" /usr/bin/bjam-32 --prefix=/usr --toolset=gcc \
  make
+
address-model=32 cxxflags=${BUILD32} cflags=${BUILD32} architecture=x86
 +
   
  
 
Install the package:
 
Install the package:
  
  make install &&
+
  CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" /usr/bin/bjam-32 --prefix=/usr --toolset=gcc \
 +
address-model=32 cxxflags=${BUILD32} cflags=${BUILD32} architecture=x86 install
 
  unset USE_ARCH
 
  unset USE_ARCH
  
Line 57: Line 53:
 
Compile the package:
 
Compile the package:
  
patch -Np1 -i ../boost-{{Boost_Version2}}-fix-1.patch &&
 
 
  export USE_ARCH=64 &&
 
  export USE_ARCH=64 &&
  ./configure --prefix=/usr --libdir=/usr/lib64 &&
+
  CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
make
+
/usr/bin/bjam-64 --prefix=/usr --libdir=/usr/lib64 --toolset=gcc
  
 
Install the package:
 
Install the package:
  
  make install &&
+
  CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
 +
/usr/bin/bjam-64 --prefix=/usr --libdir=/usr/lib64 --toolset=gcc install
 
  unset USE_ARCH
 
  unset USE_ARCH
  

Revision as of 16:43, 27 January 2008

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

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:

bjam --prefix=/usr 

Install the package:

bjam --prefix=/usr install

Multilib

32Bit

Compile the package:

export USE_ARCH=32 &&
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" /usr/bin/bjam-32 --prefix=/usr --toolset=gcc \
address-model=32 cxxflags=${BUILD32} cflags=${BUILD32} architecture=x86

Install the package:

CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" /usr/bin/bjam-32 --prefix=/usr --toolset=gcc \
address-model=32 cxxflags=${BUILD32} cflags=${BUILD32} architecture=x86 install
unset USE_ARCH

N32

Compile the package:

To do...

Install the package:

To Do...

64Bit

Compile the package:

export USE_ARCH=64 &&
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
/usr/bin/bjam-64 --prefix=/usr --libdir=/usr/lib64 --toolset=gcc

Install the package:

CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
/usr/bin/bjam-64 --prefix=/usr --libdir=/usr/lib64 --toolset=gcc install
unset USE_ARCH

Contents

Installed Directories: /usr/include/boost-1_37_0
Installed Programs: None
Installed Libraries: Many libraries