@mcatanzaro
raphy@raohy:~/Downloads/NEW/webkitgtk-2.46.3$ cmake --build builddir/
[0/2] Re-checking globbed directories...
[3607/3623] Generating ../../../MiniBrowser/DerivedSo... ../../../MiniBrowser/DerivedSources/BrowserMarshal.h
INFO: Reading /home/raphy/Downloads/NEW/webkitgtk-2.46.3/Tools/MiniBrowser/gtk/browser-marshal.list...
INFO: Reading /home/raphy/Downloads/NEW/webkitgtk-2.46.3/Tools/MiniBrowser/gtk/browser-marshal.list...
[3622/3623] Generating documentation: WebKit2
/usr/lib/python3/dist-packages/typogrify/filters.py:46: SyntaxWarning: invalid escape sequence '\s'
tag = match.group(1) if match.group(1) != '' else '[^\s.#<>]+'
/usr/lib/python3/dist-packages/typogrify/filters.py:140: SyntaxWarning: invalid escape sequence '\w'
tag_pattern = '</?\w+((\s+\w+(\s*=\s*(?:".*?"|\'.*?\'|[^\'">\s]+))?)+\s*|\s*)/?>'
/usr/lib/python3/dist-packages/typogrify/packages/titlecase/__init__.py:18: SyntaxWarning: invalid escape sequence '\.'
SMALL = 'a|an|and|as|at|but|by|en|for|if|in|of|on|or|the|to|v\.?|via|vs\.?'
/usr/lib/python3/dist-packages/typogrify/filters.py:46: SyntaxWarning: invalid escape sequence '\s'
tag = match.group(1) if match.group(1) != '' else '[^\s.#<>]+'
/usr/lib/python3/dist-packages/typogrify/filters.py:140: SyntaxWarning: invalid escape sequence '\w'
tag_pattern = '</?\w+((\s+\w+(\s*=\s*(?:".*?"|\'.*?\'|[^\'">\s]+))?)+\s*|\s*)/?>'
/usr/lib/python3/dist-packages/typogrify/packages/titlecase/__init__.py:18: SyntaxWarning: invalid escape sequence '\.'
SMALL = 'a|an|and|as|at|but|by|en|for|if|in|of|on|or|the|to|v\.?|via|vs\.?'
/usr/lib/python3/dist-packages/smartypants.py:270: SyntaxWarning: invalid escape sequence '\S'
if re.match("\S", prev_token_last_char):
/usr/lib/python3/dist-packages/smartypants.py:276: SyntaxWarning: invalid escape sequence '\S'
if re.match("\S", prev_token_last_char):
[3623/3623] Generating documentation: WebKit2WebExtension
/usr/lib/python3/dist-packages/typogrify/filters.py:46: SyntaxWarning: invalid escape sequence '\s'
tag = match.group(1) if match.group(1) != '' else '[^\s.#<>]+'
/usr/lib/python3/dist-packages/typogrify/filters.py:140: SyntaxWarning: invalid escape sequence '\w'
tag_pattern = '</?\w+((\s+\w+(\s*=\s*(?:".*?"|\'.*?\'|[^\'">\s]+))?)+\s*|\s*)/?>'
/usr/lib/python3/dist-packages/typogrify/packages/titlecase/__init__.py:18: SyntaxWarning: invalid escape sequence '\.'
SMALL = 'a|an|and|as|at|but|by|en|for|if|in|of|on|or|the|to|v\.?|via|vs\.?'
/usr/lib/python3/dist-packages/typogrify/filters.py:46: SyntaxWarning: invalid escape sequence '\s'
tag = match.group(1) if match.group(1) != '' else '[^\s.#<>]+'
/usr/lib/python3/dist-packages/typogrify/filters.py:140: SyntaxWarning: invalid escape sequence '\w'
tag_pattern = '</?\w+((\s+\w+(\s*=\s*(?:".*?"|\'.*?\'|[^\'">\s]+))?)+\s*|\s*)/?>'
/usr/lib/python3/dist-packages/typogrify/packages/titlecase/__init__.py:18: SyntaxWarning: invalid escape sequence '\.'
SMALL = 'a|an|and|as|at|but|by|en|for|if|in|of|on|or|the|to|v\.?|via|vs\.?'
/usr/lib/python3/dist-packages/smartypants.py:270: SyntaxWarning: invalid escape sequence '\S'
if re.match("\S", prev_token_last_char):
/usr/lib/python3/dist-packages/smartypants.py:276: SyntaxWarning: invalid escape sequence '\S'
if re.match("\S", prev_token_last_char):
raphy@raohy:~/Downloads/NEW/webkitgtk-2.46.3$
Why when executing MiniBrowser I get this error?
raphy@raohy:~/Downloads/NEW/webkitgtk-2.46.3/builddir/bin$ ./MiniBrowser
** (WebKitWebProcess:31595): WARNING **: 08:53:26.537: Error loading the
injected bundle (/usr/local/lib/webkit2gtk-4.1/injected-bundle
/libwebkit2gtkinjectedbundle.so): /usr/local/lib/webkit2gtk-4.1/injected-bundle
/libwebkit2gtkinjectedbundle.so: cannot open shared object file: No such file or
directory
Why does it look for webkit2gtk in /usr/local/lib ?
raphy@raohy:/usr/local/lib$ ls -lah | grep webkit2gtk
raphy@raohy:/usr/local/lib$
After copying libwebkit2gtkinjectedbundle.so
into /usr/local/lib/webkit2gtk-4.1/injected-bundle
:
raphy@raohy:/usr/local/lib/webkit2gtk-4.1/injected-bundle$ ls -lah
total 4,5M
drwxr-xr-x 2 root root 4,0K nov 7 09:31 .
drwxr-xr-x 3 root root 4,0K nov 7 09:28 ..
-rwxr-xr-x 1 root root 4,5M nov 7 09:31 libwebkit2gtkinjectedbundle.so
raphy@raohy:/usr/local/lib/webkit2gtk-4.1/injected-bundle$
the error disappeared, but still MiniBrowser does not properly work:
Why if I do export WEBKIT_DISABLE_COMPOSITING_MODE=1
before executing MiniBrowser, the webpage is correctly rendered?
(workaround found here: [bug] blank page with webkit2gtk 2.42 · Issue #7927 · tauri-apps/tauri · GitHub)
raphy@raohy:~/Downloads/NEW/webkitgtk-2.46.3/builddir/bin$ export
WEBKIT_DISABLE_COMPOSITING_MODE=1
raphy@raohy:~/Downloads/NEW/webkitgtk-2.46.3/builddir/bin$ ./MiniBrowser
How to avoid to do that, fixing the problem once for all?