[Webkit-unassigned] [Bug 178896] [WPE] Can't run dyz

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 22 13:20:57 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=178896

--- Comment #30 from Michael Catanzaro <mcatanzaro at igalia.com> ---
Ignoring that crash for now... next problem. I'm now using the fdo backend, including Carlos's fdo-glib-api branch of dyz. I've done the following work:

 * Changed the JHBuild moduleset to build wpe-fdo (in addition to wpe-mesa, for now) and Carlos's fdo-glib-api branch of dyz
 * Manually deleted the WPEBackend-default.so symlink and replaced it with a copy of WPEBackend-fdo.so

Now, to launch dyz, I have to run this arcana (from the toplevel WebKit directory):

$ Tools/jhbuild/jhbuild-wrapper --wpe run WebKitBuild/DependenciesWPE/Source/dyz/launch -b $(pwd)/WebKitBuild/Debug

That works.

But this does not work:

$ run-minibrowser --wpe --debug
Starting dyz 
dyz: error while loading shared libraries: libwlglue.so: cannot open shared object file: No such file or directory

So that's not good: dyz depends on an internal shared object that is not installed. libwlglue ought to be a static library instead, or installed and renamed. For a quick workaround, I'll modify the install target of dyz/src/Makefile:

install: dyz
        mkdir -p $(DESTDIR)$(BINDIR)
        install -m755 -t $(DESTDIR)$(BINDIR) dyz

to:

install: dyz
        mkdir -p $(DESTDIR)$(BINDIR)
        mkdir -p $(DESTDIR)$(LIBDIR)
        install -m755 -t $(DESTDIR)$(BINDIR) dyz
        install -m755 -t $(DESTDIR)$(LIBDIR) libwlglue.so

Now that avoids the linker error, but I still see a Lua error:

$ run-minibrowser --wpe --debug
Starting dyz 
apps/singleview/main.lua:7: module 'lib.wpebackend_fdo' not found:
        no field package.preload['lib.wpebackend_fdo']
        no file './lib/wpebackend_fdo.lua'
        no file '/usr/share/luajit-2.1.0-beta3/lib/wpebackend_fdo.lua'
        no file '/usr/local/share/lua/5.1/lib/wpebackend_fdo.lua'
        no file '/usr/local/share/lua/5.1/lib/wpebackend_fdo/init.lua'
        no file '/usr/share/lua/5.1/lib/wpebackend_fdo.lua'
        no file '/usr/share/lua/5.1/lib/wpebackend_fdo/init.lua'
        no file './lib/wpebackend_fdo.so'
        no file '/usr/local/lib/lua/5.1/lib/wpebackend_fdo.so'
        no file '/usr/lib64/lua/5.1/lib/wpebackend_fdo.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './lib.so'
        no file '/usr/local/lib/lua/5.1/lib.so'
        no file '/usr/lib64/lua/5.1/lib.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'

I presume this is an issue with LUA_PATH. Indeed, I can fix it with this hack:

$ LUA_PATH=WebKitBuild/DependenciesWPE/Source/dyz/src/?.lua run-minibrowser --wpe --debug

That works to start a white WPE window (white due to bug #179957). It's not clear to me why that's required only for the fdo branch of dyz and not the master branch.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171122/bc05c165/attachment-0001.html>


More information about the webkit-unassigned mailing list