ev3dev-lang-rust icon indicating copy to clipboard operation
ev3dev-lang-rust copied to clipboard

cross-compilation instructions are confusing

Open Natejoestev opened this issue 1 year ago • 5 comments

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 for openssl-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.

Natejoestev avatar Feb 18 '24 22:02 Natejoestev

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.

pixix4 avatar Feb 20 '24 18:02 pixix4

whatever the example repo uses.

Natejoestev avatar Feb 21 '24 00:02 Natejoestev

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.

pixix4 avatar Feb 21 '24 20:02 pixix4

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.

Natejoestev avatar Feb 22 '24 17:02 Natejoestev

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.

pixix4 avatar Feb 25 '24 08:02 pixix4