The Cross-compilation guide returns an OpenSSL error on WSL
Benji377 opened this issue Β· comments
Benjamin Demetz commented
π Page(s) affected (or suggested, for new content)
https://tauri.app/v1/guides/building/linux#cross-compiling-tauri-applications-for-arm-based-devices
π Description or bullet point outline (if proposing new content)
I followed the guide on Tauri using a Windows 11 laptop and Debian on WSL2. Everything worked fine, except for two things:
- On Step 4 I found that I had to execute that command even if using Debian
- After following all steps and executing the build command, it would fail with an error similar to:
Failed to find OpenSSL development headers.
.
I was able to fix that issue by adding the following line to the /src-tauri/Cargo.toml
file:
openssl-sys = {version = "0.9.66", features = ["vendored"]}