Skip to content

Instantly share code, notes, and snippets.

@geelen geelen/notes.md
Created Jan 27, 2015

Embed
What would you like to do?
WebkitForWayland notes on Tegra Nouveau drivers

After the previous attempt and raising an issue, I am trying to install again with a fresh rootfs as described here

First attempt failed with missing dependencies, so I reran a command from last time:

sudo apt-get install build-essential autoconf automake autopoint libtool intltool bison flex libgnutls28-dev libxml2-dev libsqlite3-dev

Stuck on installing Weston — it's missing a dependency on libinput which I can't find in the repo and the build instructions for Weston reference as needing to be built from source. Seems like this should be part of the dependency tree for Webkit, then?

Full output here

ubuntu@tegra-ubuntu:/mnt/working/src/webkit$ Tools/Scripts/update-webkitwpe-libsUpdating WPE port dependencies using jhbuild...
*** Checking out libffi *** [1/15]
*** Skipping libffi (not updated) *** [1/15]
*** Checking out glib *** [2/15]
*** Skipping glib (not updated) *** [2/15]
*** Checking out glib-networking *** [3/15]
*** Skipping glib-networking (not updated) *** [3/15]
*** Checking out libsoup *** [4/15]
*** Skipping libsoup (not updated) *** [4/15]
*** Checking out fontconfig *** [5/15]
*** Skipping fontconfig (not updated) *** [5/15]
*** Checking out pixman *** [6/15]
*** Skipping pixman (not updated) *** [6/15]
*** Checking out cairo *** [7/15]
git remote set-url origin git://github.com/WebKitForWayland/cairo.git
git remote update origin
Fetching origin
git checkout patches
Already on 'patches'
Your branch is up-to-date with 'origin/patches'.
git rebase origin/patches
Current branch patches is up to date.
*** Skipping cairo (not updated) *** [7/15]
*** Checking out wayland *** [8/15]
*** Skipping wayland (not updated) *** [8/15]
*** Checking out weston *** [9/15]
git remote set-url origin git://github.com/WebKitForWayland/weston.git
git remote update origin
Fetching origin
git checkout patches-1.6
Already on 'patches-1.6'
Your branch is up-to-date with 'origin/patches-1.6'.
git rebase origin/patches-1.6
Current branch patches-1.6 is up to date.
*** Configuring weston *** [9/15]
./autogen.sh --prefix /mnt/working/src/webkit/WebKitBuild/DependenciesWPE/Root --libdir '/mnt/working/src/webkit/WebKitBuild/DependenciesWPE/Root/lib' --disable-setuid-install --enable-libinput-backend --disable-static --disable-gtk-doc
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
configure: WARNING: unrecognized options: --disable-gtk-doc
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking whether make supports nested variables... (cached) yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking for a sed that does not truncate output... /bin/sed
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether SFD_CLOEXEC is declared... yes
checking whether TFD_CLOEXEC is declared... yes
checking whether CLOCK_MONOTONIC is declared... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for mkostemp... yes
checking for strchrnul... yes
checking for initgroups... yes
checking for posix_fallocate... yes
checking for EGL... yes
checking for EGL_TESTS... yes
checking for XWAYLAND... yes
checking for XWAYLAND_TEST... yes
checking for LIBDRM... yes
checking for LIBDRM_TEGRA... yes
checking for XCB... yes
checking for xcb_poll_for_queued_event... yes
checking for X11_COMPOSITOR_XKB... no
checking for X11_COMPOSITOR... yes
checking for DRM_COMPOSITOR... yes
checking for LIBINPUT_BACKEND... no
configure: error: Package requirements (libinput >= 0.6.0) were not met:

No package 'libinput' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBINPUT_BACKEND_CFLAGS
and LIBINPUT_BACKEND_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
*** Error during phase configure of weston: ########## Error running ./autogen.sh --prefix /mnt/working/src/webkit/WebKitBuild/DependenciesWPE/Root --libdir '/mnt/working/src/webkit/WebKitBuild/DependenciesWPE/Root/lib' --disable-setuid-install --enable-libinput-backend --disable-static --disable-gtk-doc  *** [9/15]
*** Checking out gstreamer *** [10/15]
*** Skipping gstreamer (not updated) *** [10/15]
*** Checking out gst-plugins-base *** [11/15]
*** Skipping gst-plugins-base (not updated) *** [11/15]
*** Checking out gst-plugins-good *** [12/15]
*** Skipping gst-plugins-good (not updated) *** [12/15]
*** Checking out gst-plugins-bad *** [13/15]
*** Skipping gst-plugins-bad (not updated) *** [13/15]
*** Checking out gst-libav *** [14/15]
*** Skipping gst-libav (not updated) *** [14/15]
*** module webkitwpe-testing-dependencies not built due to non buildable weston *** [15/15]
*** the following modules were not built *** [15/15]
weston webkitwpe-testing-dependencies
Running jhbuild-wrapper build failed.
Died at Tools/Scripts/update-webkitwpe-libs line 24.
ubuntu@tegra-ubuntu:/mnt/working/src/webkit$
@geelen

This comment has been minimized.

Copy link
Owner Author

commented Jan 27, 2015

Got libinput built using the following:

sudo apt-get install libevdev-dev
cd /mnt/working/src/webkit/WebKitBuild/DependenciesWPE/Source
git clone git://anongit.freedesktop.org/wayland/libinput
cd libinput/
./autogen.sh --prefix /mnt/working/src/webkit/WebKitBuild/DependenciesWPE/Root --libdir '/mnt/working/src/webkit/WebKitBuild/DependenciesWPE/Root/lib'
make
make install

The build now detects libinput at the configure stage, but I get a compile error

checking for LIBINPUT_BACKEND... yes
checking for COMPOSITOR... yes
checking for WAYLAND_COMPOSITOR... yes
checking for RPI_COMPOSITOR... yes
checking for RPI_BCM_HOST... no
configure: WARNING: Raspberry Pi BCM host libraries not found, will use stubs instead.
checking for FBDEV_COMPOSITOR... yes
checking for PIXMAN... yes
checking for PNG... yes
checking for WEBP... no
checking for LIBVA... no
checking for jpeg_CreateDecompress in -ljpeg... yes
checking for CAIRO... yes
checking for TEST_CLIENT... yes
checking for SIMPLE_CLIENT... yes
checking for SIMPLE_EGL_CLIENT... yes
checking for CLIENT... yes
checking for SERVER... yes
checking for WESTON_INFO... yes
checking for PANGO... no
checking for SYSTEMD_LOGIN... yes
checking for SYSTEMD_LOGIN_209... no
checking for pam_open_session in -lpam... yes
checking for GLU... no
checking for COLORD... no
checking for DBUS... yes
checking for WCAP... yes
checking for SETBACKLIGHT... yes
checking for LIBUNWIND... no
configure: Weston's native backend: drm-backend.so
configure: Weston's default desktop shell client: weston-desktop-shell
checking for LCMS... no
checking for wayland-scanner... /mnt/working/src/webkit/WebKitBuild/DependenciesWPE/Root/bin/wayland-scanner
checking for WAYLAND_SCANNER... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/version.h
config.status: creating src/weston.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --disable-gtk-doc

        Native Backend                  drm-backend.so
        setuid Install                  no

        Cairo Renderer                  image
        EGL                             yes
        libxkbcommon                    yes
        xcb_xkb                         no
        XWayland                        yes
        dbus                            yes

        Build wcap utility              yes
        Build Fullscreen Shell          yes

        weston-launch utility           yes
        systemd-login support           yes

        DRM Compositor                  yes
        X11 Compositor                  yes
        Wayland Compositor              yes
        Headless Compositor             yes
        RPI Compositor                  yes
        FBDEV Compositor                yes
        RDP Compositor                  no
        Screen Sharing                  no

        libinput Backend                yes

        Raspberry Pi BCM headers        no

        Build Clients                   yes
        Build EGL Clients               no
        Build Simple Clients            yes
        Build Simple EGL Clients        yes

        Install Demo Clients            no

        Colord Support                  no
        GLU Support                     no
        LCMS2 Support                   no
        libwebp Support                 no
        libunwind Support               no
        VA H.264 encoding Support       no
        Tegra DRM Support               yes

*** Building weston *** [9/15]
make -j 5
  GEN      protocol/screenshooter-protocol.c
  GEN      protocol/screenshooter-server-protocol.h
  GEN      protocol/text-cursor-position-protocol.c
  GEN      protocol/text-cursor-position-server-protocol.h
  GEN      protocol/text-protocol.c
  GEN      protocol/text-server-protocol.h
  GEN      protocol/input-method-protocol.c
  GEN      protocol/input-method-server-protocol.h
  GEN      protocol/workspaces-protocol.c
  GEN      protocol/workspaces-server-protocol.h
  GEN      protocol/scaler-protocol.c
  GEN      protocol/scaler-server-protocol.h
  GEN      protocol/text-cursor-position-client-protocol.h
  GEN      protocol/scaler-client-protocol.h
  GEN      protocol/workspaces-client-protocol.h
  GEN      protocol/xdg-shell-client-protocol.h
  GEN      protocol/xdg-shell-protocol.c
  GEN      protocol/screenshooter-client-protocol.h
  GEN      protocol/text-client-protocol.h
  GEN      protocol/input-method-client-protocol.h
  GEN      protocol/desktop-shell-client-protocol.h
  GEN      protocol/desktop-shell-protocol.c
  GEN      protocol/fullscreen-shell-protocol.c
  GEN      protocol/fullscreen-shell-client-protocol.h
  GEN      protocol/desktop-shell-server-protocol.h
  GEN      protocol/xdg-shell-server-protocol.h
  GEN      protocol/wayland-test-protocol.c
  GEN      protocol/fullscreen-shell-server-protocol.h
  GEN      protocol/wayland-test-server-protocol.h
  GEN      protocol/wayland-test-client-protocol.h
make  all-am
make[1]: Entering directory `/mnt/working/src/webkit/WebKitBuild/DependenciesWPE/Source/weston'
  CC       src/headless_backend_la-compositor-headless.lo
  CC       src/fbdev_backend_la-libinput-seat.lo
  CC       src/fbdev_backend_la-compositor-fbdev.lo
  CC       src/fbdev_backend_la-libinput-device.lo
  CC       protocol/desktop_shell_la-desktop-shell-protocol.lo
  CC       protocol/desktop_shell_la-xdg-shell-protocol.lo
src/libinput-device.c: In function 'handle_pointer_axis':
src/libinput-device.c:137:2: error: too few arguments to function 'libinput_event_pointer_get_axis_value'
  value = libinput_event_pointer_get_axis_value(pointer_event);
  ^
In file included from src/libinput-device.c:34:0:
/mnt/working/src/webkit/WebKitBuild/DependenciesWPE/Root/include/libinput.h:693:1: note: declared here
 libinput_event_pointer_get_axis_value(struct libinput_event_pointer *event,
 ^
src/libinput-device.c:140:7: warning: implicit declaration of function 'libinput_event_pointer_get_axis' [-Wimplicit-function-declaration]
       libinput_event_pointer_get_axis(pointer_event),
       ^
make[1]: *** [src/fbdev_backend_la-libinput-device.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/mnt/working/src/webkit/WebKitBuild/DependenciesWPE/Source/weston'
make: *** [all] Error 2
*** Error during phase build of weston: ########## Error running make -j 5 *** [9/15]
*** Checking out gstreamer *** [10/15]
*** Skipping gstreamer (not updated) *** [10/15]
*** Checking out gst-plugins-base *** [11/15]
*** Skipping gst-plugins-base (not updated) *** [11/15]
*** Checking out gst-plugins-good *** [12/15]
*** Skipping gst-plugins-good (not updated) *** [12/15]
*** Checking out gst-plugins-bad *** [13/15]
*** Skipping gst-plugins-bad (not updated) *** [13/15]
*** Checking out gst-libav *** [14/15]
*** Skipping gst-libav (not updated) *** [14/15]
*** module webkitwpe-testing-dependencies not built due to non buildable weston *** [15/15]
*** the following modules were not built *** [15/15]
weston webkitwpe-testing-dependencies
Running jhbuild-wrapper build failed.
Died at Tools/Scripts/update-webkitwpe-libs line 24.
ubuntu@tegra-ubuntu:/mnt/working/src/webkit$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.