You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I took an tauri based project that translate texts offline, lingo
and migrated to latest tauri versions:
[build-dependencies]
tauri-build = { version = "2.0.3", features = [] }
[dependencies]
tauri = { version = "2.1.1", features = ["devtools"] }
tauri-plugin-shell = "2.0.2"
tauri-plugin-fs = "2.0.3"
Did the conversion to main->lib, main.
But for android project have this openssl error:
run pkg_config fail: pkg-config has not been configured to support cross-compilation.
Install a sysroot for the target platform and configure it via
PKG_CONFIG_SYSROOT_DIR and PKG_CONFIG_PATH, or install a
cross-compiling wrapper for pkg-config and set it via
PKG_CONFIG environment variable.
--- stderr
thread 'main' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-sys-0.9.102/build/find_normal.rs:190:5:
Could not find directory of OpenSSL installation, and this `-sys` crate cannot
proceed without this knowledge. If OpenSSL is installed and this crate had
trouble finding it, you can set the `OPENSSL_DIR` environment variable for the
compilation process.
Make sure you also have the development packages of openssl installed.
For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora.
If you're in a situation where you think the directory *should* be found
automatically, please open a bug at https://github.com/sfackler/rust-openssl
and include information about your system as well as this message.
$HOST = x86_64-unknown-linux-gnu
$TARGET = aarch64-linux-android
openssl-sys = 0.9.102
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I have this action that compiles the android project, if someone have some idea how to install this required openssl on the container that compiles the android. Here it is
Here is the aproach to compile android version (over previous branch): https://github.com/RaulTrombin/lingo/tree/try_android
I have this same issue with local build and the CI action, we can use the CI action to track&fix this.
since you only have one dependency using openssl (reqwest) i'd recommend to just try rustls instead. To do this, disable reqwest's default features, and enable rustls-tls (alongside the other default features except openssl).
reqwest = { version = "0.12", default-features = false, features = [ "rustls-tls", "http2", "charset", "macos-system-configuration"] }
If in the future you need openssl for a crate that doesn't support switching, you can enable reqwest's native-tls-vendored (alongside it's default features instead of the above) or add openssl-sys = { version = "0.9", features = ["vendored"] } (same thing basically), which should work on linux and macos hosts.
Describe the bug
Hello, I took an tauri based project that translate texts offline, lingo
and migrated to latest tauri versions:
Did the conversion to main->lib, main.
But for android project have this openssl error:
I have this action that compiles the android project, if someone have some idea how to install this required openssl on the container that compiles the android. Here it is
Reproduction
Here is the conversion from tauri2-beta to tauri latests version: https://github.com/RaulTrombin/lingo/tree/sync_tauri_latest
Here is the aproach to compile android version (over previous branch):
https://github.com/RaulTrombin/lingo/tree/try_android
I have this same issue with local build and the CI action, we can use the CI action to track&fix this.
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: