tauri-apps / tauri-docs

The source for all Tauri project documentation.

Home Page:https://tauri.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Cross-compilation guide returns an OpenSSL error on WSL

Benji377 opened this issue Β· comments

πŸ“‹ 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:

  1. On Step 4 I found that I had to execute that command even if using Debian
  2. 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"]}