pixix4 / ev3dev-lang-rust

Rust language bindings for http://ev3dev.org
MIT License
71 stars 14 forks source link

cross-compilation instructions are confusing #28

Open Natejoestev opened 7 months ago

Natejoestev commented 7 months ago

I am trying to get HTTP and TCP connections working with the ev3dev rust langauge. I have run into the error error: failed to run custom build command foropenssl-sys v0.9.99when usingreqwest` crate.

i have tried to follow the cross-compilation instructions. but to me they are very confusing. could someone help me understand.

pixix4 commented 7 months ago

Which variant did you try? The musl toolchain or the docker build? And do you have a link to your project? Then I could try to reproduce this error and extend the README file.

Natejoestev commented 7 months ago

whatever the example repo uses.

pixix4 commented 7 months ago

The template repository uses the musl toolchain. This variant has a simpler setup process but can be difficult to work with external dependencies. You can try the Docker build as described here.

At the weekend I will try to convert the template repo to the Docker build and add SSL support to the example.

Natejoestev commented 6 months ago

i tried following the steps described in the docker toolchain section. but when i went through, stuff kept throwing errors, and i think because i'm using powershell the docker command doesn't work.

pixix4 commented 6 months ago

I updated the template repo with with screen and reqwest support. The build process should work on Windows 11 with Docker Desktop (WSL 2 backend) and powershell.