Skip to content

The Cross-compilation guide returns an OpenSSL error on WSL #1539

@Benji377

Description

@Benji377

📋 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"]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions