Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move cross compiling steps into proper heading #4494

Merged
merged 1 commit into from
Oct 15, 2018
Merged

Move cross compiling steps into proper heading #4494

merged 1 commit into from
Oct 15, 2018

Conversation

Technohacker
Copy link
Contributor

No description provided.

The required packages are the names for each toolchain on apt. Depending on your distro, they may have different names.
Then go back to the source dir and type:

* ```cmake -DCMAKE_TOOLCHAIN_FILE=`pwd`/contrib/depends/<chosen triplet>/share/toolchain.cmake```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is destructive to some of your source files (Makefiles, etc...), so this might be a good time and place to fix it.
mkdir -p build/depends/<chosen triplet>
cd build/depends/<chosen triplet>
cmake -DCMAKE_TOOLCHAIN_FILE=`pwd`/../../../contrib/depends/<chosen triplet>/share/toolchain.cmake ../../..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, true. For my local tests I manually made the build directory. Best solution is to make a Makefile rule

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I intended for some more people to have this discussion, before I dictate the command for the makefile. I suggest the following patch: https://paste.ubuntu.com/p/KSw979QG3g/ , which takes a new make command line argument. Since the way depends builds are run, I think this is justified.
So the build will then look like: make depends target=x86_64-linux-gnu and will run everything you have above.

Copy link
Contributor

@fluffypony fluffypony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed

@fluffypony fluffypony merged commit 0a9bd1b into monero-project:master Oct 15, 2018
fluffypony added a commit that referenced this pull request Oct 15, 2018
0a9bd1b Move cross compiling steps into proper heading (K3v1n Kur14k053)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants