mariospr / webkit2gtk-ARM

15 stars 6 forks source link

Cairo not found during cmake checks #2

Closed Jonny-Johnson closed 2 years ago

Jonny-Johnson commented 2 years ago

Hello,

I hope you are still active in this repository.

In issue #1 , user SomeoneWeird had the same problem but I thought I'd open a new thread since the other one is horribly old.

I tried to follow your guide. Although I'm now on a Debian Bullseye chroot since I have a Bullseye Docker Container, too. I'm doing the chroot inside the docker container and using the root user since I couldn't get sudo to work for a normal user. Is that ok?

Since there are more dependencies now, I grabbed these packages using apt-get install inside the chroot:

libcairo2-dev ruby2.7 \
     libgcrypt20-dev libharfbuzz-dev libatk1.0-dev libgtk-3-dev libsoup2.4-dev libwpe-1.0-dev \
     libwpebackend-fdo-1.0-dev libsecret-1-dev libgirepository1.0-dev libtasn1-6-dev \
     libxt-dev libnotify-dev libhyphen-dev libjpeg62-turbo-dev libopenjp2-7-dev libwoff-dev \
     libsystemd-dev liblcms2-dev libseccomp-dev \
     libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gperf libenchant-2-dev \
     libwebp-dev libxslt1-dev bubblewrap xdg-dbus-proxy gettext

This is my cmake command:

cmake -DCMAKE_TOOLCHAIN_FILE=/root/webkit2gtk-ARM/armv7l-toolchain.cmake \        -DPORT=GTK \
        -DCMAKE_BUILD_TYPE=RelWithDebInfo \
        -DCMAKE_INSTALL_SYSCONFDIR=/etc \
        -DCMAKE_INSTALL_LOCALSTATEDIR=/var \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib/arm-linux-gnueabihf \
        -DCMAKE_INSTALL_LIBEXECDIR=lib/arm-linux-gnueabihf \
        -DENABLE_PLUGIN_PROCESS_GTK2=OFF \
        -DENABLE_GEOLOCATION=OFF \
        -DUSE_LD_GOLD=OFF \
        -DENABLE_MINIBROWSER=ON -DUSE_SOUP2=ON -DENABLE_GAMEPAD=OFF -DENABLE_GLES2=ON -DENABLE_ACCELERATED_2D_CANVAS=OFF \
        ../.

This is my error output:

-- Check size of __int128_t
-- Check size of __int128_t - failed
CMake Error at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
  Could NOT find Cairo (missing: Cairo_LIBRARY) (found suitable version
  "1.16.0", minimum required is "1.14.0")
Call Stack (most recent call first):
  /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
  Source/cmake/FindCairo.cmake:89 (find_package_handle_standard_args)
  Source/cmake/WebKitFindPackage.cmake:105 (_find_package)
  Source/cmake/OptionsGTK.cmake:11 (find_package)
  Source/cmake/WebKitCommon.cmake:220 (include)
  CMakeLists.txt:20 (include)

-- Configuring incomplete, errors occurred!
See also "/root/webkit2gtk-ARM/webkitgtk-2.36.1/BUILD/CMakeFiles/CMakeOutput.log".
See also "/root/webkit2gtk-ARM/webkitgtk-2.36.1/BUILD/CMakeFiles/CMakeError.log".

And here I confirmed that I have libcairo2-dev installed:

(focal-amd64)root@e04128b0748d:~/webkit2gtk-ARM/webkitgtk-2.36.1/BUILD# apt-get install libcairo2-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libcairo2-dev is already the newest version (1.16.0-5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I would love some help to get this cross-build going.

Thanks, Jonny

mariospr commented 2 years ago

@Jonny-Johnson hi there! I'm sorry but unfortunately I haven't been active on this repository (or WebKit fwiw) for several years now, so I'm not sure I can really help you much with this other than insisting on that you make sure that you have the right version of Cairo installed inside the chroot (in issue #1 it seemed like the problem could be related to that).

If that does not work I'm afraid you'll have to poke into this yourself since I don't have now the time, nor the correct environment, to go into this myself.

Sorry not to be more helpful, but I can't do much at the moment. Good luck in any case!