This repository has been archived by the owner on Sep 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
/
Dockerfile.emacs26
170 lines (146 loc) · 4.11 KB
/
Dockerfile.emacs26
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf
## update distro
RUN apt-get update && \
apt-get upgrade
## build deps
RUN apt-get update && \
apt-get install \
autotools-dev \
bison \
build-essential \
clang \
cmake \
flex \
git \
gnulib \
gperf \
inotify-tools \
libatspi2.0-dev \
libbluetooth-dev \
libclang-dev \
libcups2-dev \
libdrm-dev \
libegl1-mesa-dev \
libfontconfig1-dev \
libfreetype6-dev \
libgl-dev \
libgstreamer1.0-dev \
libhunspell-dev \
libmirclient-dev \
libmysqlclient-dev \
libnss3-dev \
libpulse-dev \
libsctp-dev \
libssl-dev \
libts-dev \
libwayland-dev \
libwayland-egl-backend-dev \
libwebp-dev \
libx11-dev \
libx11-xcb-dev \
libxcb-ewmh-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 \
ninja-build \
nodejs \
qt5-default \
qtwayland5 \
software-properties-common \
wget
WORKDIR /tmp
#####################################
# install gcc 11
RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
apt-get install gcc-11
# make gcc 11 default
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110
#####################################
## get cmake SDK
RUN wget https://github.com/Kitware/CMake/releases/download/v3.23.0/cmake-3.23.0.tar.gz && \
tar xf cmake-3.23.0.tar.gz
## configure cmake
RUN cd cmake-3.23.0 && ./configure
## build cmake
RUN cd cmake-3.23.0 && make
## install cmake
RUN cd cmake-3.23.0 && make install
#####################################
## get vulkan
RUN git clone https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers.git && \
cp -r Vulkan-LoaderAndValidationLayers/include/vulkan /usr/include/ && \
cd Vulkan-LoaderAndValidationLayers && \
./update_external_sources.sh
# build and install vulkan
RUN cd Vulkan-LoaderAndValidationLayers && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Debug .. && \
make && \
make install
ENV VULKAN_HEADERS_INSTALL_DIR=/usr/local/vulkan-sdk/Vulkan-Headers/build/install
#####################################
## get llvm install script
RUN wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh
## install llvm
RUN ./llvm.sh 14 all
# make llvm clang default
RUN update-alternatives --install /usr/bin/clang clang /usr/lib/llvm-14/bin/clang 140
# make llvm clang++ default
RUN update-alternatives --install /usr/bin/clang++ clang++ /usr/lib/llvm-14/bin/clang++ 140
ENV CC=/usr/bin/clang \
CXX=/usr/bin/clang++ \
CXX_STANDARD=c++17 \
CPLUS_INCLUDE_PATH=/usr/lib/llvm-14/include/c++/v1 \
LIBRARY_PATH=/usr/lib/llvm-14/lib \
LLVM_LIB_SEARCH_PATH=/usr/lib/llvm-14/lib \
CXXFLAGS="-std=c++17 -stdlib=libc++ -DCMAKE_CXX_STANDARD=17" \
PATH=$PATH:/usr/lib/llvm-14/bin
#####################################
## install vulkan hpp
## RUN git clone --depth=1 --recurse-submodules https://github.com/KhronosGroup/Vulkan-Hpp.git
## TODO
#####################################
## get qt
RUN wget https://download.qt.io/official_releases/qt/6.2/6.2.4/single/qt-everywhere-src-6.2.4.tar.xz && \
tar xf qt-everywhere-src-6.2.4.tar.xz
## configure qt
RUN cd /tmp/qt-everywhere-src-6.2.4 && \
./configure -prefix /usr/local/Qt6 \
-skip qtwebengine \
-c++std c++17 \
-inotify \
-feature-vulkan \
-sctp \
-eventfd
## build qt
RUN cd /tmp/qt-everywhere-src-6.2.4 && cmake --build . --parallel
#####################################
## configure qt modules
RUN cd /tmp/qt-everywhere-src-6.2.4 && ./usr/local/Qt6/bin/qt-configure-module