Last change
on this file since 13395 was 13395, checked in by Mathieu Morlighem, 12 years ago |
merged trunk-jpl and trunk for revision 13393
|
-
Property svn:executable
set to
*
|
File size:
1.2 KB
|
Rev | Line | |
---|
[13344] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | #Note of caution: stop after boostrap phase, and run
|
---|
| 4 | #bjam --debug-configuration, to figure out which paths boost is using to include
|
---|
| 5 | #python. make sure everyone of these paths is covered by python. If not, just make
|
---|
| 6 | #symlinks in externalpackages/python to what boost is expecting. Ther is NO WAY
|
---|
| 7 | #to get the boost library to include python support without doing that.
|
---|
| 8 |
|
---|
| 9 | #Some cleanup
|
---|
| 10 | rm -rf install boost_1_49_0 src
|
---|
| 11 | mkdir install src
|
---|
| 12 |
|
---|
| 13 | #Download from ISSM server
|
---|
| 14 | $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/boost_1_49_0.tar.gz' 'boost_1_49_0.tar.gz'
|
---|
| 15 |
|
---|
| 16 | #Untar
|
---|
| 17 | tar -zxvf boost_1_49_0.tar.gz
|
---|
| 18 |
|
---|
| 19 | #Move boost into install directory
|
---|
| 20 | mv boost_1_49_0/* src
|
---|
| 21 | rm -rf boost_1_49_0
|
---|
| 22 | #Configure and compile
|
---|
| 23 | cd src
|
---|
| 24 | ./bootstrap.sh \
|
---|
| 25 | --prefix="$ISSM_DIR/externalpackages/boost/install" \
|
---|
| 26 | --with-python=python2.7 \
|
---|
| 27 | --with-python-root="$ISSM_DIR/externalpackages/python/install"
|
---|
| 28 |
|
---|
| 29 | #Compile boost
|
---|
| 30 | #./b2 address-model=32 architecture=x86 cxxflags="-arch i386" variant=release threading=multi install
|
---|
| 31 | ./b2 toolset=darwin address-model=32 architecture=x86 variant=release threading=multi install
|
---|
| 32 |
|
---|
| 33 | #put bjam into install also:
|
---|
| 34 | mkdir ../install/bin
|
---|
| 35 | cp bjam ../install/bin
|
---|
Note:
See
TracBrowser
for help on using the repository browser.