Also need option !lto
to build with devtools
Build time:
real 16m2,048s
user 199m8,105s
sys 20m9,741s
with Ryzen 9 3900X 12c/12t -j23
Git Clone URL: | https://aur.archlinux.org/webkitgtk.git (read-only, click to copy) |
---|---|
Package Base: | webkitgtk |
Description: | Legacy Web content engine for GTK+ 3 |
Upstream URL: | https://webkitgtk.org/ |
Licenses: | custom |
Conflicts: | libwebkit3, webkitgtk3 |
Provides: | libwebkit3, webkitgtk3 |
Replaces: | libwebkit3, webkitgtk3 |
Submitter: | City-busz |
Maintainer: | frealgagu |
Last Packager: | frealgagu |
Votes: | 68 |
Popularity: | 0.001764 |
First Submitted: | 2017-06-30 07:40 (UTC) |
Last Updated: | 2023-08-15 19:11 (UTC) |
Also need option !lto
to build with devtools
Build time:
real 16m2,048s
user 199m8,105s
sys 20m9,741s
with Ryzen 9 3900X 12c/12t -j23
@basbjo installing the base-devel package is an AUR prerequisite
Need libsoup
to build with devtools:
checking for LIBSOUP... no
configure: error: Package requirements (libsoup-2.4 >= 2.42.0) were not met:
Package 'libsoup-2.4', required by 'virtual:world', not found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
I noticed that I need to add "automake" and "bison" to the dependencies to install the package.
I managed to build this successfully by installing icu70
Failed to build
/tmp/webkitgtk/webkitgtk-2.4.11/Source/WTF/wtf/HashTraits.h:169:8: note: 'struct WTF::KeyValuePair<int, WTF::OwnPtr<WebCore::GlyphMetricsMap<float>::GlyphMetricsPage> >' declared here
169 | struct KeyValuePair {
| ^~~~~~~~~~~~
make[1]: *** [GNUmakefile:55613: Source/WebCore/platform/graphics/libPlatform_la-SegmentedFontData.lo] Error 1
make[1]: Leaving directory «/tmp/webkitgtk/build-gtk»
make: *** [GNUmakefile:30372: all] Error 2
Is this intended to provide the libwebkitgtk-1.0
shared object? I'm trying to use the Garmin Connect IQ SDK Manager, and it fails to launch complaining that that SO is missing. Anything I can find online says that libwebkitgtk-1.0-0
is the appropriate apt/debian package, but I don't know what to install on Arch/Manjaro.
I tried building and installing this package but no dice:
sdkmanager: error while loading shared libraries: libwebkitgtk-1.0.so.0: cannot open shared object file: No such file or directory
~If that's not the intention of this package, does anyone know how to get libwebkitgtk
on Arch/Manjaro?~
UPDATE: I just built webkitgtk2
instead, that did the trick.
@orgio89 Package was updated to pkgrel 26. https://github.com/frealgagu/archlinux.webkitgtk/releases contains the latest built package which is compiled with the ICU 70.1
@kinta you must rebuild webkitgtk against the latest icu version. You can use yay -S --rebuild webkitgtk to force yay to rebuild the package.
Binary from github no longer valid as icu has been updated to 70:
/usr/bin/jsc-1: error while loading shared libraries: libicui18n.so.69: cannot open shared object file: No such file or directory
Pinned Comments
frealgagu commented on 2019-04-14 18:13 (UTC) (edited on 2020-12-06 03:31 (UTC) by frealgagu)
FAQ
Q: What's the difference between this package and extra/webkit2gtk?
A: webkitgtk/webkitgtk2 provides WebKit1 API/ABI, which is not compatible with WebKit2 API/ABI provided by extra/webkit2gtk. WebKitGTK+ 2.4.x is the latest branch that provides WebKit1 API. Later branches provides WebKit2 API only.
Please don't flag it as out-of-date.
Q: Are there binaries for this package somewhere?
A: I maintain the latest built package at https://github.com/frealgagu/archlinux.webkitgtk/releases
Q: "error while loading shared libraries: libicui18n.so.62: cannot open shared object file: No such file or directory"
A: You'll need to rebuild against the latest version of ICU.
Q: "error: ‘WTF::StringImpl::StaticASCIILiteraicASCIILiteral’ has not been declared" or any enchant errors.
A: If you are building in parallel, try disabling parallel using -j1 in /etc/makepkg.conf
Q: Why building takes too long time?
A: WebKit is inherently big and complex. You can modify /etc/makepkg.conf or PKGBUILD directly to build it in parallel.
Change "make all stamp-po" by "make -j x all stamp-po" in PKGBUILD replacing x by cores your machine has. (Thanks to @MadMe)
Change /etc/makepkg.conf in that way: https://wiki.archlinux.org/index.php/makepkg#Parallel_compilation under
# ARCHITECTURE, COMPILE FLAGS
useMAKEFLAGS="-j9"
# It should be one more than your virtual CPUs. (Thanks to @tuxsavvy).However be pending if errors occur as mentioned in previous question.
Q: How much I want to wait to a successful compilation?
A: It varies of your PC's processor and RAM, the times shared in the comments are as follow:
3.5 hours to build on core i5 laptop with 8G of RAM, makeflags j4. (@cabbage)
13.5 hours to build on AMD Athlon X2, makeflags j1 (@Bonnietwin).
5-6 hours on Core2Duo E8400 with 8GB RAM, makeflags j2 (tuxsavvy).
50 minutes on 6c/12t 3.3GHz (@kubrick).