Marekkon5 / onetagger

Music tagger for Windows, MacOS and Linux with Beatport, Discogs, Musicbrainz, Spotify, Traxsource and many other platforms support.
https://onetagger.github.io/
GNU General Public License v3.0
587 stars 31 forks source link

Missing webkit2gtk #252

Closed fwn0 closed 1 year ago

fwn0 commented 1 year ago

onetagger: error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory How can I add webkit2gtk with all deps to your go binary ?

Marekkon5 commented 1 year ago

Hello, statically linking webkit2gtk is probably a bad idea and most likely isn't a fun way to spend the afternoon. You should just install libwebkit2gtk-4.1-dev as dependency on your machine (using apt or whatever package manager you use).

fwn0 commented 1 year ago

Yes, with installing of libwebkit2gtk runs onetagger perfect, but I'd like get the independent portable binary. I see here in the topic ( https://bugs.webkit.org/show_bug.cgi?id=181695 ), that it's not easy and very complicated to build static webkit2gtk.

Marekkon5 commented 1 year ago

Yes, that's what I said. You can try yourself, or perhaps try the easier way of using AppImage or zipping the .so files alongside the binary. I won't officially support this and probably close this issue, because I don't see any advantages or purpose in doing this, however feel free to comment or reopen if you have more questions. BTW: -cli version doesnt depend on any system libraries.

Marekkon5 commented 1 year ago

@fwn0 Just a note if you're actually going to try this: consider building for -musl target and using Alpine linux (container), since those are intended for building fully static binaries.