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

Missing libEGL.so.1 on installing v2.2.1 headless .deb in Debian 11 Docker #1099

Closed
mrdeveloperdude opened this issue Dec 17, 2023 · 5 comments · Fixed by f3d-app/f3d-superbuild#132

Comments

@mrdeveloperdude
Copy link

mrdeveloperdude commented Dec 17, 2023

Describe the bug

I installed the headless x64 package for debian (.deb ) v2.2.1 and it complains about missing libEGL.so.1

.deb is supposed to have dependency information inside it on libegl-mesa0 but it does not.

set(CPACK_DEBIAN_PACKAGE_DEPENDS "libbsd0, libxdmcp6, libglvnd0, libxcb1, libc6, libgcc1, libstdc++6, libopengl0, libglx0, libx11-6")

To Reproduce
Steps to reproduce the behavior:

  1. Create Dockerfile FROM debian 11 slim
  2. Curl install f3d headless v2.2.1 .deb
  3. apt-get install ./f3d.2.2.1.deb
  4. f3d --version

Expected behavior
F3D is installed and run normally showing the version

Actual behaviour
Error is thrown when running the program:

/usr/bin/f3d: error while loading shared libraries: libEGL.so.1: cannot open shared object file: No such file or directory

Dockerfile:

USER root
RUN apt-get update && apt-get -y full-upgrade && apt-get install -y --no-install-recommends \
	git \
	procps \
	curl \
	unzip \
	xvfb

RUN curl https://github.com/f3d-app/f3d/releases/download/v2.2.1/F3D-2.2.1-Linux-x86_64-headless.deb -L -v -o /tmp/f3d.deb

RUN apt-get install -y /tmp/f3d.deb \
	&& rm /tmp/f3d.deb \
	&& which f3d \
	&& f3d --version \
	&& rm -rf /var/lib/apt/lists/*

USER $USER_ID
@mwestphal
Copy link
Contributor

The package may be libegl1 after all

@Meakk
Copy link
Contributor

Meakk commented Dec 19, 2023

Reproduced.
I confirm installing libegl1 fixes the issue.

@Meakk
Copy link
Contributor

Meakk commented Dec 19, 2023

Here's my reproducible steps:

  1. On host side
  • docker pull linuxcontainers/debian-slim
  • docker run -it linuxcontainers/debian-slim
  1. In the docker image
  • apt-get update && apt-get -y full-upgrade && apt-get install -y --no-install-recommends curl ca-certificates
  • curl https://github.com/f3d-app/f3d/releases/download/v2.2.1/F3D-2.2.1-Linux-x86_64-headless.deb -L -v -o /tmp/f3d.deb
  • apt-get install -y /tmp/f3d.deb
  • f3d --version

@mwestphal
Copy link
Contributor

Lets reopen to check if we can avoid needing Xorg deps

@Meakk
Copy link
Contributor

Meakk commented Jan 6, 2024

Xorg is required, @mwestphal checked

@Meakk Meakk closed this as completed Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants