Open2

Tuariでの開発まとめ

トントントントン

npm run tauri devコマンドでエラー

error: failed to run custom build command for `gdk-sys v0.18.0

が出るのでpathの設定や再installしても解決しない

環境

 OS: Ubuntu 22.4.0 x86_64 (X64)
✔ webkit2gtk-4.1: 2.44.3
✔ rsvg2: 2.52.5
✔ rustc: 1.82.0 
✔ cargo: 1.82.0 
✔ rustup: 1.27.1 
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu
- node: 20.18.0
- yarn: 1.22.22
- npm: 10.8.2
- bun: 1.1.31
- deno: deno 2.0.2
[-] Packages
- tauri 🦀: 2.0.4
- tauri-build 🦀: 2.0.1
- wry 🦀: 0.46.2
- tao 🦀: 0.30.3
- tauri-cli 🦀: 2.0.3
- @tauri-apps/api : 2.0.2
- @tauri-apps/cli : 2.0.3
[-] Plugins
- tauri-plugin-shell 🦀: 2.0.1
- @tauri-apps/plugin-shell : 2.0.0
[-] App
 - bundler: Vite

解決した方法

このissueにあるhomebrewをアンインストールすることで解決
https://github.com/tauri-apps/tauri/issues/3856

トントントントン

error: linking with cc failed: exit status:1が発生

再起動後に発生どうも、以前のバグを修正しようと弄っているうちにリンキングのあたりまで弄っているよう?

解決方法

$rustup update stable
$cargo install tauri-cli -f

https://github.com/tauri-apps/tauri/issues/8717
↑を参考に再インストールとアップデートで解決