Hello Folks,
does anyone know about or uses wails on opensuse? I wanted to use wails for some small hobby projects. I tried to follow the installation guide for Linux, installed all necessary packages (at least I thought I did) but the command wails doctor spits out:
# Dependencies ┌──────────────────────────────────────────────────────────────┐ | Dependency | Package Name | Status | Version | | *docker | docker | Installed | 29.4.0_ce-40.3 | | gcc | gcc-c++ | Installed | 16.2.0 | | libgtk-3 | gtk3-devel | Installed | 3.24.52-2.2 | | libwebkit | Unknown | Not Found | | | npm | Unknown | Not Found | 12.0.2 | | pkg-config | pkgconf-pkg-config | Installed | 2.5.1-1.5 | | | └────────────────── * - Optional Dependency ───────────────────┘ # Diagnosis WARNING Your system has missing dependencies! Fatal: Required dependencies missing: libwebkit npm I got npm26 installed and even checked the packages I need, suggested in the Linux Distro support, and put them in the function in the "/home/username/go/pkg/mod/github.com/wailsapp/wails/v2@v2.15.0/internal/system/packagemanager/zypper.go", so wails can find them. The function looks like this, now:
func (z *Zypper) Packages() packagemap { return packagemap{ "libgtk-3": []*Package{ {Name: "gtk3-devel", SystemPackage: true, Library: true}, {Name: "libgtk-3-0", SystemPackage: true, Library: true}, }, "libwebkit": []*Package{ {Name: "webkit2gtk3-soup2-devel", SystemPackage: true, Library: true}, {Name: "webkit2gtk3-devel", SystemPackage: true, Library: true}, {Name: "libwebkit2gtk-4_1-0", SystemPackage: true, Library: true}, }, "gcc": []*Package{ {Name: "gcc-c++", SystemPackage: true}, }, "pkg-config": []*Package{ {Name: "pkg-config", SystemPackage: true}, {Name: "pkgconf-pkg-config", SystemPackage: true}, }, "npm": []*Package{ {Name: "npm10", SystemPackage: true}, {Name: "npm20", SystemPackage: true}, {Name: "npm24", SystemPackage: true}, {Name: "npm26", SystemPackage: true}, }, "docker": []*Package{ {Name: "docker", SystemPackage: true, Optional: true}, }, } } But wails still doesn't recognize my libwebkit and npm. Does anybody know why?
Also when I use wails init -n myproject -t vanilla to get a dummy project and wails dev everything works like it should. But wails build -tags webkit2_41 spits out an error.
Build Options Platform(s) | linux/amd64 Compiler | /usr/bin/go Skip Bindings | false Build Mode | production Devtools | false Frontend Directory | /home/user/Dokumente/wails/myproject/frontend Obfuscated | false Install Scope | machine Skip Frontend | false Compress | false Package | true Clean Bin Dir | false LDFlags | Tags | [webkit2_41] Race Detector | false # Building target: linux/amd64 • Generating bindings: Done. • Installing frontend dependencies: Done. • Compiling frontend: Done. • Compiling application: # github.com/wailsapp/wails/v2/pkg/assetserver/webview # [pkg-config --cflags -- gtk+-3.0 gio-unix-2.0 webkit2gtk-4.1 gtk+-3.0 gio-unix-2.0 webkit2gtk-4.1 gtk+-3.0 webkit2gtk-4.1 libsou p-3.0 gtk+-3.0 gio-unix-2.0 webkit2gtk-4.1] Package webkit2gtk-4.1 was not found in the pkg-config search path. Perhaps you should add the directory containing `webkit2gtk-4.1.pc' to the PKG_CONFIG_PATH environment variable Package 'webkit2gtk-4.1' not found Package 'webkit2gtk-4.1' not found Package 'webkit2gtk-4.1' not found Package 'libsoup-3.0' not found Package 'webkit2gtk-4.1' not found ERROR exit status 1 ERROR exit status 1 Am I missing something or does anyone have an Idea how to fix this? I appreciate every help you folks can give me.
[link] [留言]