WebPlatformForEmbedded / WPEBackend-rdk

BSD 2-Clause "Simplified" License
8 stars 38 forks source link

cog with rdk backend show “failed to load object with name '_wpe_view_backend_interface'“ #73

Open yangyalei opened 2 years ago

yangyalei commented 2 years ago

I want run cog with WPEBackend-rdk,and weston to see web pag. I compile WPEBackend-rdk with cmake and make command,and I have libWPEBackend-default.so link to libWPEBackend-rdk.so. When I run cog,it got eroor Here is my comile commands: cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=Yes -DCMAKE_BUILD_TYPE=Debug -DBACKEND_WAYLAND_EGL=1 -DCMAKE_INSTALL_PREFIX=/xxx/wpe/install make -j12 install And,here is the cog command output:

$ cog "www.youtube.com/tv" (cog:786347): GLib-DEBUG: 16:49:53.130: posix_spawn avoided (child_setup specified) (cog:786347): GLib-GIO-DEBUG: 16:49:53.135: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ?gio-vfs? (cog:786347): Cog-DEBUG: 16:49:53.136: platform_setup: Platform name: (null) (cog:786347): Cog-DEBUG: 16:49:53.136: Instantiating default WPE backend as fall-back. wpe_load_object: failed to load object with name '_wpe_view_backend_interface': backend doesn't implement load_object vfunc (process:786353): GLib-GIO-DEBUG: 16:49:53.147: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals (process:786353): GLib-GIO-DEBUG: 16:49:53.149: _g_io_module_get_default: Found default implementation networkmanager (GNetworkMonitorNM) for ?gio-network-monitor?

My webkit,libwpe and cog version: wpewebkit: 2.32.1 libwpe: 1.10.0 cog: 0.10.0

Originally posted by @mikeDonahoe in https://github.com/WebPlatformForEmbedded/meta-wpe/issues/284#issuecomment-466575878

yangyalei commented 2 years ago

@mikeDonahoe Have you fix it?

mikeDonahoe commented 2 years ago

My issue was resolved by switching to rdk.