-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
android compilation fails sqlite #6047
Comments
termux/termux-packages#14576 or termux/termux-packages#8029 seem to be the same/a similar problem. The solution/workaround seems to be to add additional link arguments in Another solution I tried was to downgrade to ndk version 22 but then i get |
got same error, i dont know how to fix it |
有同样的错误,也还没有找到解决方案 |
找到了一个临时解决方案有效解决了编译sqlite3 ld: error: undefined symbol: __extenddftf2 的问题
在.cargo/config.toml 中针对异常的编译目标(x86_64-linux-android)添加 rustflags 参数,我的参数如下:
|
Digging through linked issues, the workaround here solved it for me: https://github.com/matrix-org/matrix-rust-sdk/pull/1782/files |
seems like it's getting fixed upstream rusqlite/rusqlite#1592 (all rust bindings use libsqlite-sys from that repo afaik) |
Describe the bug
Hey, I continue on my tauri android dev journey. I think I found a bug regarding sqlite3. As soon to my tauri project I add
sqlx
withsqlite
feature enabled as dependency, the project fails to compile with the following error (shortened) :Reproduction
No response
Expected behavior
No response
Platform and versions
Environment
› OS: Arch Linux Unknown X64
› Node.js: 16.17.1
› npm: 8.15.0
› pnpm: Not installed!
› yarn: 1.22.19
› rustup: 1.25.1
› rustc: 1.66.1
› cargo: 1.66.1
› Rust toolchain: stable-x86_64-unknown-linux-gnu
Packages
WARNING: no lock files found, defaulting to npm
› @tauri-apps/cli [NPM]: 2.0.0-alpha.1
› @tauri-apps/api [NPM]: 2.0.0-alpha.0
› tauri [RUST]: 2.0.0-alpha.2,
› tauri-build [RUST]: 2.0.0-alpha.0,
› tao [RUST]: 0.15.8,
i › wry [RUST]: 0.23.4,
App
› build-type: bundle
› CSP: default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
› distDir: ../dist
› devPath: http://localhost:9000/
› framework: React
› bundler: Webpack
App directory structure
├─ public
├─ src-tauri
├─ node_modules
├─ src
└─ dist
Stack trace
Additional context
No response
The text was updated successfully, but these errors were encountered: