ton-blockchain / docs

TON documentation
https://ton.org/docs
83 stars 45 forks source link

FIFT doesnt compile on M1 Mac #38

Open zavidnyi opened 2 years ago

zavidnyi commented 2 years ago

M1 Mac users need to update rocksdb in /third-party in order to compile FIFT

awesome-doge commented 2 years ago

rocksdb has been updated. Currently this problem does not exist.

Here is my test code

# generate env folder / clone ton source code
mkdir ~/ton-env
cd ~/ton-env
git clone --recursive https://github.com/ton-blockchain/ton.git

# Install dependent packages
brew update
brew install openssl cmake llvm
brew link openssl --force

# compile
cd ~/ton-env/
mkdir ton-bin
cd ~/ton-env/ton-bin

CC="clang -mcpu=apple-a14"
CXX="clang++ -mcpu=apple-a14"
cmake ~/ton-env/ton -DCMAKE_BUILD_TYPE=Release -DTON_ARCH= -Wno-dev

cpunumber=$(sysctl -n hw.logicalcpu)
make -j $cpunumber

# global.config.json
cd ~/ton-env/
sudo rm -r global.config.json
wget https://ton-blockchain.github.io/global.config.json

# environment variable
export PATH=$PATH:~/ton-env/ton-bin/adnl
export PATH=$PATH:~/ton-env/ton-bin/blockchain-explorer
export PATH=$PATH:~/ton-env/ton-bin/create-hardfork
export PATH=$PATH:~/ton-env/ton-bin/crypto
export PATH=$PATH:~/ton-env/ton-bin/dht-server
export PATH=$PATH:~/ton-env/ton-bin/http
export PATH=$PATH:~/ton-env/ton-bin/lite-client
export PATH=$PATH:~/ton-env/ton-bin/rldp-http-proxy
export PATH=$PATH:~/ton-env/ton-bin/storage
export PATH=$PATH:~/ton-env/ton-bin/tddb
export PATH=$PATH:~/ton-env/ton-bin/tdfec/benchmark
export PATH=$PATH:~/ton-env/ton-bin/tdnet
export PATH=$PATH:~/ton-env/ton-bin/tl/generate
export PATH=$PATH:~/ton-env/ton-bin/tonlib
export PATH=$PATH:~/ton-env/ton-bin/utils
export PATH=$PATH:~/ton-env/ton-bin/validator-engine
export PATH=$PATH:~/ton-env/ton-bin/validator-engine-console

This issue can be closed @EmelyanenkoK