Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails to find wlroots #349

Closed
matti opened this issue Aug 21, 2024 · 3 comments
Closed

fails to find wlroots #349

matti opened this issue Aug 21, 2024 · 3 comments

Comments

@matti
Copy link

matti commented Aug 21, 2024

the readme says

Note that Cage is developed against the latest tag of wlroots, in order to not constantly chase breaking changes as soon as they occur.

So I did just that:

FROM debian:bookworm-slim
ENV DEBIAN_FRONTEND=noninteractive
RUN echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/99norecommends

RUN set -eux ; \
  apt-get update ; \
  apt-get upgrade -y

RUN set -eux ; \
  apt-get update ; \
  apt-get install -y --no-install-recommends \
  curl ca-certificates wget zip htop nano iputils-ping

RUN set -eux ; \
  apt-get update ; \
  apt-get install -y --no-install-recommends \
  xz-utils

RUN set -eux ; \
  apt-get update ; \
  apt-get install -y --no-install-recommends \
  git build-essential cmake scdoc \
  python3-pip

RUN pip3 install --upgrade meson --break-system-packages

RUN set -eux ; \
  apt-get update ; \
  apt-get install -y --no-install-recommends \
  libffi-dev pkg-config libexpat-dev libxml2-dev graphviz doxygen xsltproc xmlto ninja-build

RUN set -eux ; \
  mkdir /ghjk ; cd /ghjk ; \
  git clone https://gitlab.freedesktop.org/wayland/wayland.git ; \
  cd wayland ; \
  git checkout 1.23.0 ; \
  meson build/ ; \
  ninja -C build/ install ; \
  rm -rf /ghjk

RUN set -eux ; \
  mkdir /ghjk ; cd /ghjk ; \
  git clone  https://gitlab.freedesktop.org/mesa/drm.git ; \
  cd drm ; \
  git checkout libdrm-2.4.122 ; \
  meson builddir/ ; \
  ninja -C builddir/ install ; \
  rm -rf /ghjk

RUN set -eux ; \
  apt-get update ; \
  apt-get install -y --no-install-recommends \
  libxkbcommon-dev libpixman-1-dev

RUN set -eux ; \
  mkdir /ghjk ; cd /ghjk ; \
  git clone https://gitlab.freedesktop.org/wayland/wayland-protocols.git ; \
  cd wayland-protocols ; \
  git checkout 1.36 ; \
  meson setup build/ ; \
  ninja -C build/ install ; \
  rm -rf /ghjk

#  https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3890
RUN set -eux ; \
  mkdir /ghjk ; cd /ghjk ; \
  git clone https://gitlab.freedesktop.org/wlroots/wlroots.git ; \
  cd wlroots ; \
  meson setup build/ ; \
  ninja -C build/ install ; \
  rm -rf /ghjk

RUN set -eux ; \
  mkdir /ghjk ; cd /ghjk ; \
  git clone https://github.com/cage-kiosk/cage.git ; \
  cd cage ; \
  git checkout v0.1.5 ; \
  meson build
1.672 Found CMake: /usr/bin/cmake (3.25.1)
1.672 Run-time dependency wlroots found: NO (tried pkgconfig and cmake)
1.672 Looking for a fallback subproject for the dependency wlroots
1.672
1.672 meson.build:38:17: ERROR: Neither a subproject directory nor a wlroots.wrap file was found.
1.672
1.672 A full log can be found at /ghjk/cage/build/meson-logs/meson-log.txt
1.672 WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.

see https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3890

@emersion
Copy link
Contributor

cage depends on an older wlroots version.

@matti
Copy link
Author

matti commented Aug 21, 2024

@emersion which is what the readme does not say.

but fine, which version will work?

@joggee-fr
Copy link
Collaborator

@matti
Yep, the README.md may be updated. Right now, Cage depends on branch 0.17 of wlroots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants