1

I'm trying to build WebKitForEmbedded https://wpewebkit.org/ but this is disaster. I've created another post about this issue (https://stackoverflow.com/questions/51578580/wpe-build-installed-directly-on-raspbian-image) but there are a lot of missing dependencies and problems with compiling this project directly on Stretch. According to articles WPE has HW support and works quite smoothly. I am still NOT able to run this application on my RPi (I've resolved about 8 config/compilation problems and I got stuck at ninth).

I've tried:

  • Chromium
  • Epiphany
  • Kweb

Animation in HTML5 canvas element works extremely slowly. I need to run application to display some animation/info and video. My question is:

  • Is WPE intended to be built directly on Raspbian? I came across on examples mostly with Buildroot or Yocto. The only native example (which fails) is here. Has anyone made it?
  • Is there any other browser with HW support/HTML5 (canvas) element?
goldilocks
  • 60,325
  • 17
  • 117
  • 234
sticker
  • 31
  • 1
  • 3

2 Answers2

1

I've had some success building an image for the Raspberry Pi using Buildroot. WPE WebKit runs very smooth on my Pi3+.

Building WPE WebKit with Buildroot goes like this:

apt-get update
apt-get install git build-essential unzip bc mtools -y
git clone https://github.com/WebPlatformForEmbedded/buildroot.git
cd buildroot
make menuconfig

Now follow the instructions here to configure it so it creates an image: https://github.com/WebPlatformForEmbedded/WPEWebKit/issues/500#issuecomment-435590466

Continue with

make

Wait a few hours and you should have your image file read under buildroot/output/images/sdcard.img

Here's a video of my results: https://www.youtube.com/watch?v=_KsCrg0kyac

However, I would still like to see a binary for Raspbian, but nobody seems to be able to build one. Here's somebody who tried, but stopped half way: https://www.j1nx.nl/ict-matters/compiling-wpe-webkit-for-the-raspberrypi/

Sam
  • 121
  • 7
0

I came across on examples mostly with Buildroot or Yocto.

These are still fundamentally linux based. Possibly you could use the executables from there although it might take some finagling.

If those are docker images, I think you will need to start off with a base system, but you can run ldd on the executables to find their shared library dependencies (if you are really lucky, the browser is built with static linking and there won't be any).

You can then copy the executables libraries out of the Yocto or whatever system, place them in a dedicated directory and either add it to the default linker paths by leaving a file in /etc/ld.so.conf.d, or (probably better) running the browser with LD_LIBRARY_PATH set. This latter will avoid the possibility of messing up linking generally (which I think is unlikely, but...). First check using ldd to see if your system already provides some of the dependencies.

goldilocks
  • 60,325
  • 17
  • 117
  • 234