-
Notifications
You must be signed in to change notification settings - Fork 21
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
Update Dockerfile with Android SDK #50
Comments
See also: #48 (comment) |
This comment has been minimized.
This comment has been minimized.
Now we should be able to compile directly to the Since we have already specified the linker name in [target.arm-linux-androideabi]
linker = "armv7a-linux-androideabi21-clang"
[target.aarch64-linux-android]
linker = "aarch64-linux-android21-clang" Just add Then, install new rust target: rustup target add arm-linux-androideabi Start building with: CARGO_BUILD_TARGET=arm-linux-androideabi cargo make build It should work |
Maybe you can verify why this is happening, but I ran into this issue:
The weird part is that I re-ran this command:
And then it successfully built for me:
|
I don't see any problem with this. On your first build, the error message reported is:
This means that you may not have the |
But the Dockerfile already added it? So I basically need to do it twice. |
Oh, I see, I know the reasons. To explain this, I would like to first introduce that rust allows multiple toolchains to exist in the system. and this can be checked with
By default the toolchain to be used is the stable version. But if there is a file named Here is a part of the Dockerfile: RUN rustup-init -y && \
rustup toolchain install stable && \
rustup target add arm-linux-androideabi && \
cargo +stable install --force cargo-make
WORKDIR /usr/src/proot-rs
COPY . /usr/src/proot-rs
CMD ["cargo", "make", "build"] Here, the line rustup target add arm-linux-androideabi comes before COPY . /usr/src/proot-rs This means that we are installing a new target But our project is actually using the |
I have added a patch ffdec87 |
See: https://github.com/mindrunner/docker-android-sdk
The text was updated successfully, but these errors were encountered: