@@ -12,19 +12,32 @@ ENV PYTHONDONTWRITEBYTECODE=1
1212ENV PYTHONUNBUFFERED=1
1313
1414# ##############################################################################
15- # https://doc.qt.io/qt-5/linux-requirements.html
16- # export QT_DEBUG_PLUGINS=1
17- RUN apt update && apt install -y libxrender1 libxcb-render0 libxcb-render-util0 \
18- libxcb-shape0 libxcb-randr0 libxcb-xfixes0 libxcb-sync1 libxcb-shm0 \
19- libxcb-icccm4 libxcb-keysyms1 libxcb-image0 libxkbcommon0 \
20- libxkbcommon-x11-0 libfontconfig1 libfreetype6 libxext6 libx11-6 libxcb1 \
21- libx11-xcb1 libsm6 libice6 libglibd-2.0-0
22- # Additional requirements
23- RUN apt install -y libgl1 libxcb-xinerama0 libdbus-1-3
24- # Qt6 QtGui requires libEGL.so.1, libxcb-cursor0 for Qt xcb platform plugin
25- RUN apt install -y libegl1 libxcb-cursor0
26- # qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
27- RUN apt install -y libwayland-egl1 libwayland-cursor0
15+ # Requirements: https://doc.qt.io/qt-5/linux-requirements.html | https://doc.qt.io/qt-6/linux-requirements.html
16+ # Additional libraries for Qt5: libxcb-xinerama0 libxcursor1
17+ # Check module load: ldd $(python -c "from PySide6 import QtWidgets as m; print(m.__file__)")
18+ # Check Qt plugins load: QT_DEBUG_PLUGINS=1
19+ # Check all libs: find /usr/local/lib/python3.12/site-packages/PySide6 -type f -executable ! -name "*.py" ! -path "*/scripts/*" | xargs -I {} sh -c 'echo {}; ldd "{}" | grep "not found"'
20+ # Force Wayland or XCB: QT_QPA_PLATFORM=wayland | wayland-egl | xcb
21+ RUN apt update && apt install -y \
22+ libgl1 \
23+ libxkbcommon0 \
24+ libegl1 \
25+ libfontconfig1 \
26+ libglib2.0-0 \
27+ libdbus-1-3 \
28+ libxcb-cursor0 \
29+ libxkbcommon-x11-0 \
30+ libxcb-icccm4 \
31+ libxcb-keysyms1 \
32+ libxcb-shape0 \
33+ libwayland-cursor0 \
34+ libatomic1 \
35+ libwayland-egl1 \
36+ libxrender1 \
37+ libice6 \
38+ libsm6 \
39+ && rm -rf /var/lib/apt/lists/*
40+
2841# ##############################################################################
2942
3043WORKDIR /app
0 commit comments