tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
84.12k stars 2.53k forks source link

[docs] Requires `zlib-devel-static` on OpenSUSE. #9054

Open Flightkick opened 8 months ago

Flightkick commented 8 months ago

It's not listed as a requirement in the docs but Tauri seems to require zlib-devel-static on OpenSUSE Tumbleweed. When not present, cargo tauri dev throws the following error, and gets stuck in the build process a while later:

   Compiling webkit2gtk v0.18.2
error: linking with `cc` failed: exit status: 1
# a ton of paths here
  = note: /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: cannot find -lz: No such file or directory
          /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: cannot find -lz: No such file or directory
          /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: cannot find -lz: No such file or directory
          /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: cannot find -lz: No such file or directory
          collect2: error: ld returned 1 exit status
# more build output
# gets stuck on
2024-03-02T16:16:09.712607Z  INFO ✅ success
FabianLars commented 8 months ago

Hi, thanks for the report. Could you please provide the full logs and the output of the tauri info command? And are you using any rust crates other than what tauri comes with by default?