FROM ubuntu:22.04 RUN apt-get update && apt-get install -y \ git \ build-essential \ cmake \ ninja-build \ clang \ && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y \ '^libxcb.*-dev' \ libfontconfig1-dev \ libfreetype6-dev \ libx11-dev \ libx11-xcb-dev \ libglu1-mesa-dev \ libxrender-dev \ libxi-dev \ libxkbcommon-dev \ libxkbcommon-x11-dev \ libatspi2.0-dev \ && rm -rf /var/lib/apt/lists/* RUN git clone https://github.com/qt/qt5.git \ && cd qt5 \ && ./init-repository --module-subset=qtbase RUN cd qt5 \ # && git checkout 6d8dd19daeb7fb9f1edf43f9b97793dd971c3ce2 \ # sanitizer is not configured at all # && git checkout a3f2c30374c6e343d1dff01b17461aa39f6625ec \ # last dev that configures sanitizers && git checkout v6.7.0-beta3 \ # && git checkout v6.6.2 \ # && git checkout v6.2.4 \ && git submodule update --recursive RUN cd qt5 \ && mkdir build \ && cd build \ && ../configure \ # -platform linux-clang \ # comment out to build with clang -sanitize address RUN cd qt5/build \ && cmake --build . --parallel