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

Crosscompile for ARM in 2_4 #256

Open
tango25001 opened this issue Jan 4, 2020 · 6 comments
Open

Crosscompile for ARM in 2_4 #256

tango25001 opened this issue Jan 4, 2020 · 6 comments

Comments

@tango25001
Copy link

Hello I tried to crosscompile for ARM (Raspian)
when i do this the way I did for 2.3 (ARM Linux Version #46 )
i get the following error on 2.4:

https://pastebin.com/Lg9k9i3a

what can I do?

Thank you very much!

@tango25001
Copy link
Author

I just did what is mentioned in #46
and it run perfect on my Raspi with raspian

maybe i will try to compile directly on my Raspi, but i have never done this before.

@Biswa96
Copy link

Biswa96 commented Jan 6, 2020

I have uploaded a ARMv7 rust binary here https://github.com/Biswa96/gnirehtet-miui/releases. It works in my Raspberry Pi 4B.

@Biswa96
Copy link

Biswa96 commented Jan 6, 2020

There are 3 compiler warnings in relay-rust.

Click here to see those warnings
warning: unnecessary parentheses around type
  --> src/relay/byte_buffer.rs:33:76
   |
33 |     pub fn read_from<R: io::Read>(&mut self, source: &mut R) -> io::Result<(bool)> {
   |                                                                            ^^^^^^ help: remove these parentheses
   |
   = note: `#[warn(unused_parens)]` on by default

warning: unnecessary parentheses around type
   --> src/relay/client.rs:290:38
    |
290 |     fn read(&mut self) -> io::Result<(bool)> {
    |                                      ^^^^^^ help: remove these parentheses

warning: unnecessary parentheses around type
  --> src/relay/ipv4_packet_buffer.rs:33:76
   |
33 |     pub fn read_from<R: io::Read>(&mut self, source: &mut R) -> io::Result<(bool)> {
   |                                                                            ^^^^^^ help: remove these parentheses

@rom1v
Copy link
Collaborator

rom1v commented Jan 6, 2020

👍

I fixed them on dev recently (but I forgot to push): 25d703d.

@tango25001
Copy link
Author

Hello @Biswa96 could you kindly explain how you compiled? Thank you very much!

@Biswa96
Copy link

Biswa96 commented Jan 6, 2020

I compiled it in Raspberry Pi 4B using normal method, no cross compile.

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

No branches or pull requests

3 participants