Igalia / wpe-android

WPE WebKit for Android
GNU Lesser General Public License v2.1
67 stars 14 forks source link

Bootstrap Issues #140

Open vanshg opened 2 years ago

vanshg commented 2 years ago

Ran into the following issue on a fresh clone and trying to follow the bootstrap instructions on macOS 12.6 on an M1 Macbook Pro with Python 3.10.7

./tools/scripts/bootstrap.py results in FileNotFoundError: [Errno 2] No such file or directory: 'readelf'

Ok, so then I tried to install readelf via the binutils package which contains that command. (brew install binutils)

Tried the command again, and got this:

➜  wpe-android git:(main) ./tools/scripts/bootstrap.py                          
Namespace(arch='arm64', version='2.34.6', cerbero=None, build=False, debug=False, wrapper=False)
Downloading packages...
  https://wpewebkit.org/android/bootstrap/2.34.6/wpewebkit-android-arm64-2.34.6.tar.xz - done
  https://wpewebkit.org/android/bootstrap/2.34.6/wpewebkit-android-arm64-2.34.6-runtime.tar.xz - done
Extracting dependencies packages...
Installing dependencies into wpe-android project...
NEEDED but not provided:
     libOpenSLES.so
     libGLESv2.so
Provided but not NEEDED:
     libgstvulkan-1.0.so
     libgstplayer-1.0.so
     libvorbisfile.so
     libgstvalidate-1.0.so
     libgstinsertbin-1.0.so
     libdvdnav.so
     libexslt.so
     libWPEInjectedBundle.so
     libcharset.so
     libgstcodecs-1.0.so
     libcairo-script-interpreter.so
     libstdc++.so
     libgthread-2.0.so
     libtheora.so
     libsrt_1_4.so
     libgsttranscoder-1.0.so
     liborc-test-0.4.so
     libWPEBackend-android.so
     libicuio_68.so
     liboggkate.so
     libgstallocators-1.0.so
     libturbojpeg.so

Are there some extra dependencies I need to install first?

zongren commented 1 year ago

any progress? @vanshg

vanshg commented 1 year ago

Ah, no, I haven't made any further attempt at this

zongren commented 1 year ago

looks like need a linux machine after all

vanshg commented 1 year ago

@neodesys @zhani Is this true? Any input you could give?

neodesys commented 1 year ago

As written in the README file, we've only tested the build process under Linux so far. So it may (or not) work on other systems. But seeing your logs it seems that after installing the readelf tool you've completed the installation of the wpe-webkit dependencies, the rest of the process is using the Android SDK/NDK tools so I think it should work straigthforward after this point.

Don't worry for the "NEEDED but not provided" libraries, they are in fact provided by the Android system. It just means they are not provided with the wpe-webkit package, which is normal.