Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] could not find native static library ring_core_0_17_8_ when build android apk #11780

Open
nbeezander opened this issue Nov 23, 2024 · 0 comments
Labels
platform: Android status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@nbeezander
Copy link

Describe the bug

error: could not find native static library ring_core_0_17_8_, perhaps an -L flag is missing?

error: could not compile ring (lib) due to 1 previous error

Reproduction

pnpm tauri android build --apk

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.19045 x86_64 (X64)
    ✔ WebView2: 130.0.2849.80
    ✔ MSVC: Visual Studio 生成工具 2019
    ✔ rustc: 1.82.0 (f6e511eec 2024-10-15)
    ✔ cargo: 1.82.0 (8f40fc59f 2024-08-21)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 18.18.0
    - pnpm: 8.9.0
    - yarn: 1.22.4
    - npm: 9.8.1

[-] Packages
    - tauri 🦀: 2.1.1
    - tauri-build 🦀: 2.0.3
    - wry 🦀: 0.47.2
    - tao 🦀: 0.30.8
    - @tauri-apps/api : 2.1.1
    - @tauri-apps/cli : 2.1.0

[-] Plugins
    - tauri-plugin-shell 🦀: 2.0.2
    - @tauri-apps/plugin-shell : 2.0.1
    - tauri-plugin-os 🦀: 2.0.1
    - @tauri-apps/plugin-os : 2.0.0

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: Vue.js
    - bundler: Vite

Stack trace

error: could not find native static library `ring_core_0_17_8_`, perhaps an -L flag is missing?

warning: `ring` (lib) generated 1 warning
error: could not compile `ring` (lib) due to 1 previous error; 1 warning emitted

Caused by:
.cargo\registry\src\rsproxy.cn-0dccff568467c15b\ring-0.17.8&& set CARGO_PKG_AUTHORS="Brian Smith <[email protected]>"&& set CARGO_PKG_DESCRIPTION="Safe, fast, small crypto using Rust."&& set CARGO_PKG_HOMEPAGE=""&& set CARGO_PKG_LICENSE=""&& set CARGO_PKG_LICENSE_FILE=LICENSE&& set CARGO_PKG_NAME=ring&& set CARGO_PKG_README=README.md&& set CARGO_PKG_REPOSITORY=https://github.com/briansmith/ring&& set CARGO_PKG_RUST_VERSION=1.61.0&& set CARGO_PKG_VERSION=0.17.8&& set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION_MINOR=17&& set CARGO_PKG_VERSION_PATCH=8&& set CARGO_PKG_VERSION_PRE=""&& set OUT_DIR=E:\WorkSpace\RProject\hote\src-tauri\target\aarch64-linux-android\release\build\ring-83d2c80ee44a91e6\out&& set PATH="E:\WorkSpace\RProject\hote\src-tauri\target\release\deps;E:\WorkSpace\RProject\hote\node_modules\.bin;C:\Users\wgtam\AppData\Roaming\npm\node_modules\pnpm\dist\node-gyp-bin;C:\Program Files\Scripts\;C:\Program Files\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\resources\bin;D:\Program\nodejs\;C:\Program Files\dotnet\;C:\Program Files\Pandoc\;C:\Program Files (x86)\NetSarang\Xshell 8\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Program\MiniConda3;D:\Program\MiniConda3\Library\mingw-w64\bin;D:\Program\MiniConda3\Library\usr\bin;D:\Program\MiniConda3\Library\bin;D:\Program\MiniConda3\Scripts;C:\Users\wgtam\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\wgtam\AppData\Local\Programs\Python\Python37\;D:\Program\Python37\Scripts\;D:\Program\Python37\;D:\Program\python\Scripts\;D:\Program\python\;C:\Users\wgtam\.cargo\bin;C:\Users\wgtam\AppData\Local\Microsoft\WindowsApps;D:\Program\Microsoft VS Code\bin;C:\Users\wgtam\AppData\Local\Programs\Fiddler;E:\Mysql\MySQL Server 8.0\bin;C:\Users\wgtam\AppData\Roaming\npm;C:\Users\wgtam\.dotnet\tools;C:\Program Files\dotnet\sdk;E:\tools\Godot_v4.2.1-stable_mono_win64\GodotSharp\Tools\nupkgs;E:\apache-maven-3.9.6\bin;D:\Program\IntelliJ IDEA 
2024.1.2\bin;;D:\Android\SDK\build-tools;D:\Android\SDK\tools;D:\Android\SDK\platform-tools;D:\Android\Studio\jbr\bin;"&& set RING_CORE_PREFIX=ring_core_0_17_8_&& C:\Users\wgtam\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe --crate-name ring --edition=2021 C:\Users\wgtam\.cargo\registry\src\rsproxy.cn-0dccff568467c15b\ring-0.17.8\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=196 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg "feature=\"alloc\"" --cfg "feature=\"default\"" --cfg "feature=\"dev_urandom_fallback\"" --check-cfg cfg(docsrs) --check-cfg "cfg(feature, values(\"alloc\", \"default\", \"dev_urandom_fallback\", \"less-safe-getrandom-custom-or-rdrand\", \"slow_tests\", \"std\", \"test_logging\", \"unstable-testing-arm-no-hw\", \"unstable-testing-arm-no-neon\", \"wasm32_unknown_unknown_js\"))" -C metadata=12fd6bfa9ddd151b -C extra-filename=-12fd6bfa9ddd151b --out-dir E:\WorkSpace\RProject\hote\src-tauri\target\aarch64-linux-android\release\deps --target aarch64-linux-android -C linker=D:\Android\SDK\ndk\28.0.12674087\toolchains/llvm/prebuilt/windows-x86_64\bin\aarch64-linux-android24-clang.cmd -C strip=debuginfo -L dependency=E:\WorkSpace\RProject\hote\src-tauri\target\aarch64-linux-android\release\deps -L dependency=E:\WorkSpace\RProject\hote\src-tauri\target\release\deps --extern cfg_if=E:\WorkSpace\RProject\hote\src-tauri\target\aarch64-linux-android\release\deps\libcfg_if-c691cec757294987.rmeta --extern getrandom=E:\WorkSpace\RProject\hote\src-tauri\target\aarch64-linux-android\release\deps\libgetrandom-9247e49a06156adc.rmeta --extern libc=E:\WorkSpace\RProject\hote\src-tauri\target\aarch64-linux-android\release\deps\liblibc-5fe46d5f133ea63c.rmeta --extern spin=E:\WorkSpace\RProject\hote\src-tauri\target\aarch64-linux-android\release\deps\libspin-eb62214d0b0642b5.rmeta --extern untrusted=E:\WorkSpace\RProject\hote\src-tauri\target\aarch64-linux-android\release\deps\libuntrusted-b6fc3769d2c36d2a.rmeta --cap-lints warn -Clink-arg=-landroid -Clink-arg=-llog -Clink-arg=-lOpenSLES -l static=ring_core_0_17_8_` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
`Failed to run `cargo build`: command ["cargo", "build", "-vv", "--package", "hote", "--manifest-path", "E:\\WorkSpace\\RProject\\hote\\src-tauri\\Cargo.toml", "--target", "aarch64-linux-android", 
"--features", "tauri/custom-protocol tauri/rustls-tls", "--lib", "--release"] exited with code 101
    Error [tauri_cli_node] `Failed to run `cargo build`: command ["cargo", "build", "-vv", "--package", "hote", "--manifest-path", "E:\\WorkSpace\\RProject\\hote\\src-tauri\\Cargo.toml", "--target", "aarch64-linux-android", "--features", "tauri/custom-protocol tauri/rustls-tls", "--lib", "--release"] exited with code 101

Additional context

No response

@nbeezander nbeezander added status: needs triage This issue needs to triage, applied to new issues type: bug labels Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Android status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants