-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for building upstream dependencies
Fix libtinfow include
- Loading branch information
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Building Upstream | ||
|
||
monero_c contains its own fork of contrib/depends system that is independent of monero, wownero or zano. In order to use said build system one needs to: | ||
|
||
``` | ||
pushd contrib/depends | ||
env -i \ | ||
PATH="$PATH" \ | ||
CC=gcc CXX=g++ \ | ||
make -j$(nproc) HOST=aarch64-apple-darwin | ||
popd | ||
``` | ||
|
||
Then, get path to your desired toolchain.cmake | ||
|
||
``` | ||
TOOLCHAIN_FILE=${PWD}/contrib/depends/aarch64-apple-darwin/share/toolchain.cmake | ||
``` | ||
And finally use that as part of cmake invocation, for example to compile monero you can do the following: | ||
|
||
``` | ||
pushd monero | ||
mkdir -p build/aarch64-apple-darwin | ||
cd $_ | ||
cmake \ | ||
-DCMAKE_TOOLCHAIN_FILE="$TOOLCHAIN_FILE" \ | ||
-DBUILD_TESTS=ON \ | ||
../.. | ||
``` | ||
|
||
From there you can build targets such as wallet_api | ||
|
||
``` | ||
make wallet_api -j$(nproc) | ||
``` |