Add boost linux clang and refirmat bash
This commit is contained in:
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
unameOut="$(uname -s)"
|
unameOut="$(uname -s)"
|
||||||
case "${unameOut}" in
|
case "${unameOut}" in
|
||||||
Linux*) machineArch=Linux;;
|
Linux*) machineArch=Linux ;;
|
||||||
Darwin*) machineArch=MacOS;;
|
Darwin*) machineArch=MacOS ;;
|
||||||
CYGWIN*) machineArch=Windows;;
|
CYGWIN*) machineArch=Windows ;;
|
||||||
MINGW*) machineArch=Windows;;
|
MINGW*) machineArch=Windows ;;
|
||||||
*) machineArch="UNKNOWN:${unameOut}"
|
*) machineArch="UNKNOWN:${unameOut}" ;;
|
||||||
esac
|
esac
|
||||||
echo ${machineArch}
|
echo ${machineArch}
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@ libVer=1_70_0
|
|||||||
|
|
||||||
echo libVer=$libVer
|
echo libVer=$libVer
|
||||||
|
|
||||||
scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
scriptDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||||
originalPath=$scriptDir/original
|
originalPath=$scriptDir/original
|
||||||
buildPath=$scriptDir/build
|
buildPath=$scriptDir/build
|
||||||
installPath=$scriptDir/install
|
installPath=$scriptDir/install
|
||||||
@@ -40,14 +40,15 @@ mkdir -p $libSrcPath
|
|||||||
tar zxvpf $libFilePath -C $buildPath
|
tar zxvpf $libFilePath -C $buildPath
|
||||||
|
|
||||||
if [ "${machineArch}" = "Linux" ]; then
|
if [ "${machineArch}" = "Linux" ]; then
|
||||||
(cd $libSrcPath && \
|
(cd $libSrcPath &&
|
||||||
./bootstrap.sh \
|
./bootstrap.sh --prefix=$libInstallPath &&
|
||||||
--prefix=$libInstallPath && \
|
|
||||||
./b2 \
|
./b2 \
|
||||||
--build-dir=$libBuildPath \
|
--build-dir=$libBuildPath \
|
||||||
--prefix=$libInstallPath \
|
--prefix=$libInstallPath \
|
||||||
--layout=versioned \
|
--layout=versioned \
|
||||||
-j 4 \
|
-j 4 \
|
||||||
|
toolset=gcc \
|
||||||
|
toolset=clang \
|
||||||
variant=release,debug \
|
variant=release,debug \
|
||||||
link=shared \
|
link=shared \
|
||||||
threading=multi \
|
threading=multi \
|
||||||
@@ -55,10 +56,9 @@ if [ "${machineArch}" = "Linux" ]; then
|
|||||||
address-model=64 \
|
address-model=64 \
|
||||||
install)
|
install)
|
||||||
elif [ "${machineArch}" = "MacOS" ]; then
|
elif [ "${machineArch}" = "MacOS" ]; then
|
||||||
(cd $libSrcPath && \
|
(cd $libSrcPath &&
|
||||||
./bootstrap.sh \
|
./bootstrap.sh --prefix=$libInstallPath \
|
||||||
--prefix=$libInstallPath \
|
--with-toolset=clang &&
|
||||||
--with-toolset=clang && \
|
|
||||||
./b2 \
|
./b2 \
|
||||||
--build-dir=$libBuildPath \
|
--build-dir=$libBuildPath \
|
||||||
--prefix=$libInstallPath \
|
--prefix=$libInstallPath \
|
||||||
@@ -69,14 +69,14 @@ elif [ "${machineArch}" = "MacOS" ]; then
|
|||||||
threading=multi \
|
threading=multi \
|
||||||
runtime-link=shared \
|
runtime-link=shared \
|
||||||
address-model=64 \
|
address-model=64 \
|
||||||
toolset=clang \
|
|
||||||
install)
|
install)
|
||||||
elif [ "${machineArch}" = "Windows" ]; then
|
elif [ "${machineArch}" = "Windows" ]; then
|
||||||
(cd $libSrcPath && \
|
(cd $libSrcPath &&
|
||||||
./bootstrap.bat --prefix=$libInstallPath && \
|
./bootstrap.bat --prefix=$libInstallPath &&
|
||||||
./b2 \
|
./b2 \
|
||||||
--build-dir=$libBuildPath \
|
--build-dir=$libBuildPath \
|
||||||
--prefix=$libInstallPath \
|
--prefix=$libInstallPath \
|
||||||
|
--layout=versioned \
|
||||||
-j 4 \
|
-j 4 \
|
||||||
variant=release,debug \
|
variant=release,debug \
|
||||||
link=shared \
|
link=shared \
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
unameOut="$(uname -s)"
|
unameOut="$(uname -s)"
|
||||||
case "${unameOut}" in
|
case "${unameOut}" in
|
||||||
Linux*) machineArch=Linux;;
|
Linux*) machineArch=Linux ;;
|
||||||
Darwin*) machineArch=MacOS;;
|
Darwin*) machineArch=MacOS ;;
|
||||||
CYGWIN*) machineArch=Windows;;
|
CYGWIN*) machineArch=Windows ;;
|
||||||
MINGW*) machineArch=Windows;;
|
MINGW*) machineArch=Windows ;;
|
||||||
*) machineArch="UNKNOWN:${unameOut}"
|
*) machineArch="UNKNOWN:${unameOut}" ;;
|
||||||
esac
|
esac
|
||||||
echo ${machineArch}
|
echo ${machineArch}
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@ libVer=1.5.0
|
|||||||
|
|
||||||
echo libVer=$libVer
|
echo libVer=$libVer
|
||||||
|
|
||||||
scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
scriptDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||||
originalPath=$scriptDir/original
|
originalPath=$scriptDir/original
|
||||||
buildPath=$scriptDir/build
|
buildPath=$scriptDir/build
|
||||||
installPath=$scriptDir/install
|
installPath=$scriptDir/install
|
||||||
@@ -40,22 +40,22 @@ mkdir -p $libSrcPath
|
|||||||
tar zxvpf $libFilePath -C $buildPath
|
tar zxvpf $libFilePath -C $buildPath
|
||||||
|
|
||||||
if [ "${machineArch}" = "Linux" ]; then
|
if [ "${machineArch}" = "Linux" ]; then
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
|
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath/release \
|
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath/release \
|
||||||
$libSrcPath && \
|
$libSrcPath &&
|
||||||
make install -j)
|
make install -j)
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Debug \
|
-DCMAKE_BUILD_TYPE=Debug \
|
||||||
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
|
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath/debug \
|
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath/debug \
|
||||||
$libSrcPath && \
|
$libSrcPath &&
|
||||||
make install -j)
|
make install -j)
|
||||||
elif [ "${machineArch}" = "MacOS" ]; then
|
elif [ "${machineArch}" = "MacOS" ]; then
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
|
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
|
||||||
@@ -63,9 +63,9 @@ elif [ "${machineArch}" = "MacOS" ]; then
|
|||||||
-DLLVMAR_EXECUTABLE:PATH=/usr/bin/ar \
|
-DLLVMAR_EXECUTABLE:PATH=/usr/bin/ar \
|
||||||
-DLLVMNM_EXECUTABLE:PATH=/usr/bin/nm \
|
-DLLVMNM_EXECUTABLE:PATH=/usr/bin/nm \
|
||||||
-DLLVMRANLIB_EXECUTABLE:PATH=/usr/bin/ranlib \
|
-DLLVMRANLIB_EXECUTABLE:PATH=/usr/bin/ranlib \
|
||||||
$libSrcPath && \
|
$libSrcPath &&
|
||||||
make install -j)
|
make install -j)
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Debug \
|
-DCMAKE_BUILD_TYPE=Debug \
|
||||||
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
|
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
|
||||||
@@ -73,29 +73,29 @@ elif [ "${machineArch}" = "MacOS" ]; then
|
|||||||
-DLLVMAR_EXECUTABLE:PATH=/usr/bin/ar \
|
-DLLVMAR_EXECUTABLE:PATH=/usr/bin/ar \
|
||||||
-DLLVMNM_EXECUTABLE:PATH=/usr/bin/nm \
|
-DLLVMNM_EXECUTABLE:PATH=/usr/bin/nm \
|
||||||
-DLLVMRANLIB_EXECUTABLE:PATH=/usr/bin/ranlib \
|
-DLLVMRANLIB_EXECUTABLE:PATH=/usr/bin/ranlib \
|
||||||
$libSrcPath && \
|
$libSrcPath &&
|
||||||
make install -j)
|
make install -j)
|
||||||
elif [ "${machineArch}" = "Windows" ]; then
|
elif [ "${machineArch}" = "Windows" ]; then
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
|
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath/release \
|
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath/release \
|
||||||
-G "Visual Studio 16 2019" \
|
-G "Visual Studio 16 2019" \
|
||||||
-A x64 \
|
-A x64 \
|
||||||
$libSrcPath && \
|
$libSrcPath &&
|
||||||
cmake \
|
cmake \
|
||||||
--build . \
|
--build . \
|
||||||
--config Release \
|
--config Release \
|
||||||
--target INSTALL)
|
--target INSTALL)
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Debug \
|
-DCMAKE_BUILD_TYPE=Debug \
|
||||||
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
|
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath/debug \
|
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath/debug \
|
||||||
-G "Visual Studio 16 2019" \
|
-G "Visual Studio 16 2019" \
|
||||||
-A x64 \
|
-A x64 \
|
||||||
$libSrcPath && \
|
$libSrcPath &&
|
||||||
cmake \
|
cmake \
|
||||||
--build . \
|
--build . \
|
||||||
--config Debug \
|
--config Debug \
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
unameOut="$(uname -s)"
|
unameOut="$(uname -s)"
|
||||||
case "${unameOut}" in
|
case "${unameOut}" in
|
||||||
Linux*) machineArch=Linux;;
|
Linux*) machineArch=Linux ;;
|
||||||
Darwin*) machineArch=MacOS;;
|
Darwin*) machineArch=MacOS ;;
|
||||||
CYGWIN*) machineArch=Windows;;
|
CYGWIN*) machineArch=Windows ;;
|
||||||
MINGW*) machineArch=Windows;;
|
MINGW*) machineArch=Windows ;;
|
||||||
*) machineArch="UNKNOWN:${unameOut}"
|
*) machineArch="UNKNOWN:${unameOut}" ;;
|
||||||
esac
|
esac
|
||||||
echo ${machineArch}
|
echo ${machineArch}
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@ libVer=0.4.0
|
|||||||
|
|
||||||
echo libVer=$libVer
|
echo libVer=$libVer
|
||||||
|
|
||||||
scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
scriptDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||||
originalPath=$scriptDir/original
|
originalPath=$scriptDir/original
|
||||||
buildPath=$scriptDir/build
|
buildPath=$scriptDir/build
|
||||||
installPath=$scriptDir/install
|
installPath=$scriptDir/install
|
||||||
@@ -40,48 +40,48 @@ mkdir -p $libSrcPath
|
|||||||
tar zxvpf $libFilePath -C $buildPath
|
tar zxvpf $libFilePath -C $buildPath
|
||||||
|
|
||||||
if [ "${machineArch}" = "Linux" ]; then
|
if [ "${machineArch}" = "Linux" ]; then
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||||
$libSrcPath && \
|
$libSrcPath &&
|
||||||
make install -j)
|
make install -j)
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Debug \
|
-DCMAKE_BUILD_TYPE=Debug \
|
||||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||||
$libSrcPath && \
|
$libSrcPath &&
|
||||||
make install -j)
|
make install -j)
|
||||||
elif [ "${machineArch}" = "MacOS" ]; then
|
elif [ "${machineArch}" = "MacOS" ]; then
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||||
$libSrcPath && \
|
$libSrcPath &&
|
||||||
make install -j)
|
make install -j)
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Debug \
|
-DCMAKE_BUILD_TYPE=Debug \
|
||||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||||
$libSrcPath && \
|
$libSrcPath &&
|
||||||
make install -j)
|
make install -j)
|
||||||
elif [ "${machineArch}" = "Windows" ]; then
|
elif [ "${machineArch}" = "Windows" ]; then
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||||
-G "Visual Studio 16 2019" \
|
-G "Visual Studio 16 2019" \
|
||||||
-A x64 \
|
-A x64 \
|
||||||
$libSrcPath && \
|
$libSrcPath &&
|
||||||
cmake \
|
cmake \
|
||||||
--build . \
|
--build . \
|
||||||
--config Release \
|
--config Release \
|
||||||
--target INSTALL && \
|
--target INSTALL &&
|
||||||
cmake \
|
cmake \
|
||||||
--build . \
|
--build . \
|
||||||
--config Debug \
|
--config Debug \
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
unameOut="$(uname -s)"
|
unameOut="$(uname -s)"
|
||||||
case "${unameOut}" in
|
case "${unameOut}" in
|
||||||
Linux*) machineArch=Linux;;
|
Linux*) machineArch=Linux ;;
|
||||||
Darwin*) machineArch=MacOS;;
|
Darwin*) machineArch=MacOS ;;
|
||||||
CYGWIN*) machineArch=Windows;;
|
CYGWIN*) machineArch=Windows ;;
|
||||||
MINGW*) machineArch=Windows;;
|
MINGW*) machineArch=Windows ;;
|
||||||
*) machineArch="UNKNOWN:${unameOut}"
|
*) machineArch="UNKNOWN:${unameOut}" ;;
|
||||||
esac
|
esac
|
||||||
echo ${machineArch}
|
echo ${machineArch}
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@ libVer=1.8.1
|
|||||||
|
|
||||||
echo libVer=$libVer
|
echo libVer=$libVer
|
||||||
|
|
||||||
scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
scriptDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||||
originalPath=$scriptDir/original
|
originalPath=$scriptDir/original
|
||||||
buildPath=$scriptDir/build
|
buildPath=$scriptDir/build
|
||||||
installPath=$scriptDir/install
|
installPath=$scriptDir/install
|
||||||
@@ -40,48 +40,48 @@ mkdir -p $libSrcPath
|
|||||||
tar zxvpf $libFilePath -C $buildPath
|
tar zxvpf $libFilePath -C $buildPath
|
||||||
|
|
||||||
if [ "${machineArch}" = "Linux" ]; then
|
if [ "${machineArch}" = "Linux" ]; then
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||||
$libSrcPath && \
|
$libSrcPath &&
|
||||||
make install -j)
|
make install -j)
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Debug \
|
-DCMAKE_BUILD_TYPE=Debug \
|
||||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||||
$libSrcPath && \
|
$libSrcPath &&
|
||||||
make install -j)
|
make install -j)
|
||||||
elif [ "${machineArch}" = "MacOS" ]; then
|
elif [ "${machineArch}" = "MacOS" ]; then
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||||
$libSrcPath && \
|
$libSrcPath &&
|
||||||
make install -j)
|
make install -j)
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Debug \
|
-DCMAKE_BUILD_TYPE=Debug \
|
||||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||||
$libSrcPath && \
|
$libSrcPath &&
|
||||||
make install -j)
|
make install -j)
|
||||||
elif [ "${machineArch}" = "Windows" ]; then
|
elif [ "${machineArch}" = "Windows" ]; then
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||||
-G "Visual Studio 16 2019" \
|
-G "Visual Studio 16 2019" \
|
||||||
-A x64 \
|
-A x64 \
|
||||||
$libSrcPath && \
|
$libSrcPath &&
|
||||||
cmake \
|
cmake \
|
||||||
--build . \
|
--build . \
|
||||||
--config Release \
|
--config Release \
|
||||||
--target INSTALL && \
|
--target INSTALL &&
|
||||||
cmake \
|
cmake \
|
||||||
--build . \
|
--build . \
|
||||||
--config Debug \
|
--config Debug \
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ libVer=3.3.1
|
|||||||
|
|
||||||
echo libVer=$libVer
|
echo libVer=$libVer
|
||||||
|
|
||||||
scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
scriptDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||||
originalPath=$scriptDir/original
|
originalPath=$scriptDir/original
|
||||||
buildPath=$scriptDir/build
|
buildPath=$scriptDir/build
|
||||||
installPath=$scriptDir/install
|
installPath=$scriptDir/install
|
||||||
@@ -65,23 +65,22 @@ echo
|
|||||||
echo "LD_LIBRARY_PATH = $LD_LIBRARY_PATH"
|
echo "LD_LIBRARY_PATH = $LD_LIBRARY_PATH"
|
||||||
|
|
||||||
# run the configure command with all build options
|
# run the configure command with all build options
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
$libSrcPath/configure \
|
$libSrcPath/configure \
|
||||||
--prefix=$libInstallPath \
|
--prefix=$libInstallPath \
|
||||||
--disable-fc \
|
--disable-fc \
|
||||||
--disable-f77 \
|
--disable-f77 \
|
||||||
--disable-fortran \
|
--disable-fortran \
|
||||||
--disable-cxx \
|
--disable-cxx \
|
||||||
--enable-fast=all \
|
--enable-fast=all \
|
||||||
MPICHLIB_CFLAGS=$BCFLAGS \
|
MPICHLIB_CFLAGS=$BCFLAGS \
|
||||||
CC=gcc \
|
CC=gcc \
|
||||||
CXX=g++ \
|
CXX=g++ \
|
||||||
2>&1 | tee config.out.txt)
|
2>&1 | tee config.out.txt)
|
||||||
|
|
||||||
# clean, build, and install
|
# clean, build, and install
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
make clean)
|
make clean)
|
||||||
|
|
||||||
( cd $libBuildPath && \
|
|
||||||
make install -j 2>&1 | tee build.out.txt)
|
|
||||||
|
|
||||||
|
(cd $libBuildPath &&
|
||||||
|
make install -j 2>&1 | tee build.out.txt)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ libVer=4.0.1
|
|||||||
|
|
||||||
echo libVer=$libVer
|
echo libVer=$libVer
|
||||||
|
|
||||||
scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
scriptDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||||
originalPath=$scriptDir/original
|
originalPath=$scriptDir/original
|
||||||
buildPath=$scriptDir/build
|
buildPath=$scriptDir/build
|
||||||
installPath=$scriptDir/install
|
installPath=$scriptDir/install
|
||||||
@@ -78,24 +78,22 @@ echo "LD_LIBRARY_PATH = $LD_LIBRARY_PATH"
|
|||||||
#FCFLAGS=$BFFLAGS
|
#FCFLAGS=$BFFLAGS
|
||||||
|
|
||||||
# run the configure command with all build options
|
# run the configure command with all build options
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
$libSrcPath/configure \
|
$libSrcPath/configure \
|
||||||
--prefix=$libInstallPath \
|
--prefix=$libInstallPath \
|
||||||
--disable-vt \
|
--disable-vt \
|
||||||
--disable-mpi-fortran \
|
--disable-mpi-cxx \
|
||||||
--disable-mpi-cxx \
|
--disable-static \
|
||||||
--disable-static \
|
--disable-wrapper-rpath \
|
||||||
--disable-wrapper-rpath \
|
--disable-wrapper-runpath \
|
||||||
--disable-wrapper-runpath \
|
--disable-dlopen \
|
||||||
--disable-dlopen \
|
--enable-mca-static=allocator,bml,btl-sm,btl-self,coll,common-sm,errmgr,gpr,io,iof,maffinity-first_use,mpool-sm,ns,odls,oob,osc,pls,pml,ras,rcache,rds,rmaps,rmgr,rml,sds,topo \
|
||||||
--enable-mca-static=allocator,bml,btl-sm,btl-self,coll,common-sm,errmgr,gpr,io,iof,maffinity-first_use,mpool-sm,ns,odls,oob,osc,pls,pml,ras,rcache,rds,rmaps,rmgr,rml,sds,topo \
|
CFLAGS=$BCFLAGS \
|
||||||
CFLAGS=$BCFLAGS \
|
2>&1 | tee config.out.txt)
|
||||||
2>&1 | tee config.out.txt)
|
|
||||||
|
|
||||||
# clean, build, and install
|
# clean, build, and install
|
||||||
( cd $libBuildPath && \
|
(cd $libBuildPath &&
|
||||||
make clean)
|
make clean)
|
||||||
|
|
||||||
( cd $libBuildPath && \
|
|
||||||
make install -j 2>&1 | tee build.out.txt)
|
|
||||||
|
|
||||||
|
(cd $libBuildPath &&
|
||||||
|
make install -j 2>&1 | tee build.out.txt)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ libVer=4.0.0
|
|||||||
|
|
||||||
echo libVer=$libVer
|
echo libVer=$libVer
|
||||||
|
|
||||||
scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
scriptDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||||
originalPath=$scriptDir/original
|
originalPath=$scriptDir/original
|
||||||
buildPath=$scriptDir/build
|
buildPath=$scriptDir/build
|
||||||
installPath=$scriptDir/install
|
installPath=$scriptDir/install
|
||||||
@@ -26,7 +26,7 @@ mkdir -p $libInstallPath
|
|||||||
mkdir -p $libSrcPath
|
mkdir -p $libSrcPath
|
||||||
|
|
||||||
tar zxvpf $libFilePath -C $buildPath
|
tar zxvpf $libFilePath -C $buildPath
|
||||||
( cd $libSrcPath && \
|
(cd $libSrcPath &&
|
||||||
./configure --prefix=$libInstallPath && \
|
./configure --prefix=$libInstallPath &&
|
||||||
make -j && \
|
make -j &&
|
||||||
make install)
|
make install)
|
||||||
|
|||||||
Reference in New Issue
Block a user