-
Notifications
You must be signed in to change notification settings - Fork 0
/
jp46.qt515.dockerfile
71 lines (59 loc) · 3.28 KB
/
jp46.qt515.dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
FROM nvcr.io/nvidia/l4t-base:r32.6.1
LABEL maintainer="[email protected]"
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y build-essential cmake python3-pip git libxml2-dev libxslt1-dev
RUN apt-get install -y '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
RUN apt-get install -y libclang-dev libclang-9-dev libssl-dev libsdl2-dev libasound2 libxmu-dev libxi-dev freeglut3-dev libasound2-dev libjack-jackd2-dev libxrandr-dev
ENV LLVM_INSTALL_DIR=/usr/lib/llvm-10/
RUN pip3 install --upgrade pip setuptools && pip3 install packaging
RUN apt-get install -y ninja-build llvm-10 clang-10 libclang-10-dev g++-8 gcc-8
RUN apt install -y bison build-essential clang flex gperf \
libatspi2.0-dev libbluetooth-dev libclang-dev libcups2-dev libdrm-dev \
libegl1-mesa-dev libfontconfig1-dev libfreetype6-dev \
libgstreamer1.0-dev libhunspell-dev libnss3-dev \
libpulse-dev libssl-dev libts-dev libx11-dev libx11-xcb-dev \
libxcb-glx0-dev libxcb-icccm4-dev libxcb-image0-dev \
libxcb-keysyms1-dev libxcb-randr0-dev libxcb-render-util0-dev \
libxcb-shape0-dev libxcb-shm0-dev libxcb-sync-dev libxcb-util-dev \
libxcb-xfixes0-dev libxcb-xinerama0-dev libxcb-xkb-dev libxcb1-dev \
libxcomposite-dev libxcursor-dev libxdamage-dev libxext-dev \
libxfixes-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev \
libxkbfile-dev libxrandr-dev libxrender-dev libxshmfence-dev \
libxshmfence1 llvm ninja-build nodejs
WORKDIR /root/
RUN wget https://github.com/Kitware/CMake/releases/download/v3.24.1/cmake-3.24.1.tar.gz && \
tar -zxvf cmake-3.24.1.tar.gz && \
rm cmake-3.24.1.tar.gz && \
cd cmake-3.24.1 && \
./bootstrap && \
make && \
make install && \
cmake --version
RUN apt-get install -y ninja-build llvm-10 clang-10 libclang-10-dev g++-8 gcc-8
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 8 && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 8
RUN wget http://master.qt.io/archive/qt/5.15/5.15.2/single/qt-everywhere-src-5.15.2.tar.xz && \
tar -xpf qt-everywhere-src-5.15.2.tar.xz && \
rm qt-everywhere-src-5.15.2.tar.xz && \
cd qt-everywhere-src-5.15.2 && \
./configure -opensource \
-confirm-license \
-nomake examples \
-nomake tests \
-xcb \
-xcb-xlib \
-bundled-xcb-xinput && \
make -j12
RUN cd qt-everywhere-src-5.15.2 && make install
# RUN cd /root/ && git clone git://code.qt.io/pyside/pyside-setup.git && \
# cd pyside-setup && \
# git checkout 5.15.2 && \
# sed -i -- "s/\${QtGui_GEN_DIR}\/qopengltimemonitor_wrapper.cpp/#\${QtGui_GEN_DIR}\/qopengltimemonitor_wrapper.cpp/g" ~/pyside-setup/sources/pyside2/PySide2/QtGui/CMakeLists.txt && \
# sed -i -- "s/\${QtGui_GEN_DIR}\/qopengltimerquery_wrapper.cpp/#\${QtGui_GEN_DIR}\/qopengltimerquery_wrapper.cpp/g" ~/pyside-setup/sources/pyside2/PySide2/QtGui/CMakeLists.txt && \
# python3 setup.py build --qmake=/usr/local/Qt-5.15.2/bin/qmake
RUN cd /root/ && git clone git://code.qt.io/pyside/pyside-setup.git && \
cd pyside-setup && \
git checkout 5.15.2 && \
python3 setup.py build --qmake=/usr/local/Qt-5.15.2/bin/qmake
RUN cd /root/pyside-setup && python3 setup.py bdist_wheel --qmake=/usr/local/Qt-5.15.2/bin/qmake --only-package --ignore-git