Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
5070ded7
Y
YTBP
项目概览
YottaChain
/
YTBP
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
YTBP
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5070ded7
编写于
4月 25, 2018
作者:
B
Bill Hamilton
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Darwin: removed boost from brew install and added compiling boost from source version 1.66
上级
dead9cef
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
69 addition
and
14 deletion
+69
-14
eosio_build.sh
eosio_build.sh
+2
-0
scripts/eosio_build_darwin.sh
scripts/eosio_build_darwin.sh
+67
-13
scripts/eosio_build_dep
scripts/eosio_build_dep
+0
-1
未找到文件。
eosio_build.sh
浏览文件 @
5070ded7
...
...
@@ -60,6 +60,7 @@
printf
"
\n\t
Beginning build version:
${
VERSION
}
\n
"
printf
"
\t
$(
date
-u
)
\n
"
printf
"
\t
User:
$(
whoami
)
\n
"
printf
"
\t
git head id:
$(
cat
.git/refs/heads/master
)
\n
"
printf
"
\t
Current branch:
$(
git branch |
grep
\*
)
\n
"
printf
"
\n\t
ARCHITECTURE:
${
ARCH
}
\n
"
...
...
@@ -141,6 +142,7 @@
FILE
=
${
WORK_DIR
}
/scripts/eosio_build_darwin.sh
CXX_COMPILER
=
clang++
C_COMPILER
=
clang
export
BOOST_ROOT
=
/usr/local
MONGOD_CONF
=
/usr/local/etc/mongod.conf
OPENSSL_ROOT_DIR
=
/usr/local/opt/openssl
export
WASM_ROOT
=
/usr/local/wasm
...
...
scripts/eosio_build_darwin.sh
浏览文件 @
5070ded7
...
...
@@ -97,19 +97,6 @@
do
printf
"
\t
Checking
$name
... "
if
[
${
tester
}
${
testee
}
]
;
then
# check boost version, it should be 1_66
if
[
"
${
brewname
}
"
=
"boost"
]
;
then
BVERSION
=
`
cat
"
${
testee
}
"
2>/dev/null |
grep
"#define BOOST_VERSION"
|
tail
-1
\
|
tr
-s
' '
|
cut
-d
\
-f3
`
if
[
${
BVERSION
}
< 106600
]
;
then
BOOST_CHECK
=
1
DEP
=
$DEP
"
${
brewname
}
"
DISPLAY
=
"
${
DISPLAY
}${
COUNT
}
.
${
name
}
\n\t
"
printf
"
\t\t
${
name
}
${
bldred
}
needs updating.
${
txtrst
}
.
\n
"
let
COUNT++
continue
fi
fi
printf
'\t\t %s found\n'
"
$name
"
continue
fi
...
...
@@ -183,6 +170,73 @@
printf
"
\n\t
No required Home Brew dependencies to install.
\n
"
fi
printf
"
\n\t
Checking boost library installation.
\n
"
BVERSION
=
`
cat
"
${
BOOST_ROOT
}
/include/boost/version.hpp"
2>/dev/null |
grep
BOOST_LIB_VERSION |
tail
-1
|
tr
-s
' '
|
cut
-d
\
-f3
|
sed
's/[^0-9_]//g'
`
if
[
"
${
BVERSION
}
"
!=
"1_67"
]
;
then
if
[
!
-z
"
${
BVERSION
}
"
]
;
then
printf
"
\t
Found Boost Version
${
BVERSION
}
.
\n
"
printf
"
\t
EOS.IO requires Boost version 1.66.
\n
"
printf
"
\t
Would you like to uninstall version
${
BVERSION
}
and install Boost version 1.66.
\n
"
select
yn
in
"Yes"
"No"
;
do
case
$yn
in
[
Yy]
*
)
printf
"
\t
Removing Boost Version
${
BVERSION
}
.
\n
"
if
[
-L
"/usr/local/include/boost/version.hpp"
]
;
then
brew remove boost 2>/dev/null
if
[
$?
-ne
0
]
;
then
printf
"
\t
Unable to remove boost libraries at this time. 0
\n
"
printf
"
\t
Exiting now.
\n\n
"
exit
1
;
fi
else
sudo rm
-rf
"
${
BOOST_ROOT
}
/include/boost"
if
[
$?
-ne
0
]
;
then
printf
"
\t
Unable to remove boost libraries at this time. 1
\n
"
printf
"
\t
Exiting now.
\n\n
"
exit
;
fi
sudo rm
-rf
"
${
BOOST_ROOT
}
/lib/libboost*"
if
[
$?
-ne
0
]
;
then
printf
"
\t
Unable to remove boost libraries at this time. 2
\n
"
printf
"
\t
Exiting now.
\n\n
"
exit
;
fi
fi
break
;;
[
Nn]
*
)
echo
"User cancalled installation of Boost libraries, Exiting now."
;
exit
;;
*
)
echo
"Please type 1 for yes or 2 for no."
;;
esac
done
fi
printf
"
\t
Installing boost libraries.
\n
"
cd
${
TEMP_DIR
}
STATUS
=
$(
curl
-LO
-w
'%{http_code}'
--connect-timeout
30 https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.bz2
)
if
[
"
${
STATUS
}
"
-ne
200
]
;
then
printf
"
\t
Unable to download Boost libraries at this time.
\n
"
printf
"
\t
Exiting now.
\n\n
"
exit
;
fi
tar
xf
${
TEMP_DIR
}
/boost_1_66_0.tar.bz2
rm
-f
${
TEMP_DIR
}
/boost_1_66_0.tar.bz2
cd
${
TEMP_DIR
}
/boost_1_66_0/
./bootstrap.sh
"--prefix=
$BOOST_ROOT
"
if
[
$?
-ne
0
]
;
then
printf
"
\n\t
Installation of boost libraries failed. 0
\n
"
printf
"
\n\t
Exiting now.
\n
"
exit
1
fi
./b2
install
if
[
$?
-ne
0
]
;
then
printf
"
\n\t
Installation of boost libraries failed. 1
\n
"
printf
"
\n\t
Exiting now.
\n
"
exit
1
fi
rm
-rf
${
TEMP_DIR
}
/boost_1_66_0/
printf
"
\t
Boost 1.66.0 successfully installed @
${
BOOST_ROOT
}
.
\n
"
else
printf
"
\t
Boost 1.66.0 found at
${
BOOST_ROOT
}
.
\n
"
fi
printf
"
\n\t
Checking MongoDB C++ driver installation.
\n
"
if
[
!
-e
/usr/local/lib/libmongocxx-static.a
]
;
then
cd
${
TEMP_DIR
}
...
...
scripts/eosio_build_dep
浏览文件 @
5070ded7
...
...
@@ -4,7 +4,6 @@ OpenSSL,-f,/usr/local/opt/openssl/lib/libssl.a,openssl,https://www.openssl.org/s
llvm,-x,/usr/local/opt/llvm@4/bin/clang-4.0,llvm@4,http://releases.llvm.org/5.0.1/llvm-5.0.1.src.tar.xz
wget,-x,/usr/local/bin/wget,wget,https://ftp.gnu.org/gnu/wget/wget-1.19.2.tar.gz
CMake,-x,/usr/local/bin/cmake,cmake,https://cmake.org/files/v3.10/cmake-3.10.1-Darwin-x86_64.tar.gz
Boost,-f,/usr/local/opt/boost/include/boost/version.hpp,boost,https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.gz
GMP,-f,/usr/local/opt/gmp/include/gmpxx.h,gmp,https://ftp.gnu.org/gnu/gmp/gmp-6.1.2.tar.bz2
gettext,-x,/usr/local/opt/gettext/bin/gettext,gettext,https://ftp.gnu.org/pub/gnu/gettext/gettext-latest.tar.gz
MongoDB,-x,/usr/local/opt/mongodb/bin/mongod,mongodb,https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-3.6.3.tgz
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录