wailsapp / wails

Create beautiful applications using Go
https://wails.io
MIT License
25.14k stars 1.21k forks source link

Linker errors when building application #2949

Closed richbai90 closed 1 year ago

richbai90 commented 1 year ago

Description

After installing all of the necessary dependencies, running wails dev on a new wails application fails with a linker error:

Building application for development... • Generating bindings: Done. • Compiling application: # changeme /usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1 /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64/libwebkit2gtk-4.0.so: undefined reference to `gst_query_set_selectable' collect2: error: ld returned 1 exit status

To Reproduce

  1. Create a new repo with wails init -n hello_world -ide vscode
  2. Change directories to the new app cd hello_world
  3. Run wails dev
  4. Note the error

Expected behaviour

The application should build and launch a development server without issues.

Screenshots

image

Attempted Fixes

Troubleshooting steps

reinstall webkit2gtk-3 and gtk-3 reinstall gstreamer 1.14

Google Searches

System Details

Wails Doctor Output

Scanning system - Please wait (this may take a long time)... (1h1m30s) 

(I will update this when if it ever finishes)

OS : Opensuse Tumbleweed Linux Kernel Version: 6.3.4-1-default

(base) ➜  metavision_gui ls /usr/lib64/pkgconfig | grep webkit
webkit2gtk-4.0.pc
webkit2gtk-web-extension-4.0.pc
webkitgtk-6.0.pc
webkitgtk-web-process-extension-6.0.pc
(base) ➜  metavision_gui ls /usr/lib64/pkgconfig | grep gtk+
gtk+-3.0.pc
gtk+-broadway-3.0.pc
gtk+-unix-print-3.0.pc
gtk+-wayland-3.0.pc
gtk+-x11-3.0.pc

Additional context

No response

leaanthony commented 1 year ago

I believe this is a local issue, see: https://github.com/wailsapp/wails/issues/2971. Please reopen if you find it isn't 👍