Closed ghost closed 2 years ago
$ cargo build
cargo build
Compiling hyper-rustls v0.14.0 Compiling git2 v0.10.2 Compiling built v0.3.2 Compiling croaring-sys v0.3.9 Compiling randomx v0.1.0 (https://gitlab.com/epiccash/randomx-rust.git#21b3792d) Compiling epic_wallet v3.0.0-alpha-2 (/Users/devron/Downloads/git/epicwallet) error: failed to run custom build command for `randomx v0.1.0 (https://gitlab.com/epiccash/randomx-rust.git#21b3792d)` Caused by: process didn't exit successfully: `/Users/devron/Downloads/git/epicwallet/target/debug/build/randomx-a38eff86731ce054/build-script-build` (exit status: 101) --- stdout Starting randomx build running: "cmake" "/Users/devron/.cargo/git/checkouts/randomx-rust-fba834b8b9a2d6f8/21b3792/randomx" "-DCMAKE_INSTALL_PREFIX=/Users/devron/Downloads/git/epicwallet/target/debug/build/randomx-ef3a8f6e946fe925/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_BUILD_TYPE=Debug"
The problem was with cmake version 3.22 to fix it //
sudo "/Applications/CMake.app/Contents/bin/cmake-gui" --install
cargo clean && cargo build --release
Cant build it on a Mac !SOLVED
$
cargo build