Changeset View
Changeset View
Standalone View
Standalone View
web/chronik.e.cash/docs/0-chronik-setup/05-build-chronik.md
| Show All 35 Lines | |||||
| ### Build (minimal) | ### Build (minimal) | ||||
| This only builds what's necessary to run Chronik: | This only builds what's necessary to run Chronik: | ||||
| ```bash | ```bash | ||||
| mkdir build | mkdir build | ||||
| cd build | cd build | ||||
| cmake -GNinja .. -DBUILD_CHRONIK=ON -DENABLE_UPNP=OFF -DENABLE_NATPMP=OFF -DBUILD_WALLET=OFF -DBUILD_QT=OFF -DBUILD_ZMQ=OFF | cmake -GNinja .. -DBUILD_CHRONIK=ON -DENABLE_UPNP=OFF -DBUILD_WALLET=OFF -DBUILD_QT=OFF -DBUILD_ZMQ=OFF | ||||
| ninja | ninja | ||||
| ``` | ``` | ||||
| ## MacOS | ## MacOS | ||||
| ### Install dependencies | ### Install dependencies | ||||
| #### Rust | #### Rust | ||||
| Show All 21 Lines | |||||
| ### Build (minimal) | ### Build (minimal) | ||||
| This only builds what's necessary to run Chronik: | This only builds what's necessary to run Chronik: | ||||
| ```bash | ```bash | ||||
| mkdir build | mkdir build | ||||
| cd build | cd build | ||||
| cmake -GNinja .. -DBUILD_CHRONIK=ON -DENABLE_UPNP=OFF -DENABLE_NATPMP=OFF -DBUILD_WALLET=OFF -DBUILD_QT=OFF -DBUILD_ZMQ=OFF | cmake -GNinja .. -DBUILD_CHRONIK=ON -DENABLE_UPNP=OFF -DBUILD_WALLET=OFF -DBUILD_QT=OFF -DBUILD_ZMQ=OFF | ||||
| ninja | ninja | ||||
| ``` | ``` | ||||
| :::note | :::note | ||||
| On some OSX setups, RocksDB is causing linker issues. You can try setting `default-features = true` in the `rocksdb` dependency in `chronik/chronik-db/Cargo.toml`: | On some OSX setups, RocksDB is causing linker issues. You can try setting `default-features = true` in the `rocksdb` dependency in `chronik/chronik-db/Cargo.toml`: | ||||
| ```toml | ```toml | ||||
| # Key-value database | # Key-value database | ||||
| rocksdb = { version = "0.21", default-features = true } | rocksdb = { version = "0.21", default-features = true } | ||||
| ``` | ``` | ||||
| ::: | ::: | ||||