Closed fwn0 closed 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).
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.
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.
@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.
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 ?