EOS Smart Contract - MAC

in #eos6 years ago (edited)

테스트 환경

  • Mac version 10.13.4
  • OpenSSL version 2.2.7
  • MongoDB
  • Cmake version 3.11.1

라이브러리 설치

#cmake
$ brew install cmake
$ brew update cmake
#openssl
$ brew install openssl
$ export CPPFLAGS=”-I/usr/local/opt/openssl/include”
$ export LDFLAGS=”-L/usr/local/opt/openssl/lib”
#mongodb
$ git clone https://github.com/mongodb/mongo-cxx-driver.git --branch releases/stable --depth 1
$ cd mongo-cxx-driver/build
$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local
$ make
$ sudo make install
#xcode
$ xcode-select –-install
$ ruby –e “$(curl-fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
#eos
$ git clone https://github.com/eosio/eos --recursive

EOS

$ cd eos
$ git checkout DAWN-2018-02-14
$ git submodule update –recursive
$ git submodule init
$ git submodule update
$ cmake -DEOS_LIBBSONCXX=/usr/local/lib/libbsoncxx.dylib -DEOS_LIBMONGOCXX=/usr/local/lib/libmongocxx.dylib
$ ./build.sh darwin

Sort:  

Congratulations @cho.dev! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.19
TRX 0.16
JST 0.030
BTC 79865.47
ETH 3170.38
USDT 1.00
SBD 2.74