-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using a platform plug-in should not need libWPEBackend-default.so #11
Comments
I confirm the issue.
And then run cog as
If i try to rung without specifying a platform value causes it crashes with
I wonder why platform is null? shouldn't default to fdo when cog has been built with fdo support? |
dyz installs this files:
So I guess cog should as well install a libWPEBackend-default.so symlink? This means installing dyz and cog at the same time in a image will cause a conflict and won't be possible. I guess the right solution will be for wpebackend to allow passing a name to the symlink (either via API call or environment variable) instead of hardcoding the value here https://github.com/WebPlatformForEmbedded/WPEBackend/blob/master/src/loader.c#L59 (note the code block above that allows passing use an environment variable, but that only gets built on debug). // Adding @zdobersek to the CC |
* When building with fdo support (-DCOG_PLATFORM_FDO=ON) create and install a libWPEBackend-default.so symlink pointing to libWPEBackend-fdo-0.1.so.0. * Also default to platform fdo is no other one is specified via command line argument.
@macpijan can you update meta-webkit, rebuild and retry ? Is it fixed? |
After giving this some thought, and discussing with @clopez by chat, ideally we would want the Cog platform plug-in to tell |
Also, change the FDO platform to set with an environment variable that "libWPEBackend-fdo.so" is to be used as WPE backend library. Note that this is a proof-of-concept and needs either a debug build of libWPEBackend, or a patched version which enables it to check the WPE_BACKEND_LIBRARY environment variable. With this applied (and a suitable libWPEBackend) it is not needed to have a libWPEBackend-default.so file, and the following command lines will work fine provided that the FDO and RDK backends are installed: % cog -P fdo $URI % cog -P nil:backend=libWPEBackend-rdk.so $URI Note that when using the "nil" platform plug-in, if the "backend" parameter is not specified, then "libWPEBackend-default.so" is still used. On the other hand, the "fdo" platform plug-in forces usage of "libWPEBackend-fdo-0.1.so" because it cannot work with anything else. This is proof-of-concept implementation of #11
Also, change the FDO platform to set with an environment variable that "libWPEBackend-fdo.so" is to be used as WPE backend library. Note that this is a proof-of-concept and needs either a debug build of libWPEBackend, or a patched version which enables it to check the WPE_BACKEND_LIBRARY environment variable. With this applied (and a suitable libWPEBackend) it is not needed to have a libWPEBackend-default.so file, and the following command lines will work fine provided that the FDO and RDK backends are installed: % cog -P fdo $URI % cog -P nil:backend=libWPEBackend-rdk.so $URI Note that when using the "nil" platform plug-in, if the "backend" parameter is not specified, then "libWPEBackend-default.so" is still used. On the other hand, the "fdo" platform plug-in forces usage of "libWPEBackend-fdo-0.1.so" because it cannot work with anything else. This is proof-of-concept implementation of #11
Like I mentioned in #12 already, I would rather go with the implementation proposed by @carlosgcampos in WebKit#186841 and WebPlatformForEmbedded/libwpe#18, which adds API to set the path to the WPE backend library, and passing it down to |
This brings in utility functions to connect to and handle the WebKitWebView::web-process-crashed signal by exiting the UI process as well. Unfortunately we cannot use g_application_quit() because it provides no way of specifying the exit code to be returned to the system. Fixes Igalia#11
Currently, even if a platform plug-in is loaded (e.g. passing
--platform=fdo
in the command line), it is still needed to have around alibWPEBackend-default.so
shared object, which typically is a symlink to the actual WPE backend being used.Ideally, when using a Cog platform plug-in,
libWPEBackend-default.so
should not be needed at all — though of course it could be still be used when running without any platform plug-in.The text was updated successfully, but these errors were encountered: