FARSIGHT Tutorials/Building Software/Installing Boost
m |
|||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | Boost is a project providing open source portable C++ source libraries. It has become a suite of de facto standard libraries for C++. [[FARSIGHT Tutorials/Building Software/Downloading Jace|Jace]] requires the Boost Thread module in order to handle C++ threads in a platform independent way. | + | Boost is a project providing open source portable C++ source libraries. It has become a suite of de facto standard libraries for C++. [[FARSIGHT Tutorials/Building Software/Bio-Formats/Downloading Jace|Jace]] requires the Boost Thread module in order to handle C++ threads in a platform independent way. |
= Installing Boost on Linux = | = Installing Boost on Linux = | ||
− | To install | + | To install Boost Thread on Debian-based Linux, execute: |
− | + | sudo apt-get install boost-thread-dev | |
Other distributions of Linux are likely to have similar Boost packages available through their respective package managers as well. | Other distributions of Linux are likely to have similar Boost packages available through their respective package managers as well. | ||
Line 13: | Line 13: | ||
= Installing Boost on Windows = | = Installing Boost on Windows = | ||
− | The easiest way to install | + | The easiest way to install Boost Thread on Windows is to |
use the [http://www.boostpro.com/products/free free installer from BoostPro]. | use the [http://www.boostpro.com/products/free free installer from BoostPro]. | ||
Line 24: | Line 24: | ||
= Installing/Compiling Boost on Mac OS X = | = Installing/Compiling Boost on Mac OS X = | ||
+ | |||
+ | To install Boost Thread on Mac OS X, we advise using [http://www.macports.org/ MacPorts]: | ||
+ | |||
+ | sudo port install boost | ||
+ | |||
+ | This will install Boost into /opt/local; e.g.: | ||
+ | |||
+ | /opt/local/include/boost | ||
+ | |||
+ | == Compiling Boost manually == | ||
+ | |||
+ | Alternately, you can compile Boost yourself: | ||
# Visit the [http://www.boost.org Boost web site]. | # Visit the [http://www.boost.org Boost web site]. | ||
Line 30: | Line 42: | ||
# Download the Boost distribution using the link in the "1 Get Boost" section. | # Download the Boost distribution using the link in the "1 Get Boost" section. | ||
# Unpack the Boost distribution into a temporary directory; e.g.: | # Unpack the Boost distribution into a temporary directory; e.g.: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | tar xjf boost_1_38_0.tar.bz2 | |
− | + | Finally, build the source using the "Easy Build and Install"; e.g.: | |
+ | |||
+ | cd boost_1_38_0 | ||
+ | sudo ./configure | ||
+ | sudo make install | ||
+ | |||
+ | This will install Boost into a subdirectory of /usr/local; e.g.: | ||
− | + | /usr/local/include/boost-1_38 |
Latest revision as of 18:08, 15 October 2009
Boost is a project providing open source portable C++ source libraries. It has become a suite of de facto standard libraries for C++. Jace requires the Boost Thread module in order to handle C++ threads in a platform independent way.
Contents |
Installing Boost on Linux
To install Boost Thread on Debian-based Linux, execute:
sudo apt-get install boost-thread-dev
Other distributions of Linux are likely to have similar Boost packages available through their respective package managers as well.
Installing Boost on Windows
The easiest way to install Boost Thread on Windows is to use the free installer from BoostPro.
When running the installer:
- Under "Compilers," check the version of Visual C++ matching your system.
- Under "Variants," check all eight boxes.
- When choosing components, check "Boost DateTime" and "Boost Thread."
Installing/Compiling Boost on Mac OS X
To install Boost Thread on Mac OS X, we advise using MacPorts:
sudo port install boost
This will install Boost into /opt/local; e.g.:
/opt/local/include/boost
Compiling Boost manually
Alternately, you can compile Boost yourself:
- Visit the Boost web site.
- Click the "Getting Started Guide" link.
- Click the "Getting Started on Unix variants" link in the lower right corner.
- Download the Boost distribution using the link in the "1 Get Boost" section.
- Unpack the Boost distribution into a temporary directory; e.g.:
tar xjf boost_1_38_0.tar.bz2
Finally, build the source using the "Easy Build and Install"; e.g.:
cd boost_1_38_0 sudo ./configure sudo make install
This will install Boost into a subdirectory of /usr/local; e.g.:
/usr/local/include/boost-1_38