Skip to content

Commit 6d40934

Browse files
committed
fixed error
1 parent 22653e9 commit 6d40934

File tree

1 file changed

+53
-105
lines changed

1 file changed

+53
-105
lines changed

ffmpeg/Dockerfile.cv

Lines changed: 53 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -30,94 +30,50 @@ RUN set -xe && \
3030
apt-get install -y --no-install-recommends software-properties-common wget && \
3131
add-apt-repository -y ppa:deadsnakes/ppa && \
3232
apt-get update -y && \
33-
apt-get install -y \
34-
autoconf \
35-
automake \
36-
build-essential \
37-
gir1.2-gtk-3.0 \
38-
git \
39-
openssh-client \
40-
build-essential \
41-
cmake \
42-
python${PYTHON_VERSION} \
43-
python${PYTHON_VERSION}-dev \
44-
qtbase5-dev \
45-
graphviz \
46-
make \
47-
mercurial \
48-
mime-support \
49-
net-tools \
50-
openssh-server \
51-
pdsh \
52-
pkg-config \
53-
proj-bin \
54-
protobuf-compiler \
55-
subversion \
56-
texinfo \
57-
unzip \
58-
v4l-utils \
59-
x264 \
60-
xvfb \
61-
xz-utils \
62-
yasm \
63-
zip \
64-
zlib1g-dev \
33+
apt-get install -y --no-install-recommends \
34+
ca-certificates \
35+
curl \
36+
dkms \
37+
fonts-nanum \
38+
fonts-nanum-coding \
39+
fonts-nanum-extra \
40+
g++ \
41+
gfortran \
42+
htop \
43+
iputils-ping \
6544
libasound2-dev \
66-
libass-dev \
67-
libatlas-base-dev \
6845
libavcodec-dev \
69-
libavformat-dev \
70-
libavresample-dev \
7146
libboost-dev \
7247
libboost-filesystem-dev \
7348
libboost-system-dev \
74-
libcairo2-dev \
75-
libdc1394-22-dev \
76-
libeigen3-dev \
77-
libfaac-dev \
78-
libfreetype6-dev \
49+
libcairo2-dev libgirepository1.0-dev pkg-config gir1.2-gtk-3.0 \
7950
libgdal-dev python3-gdal \
80-
libgeos++-dev \
81-
libgeos-dev \
82-
libgirepository1.0-dev \
83-
libgoogle-glog-dev \
84-
libgflags-dev \
85-
libgphoto2-dev \
86-
libgstreamer-plugins-base1.0-dev \
87-
libgstreamer1.0-dev \
88-
libgtk-3-dev \
89-
libhdf5-dev \
90-
liblapack-dev \
91-
libmp3lame-dev \
9251
libnuma-dev \
93-
libopenblas-dev \
94-
libopencore-amrnb-dev \
95-
libopencore-amrwb-dev \
96-
libportmidi-dev \
97-
libproj-dev \
98-
libprotobuf-dev \
99-
libsdl-image1.2-dev \
100-
libsdl-mixer1.2-dev \
101-
libsdl-ttf2.0-dev \
102-
libsdl2-dev \
52+
libopenblas-dev liblapack-dev \
10353
libsm6 \
10454
libswscale-dev \
105-
libtheora-dev \
106-
libtool \
10755
libv4l-dev \
108-
libva-dev \
109-
libvdpau-dev \
110-
libvorbis-dev \
111-
libx264-dev \
112-
libxcb-shm0-dev \
113-
libxcb-xfixes0-dev \
11456
libxext6 \
11557
libxine2-dev \
11658
libxml2-dev \
11759
libxrender-dev \
11860
libxslt1-dev \
119-
libxvidcore-dev \
120-
libzmq3-dev \
61+
make \
62+
mime-support \
63+
net-tools \
64+
openssh-server \
65+
pdsh \
66+
proj-bin libproj-dev libgeos-dev libgeos++-dev graphviz \
67+
subversion \
68+
unzip \
69+
xvfb \
70+
xz-utils \
71+
yasm \
72+
zip \
73+
openssh-client \
74+
build-essential \
75+
gcc \
76+
git \
12177
libavformat-dev \
12278
libcurl3-dev \
12379
libfreetype6-dev \
@@ -126,15 +82,26 @@ RUN set -xe && \
12682
libjpeg-dev \
12783
libmpdec2 \
12884
libpng-dev \
129-
libsdl-dev \
130-
libsmpeg-dev \
85+
libsdl-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev \
86+
libsmpeg-dev libportmidi-dev libavformat-dev libswscale-dev \
13187
libssl-dev \
132-
libtbb-dev \
13388
libtiff-dev \
134-
libxcb1-dev \
135-
&& \
89+
libzmq3-dev \
90+
pkg-config \
91+
python${PYTHON_VERSION} \
92+
python${PYTHON_VERSION}-dev \
93+
vim \
94+
wget \
95+
zlib1g-dev \
96+
wget build-essential automake autoconf git libtool libvorbis-dev \
97+
libass-dev libfreetype6-dev libsdl2-dev libva-dev libvdpau-dev \
98+
libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev \
99+
mercurial libnuma-dev texinfo zlib1g-dev \
100+
qtbase5-dev && \
136101
mkdir -p /usr/local/ffmpeg_sources && \
137102
ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h && \
103+
mkdir -p /etc/OpenCL/vendors && \
104+
echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icdn && \
138105
apt-get clean && \
139106
rm -rf /var/lib/apt/lists/
140107

@@ -149,37 +116,18 @@ RUN ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/lib
149116
echo "/usr/local/cuda/lib64/stubs" > /etc/ld.so.conf.d/z-cuda-stubs.conf && \
150117
ldconfig
151118

152-
RUN rm /usr/bin/python /usr/bin/python3 && \
119+
RUN wget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0-Linux-x86_64.sh \
120+
-q -O /tmp/cmake-install.sh && \
121+
chmod u+x /tmp/cmake-install.sh && \
122+
mkdir /usr/bin/cmake && \
123+
/tmp/cmake-install.sh --skip-license --prefix=/usr/bin/cmake && \
124+
rm /tmp/cmake-install.sh
125+
126+
RUN rm /usr/bin/python3 && \
153127
ln -s /usr/bin/python3.8 /usr/bin/python3 && \
154128
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 && \
155129
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
156130

157-
# OFED
158-
WORKDIR /tmp
159-
RUN wget -q -O - https://www.mellanox.com/downloads/ofed/MLNX_OFED-5.1-2.3.7.1/MLNX_OFED_LINUX-${MLNX_OFED_VERSION}-ubuntu18.04-x86_64.tgz | tar xzf - && \
160-
cd /tmp/MLNX_OFED_LINUX-${MLNX_OFED_VERSION}-ubuntu18.04-x86_64 && \
161-
./mlnxofedinstall --user-space-only --without-fw-update --all -q && \
162-
cd /tmp && \
163-
rm -rf /tmp/MLNX_OFED_LINUX-${MLNX_OFED_VERSION}-ubuntu18.04-x86_64*
164-
165-
# nvidia-peer
166-
WORKDIR /tmp
167-
RUN git clone https://github.com/Mellanox/nv_peer_memory.git /tmp/nv_peer_memory && \
168-
cd /tmp/nv_peer_memory && \
169-
./build_module.sh && \
170-
cd /tmp && \
171-
tar xzf /tmp/nvidia-peer-memory_1.1.orig.tar.gz && \
172-
cd /tmp/nvidia-peer-memory-1.1 && \
173-
dpkg-buildpackage -us -uc && \
174-
dpkg -i /tmp/nvidia-peer-memory_1.1-0_all.deb
175-
176-
#RUN wget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0-Linux-x86_64.sh \
177-
# -q -O /tmp/cmake-install.sh && \
178-
# chmod u+x /tmp/cmake-install.sh && \
179-
# mkdir /usr/bin/cmake && \
180-
# /tmp/cmake-install.sh --skip-license --prefix=/usr/bin/cmake && \
181-
# chmod +x /usr/bin/cmake && \
182-
# rm /tmp/cmake-install.sh
183131

184132
# Instaling NASM
185133
WORKDIR /usr/local/ffmpeg_sources

0 commit comments

Comments
 (0)