-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
84 lines (72 loc) · 2.28 KB
/
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y \
git \
autoconf \
automake \
libtool-bin \
pkg-config \
g++ \
gcc \
cmake \
make \
ninja-build \
libpciaccess-dev \
libdrm-dev \
libxext-dev \
libxfixes-dev \
libx11-dev \
wget \
&& \
rm -rf /var/lib/apt/lists/*
RUN test -n ${http_proxy} && git config --global http.proxy ${http_proxy}
RUN test -n ${https_proxy} && git config --global https.proxy ${https_proxy}
RUN mkdir -p /components
WORKDIR /components
RUN \
git clone https://github.com/01org/libva && \
cd libva && \
./autogen.sh && \
./configure --enable-x11 --enable-drm --prefix=/usr --libdir=/usr/lib && \
make -j8 install
# Build vainfo and test_va_api tools
RUN \
git clone https://github.com/01org/libva-utils && \
cd libva-utils && \
./autogen.sh && \
./configure --enable-tests --enable-x11 --enable-drm --prefix=/usr --libdir=/usr/lib && \
make -j8 install
# Build either intel-vaapi-driver ...
# RUN \
# git clone https://github.com/01org/intel-vaapi-driver && \
# cd intel-vaapi-driver && \
# ./autogen.sh && \
# ./configure --enable-tests --enable-x11 --enable-drm --prefix=/usr --libdir=/usr/lib && \
# make -j8 install
# ... or media_driver
RUN \
git clone https://github.com/intel/media-driver && \
git clone https://github.com/intel/gmmlib && \
mkdir build-media-driver && \
cd build-media-driver && \
cmake ../media-driver \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DLIBVA_DRIVERS_PATH=/usr/lib/dri \
-DMEDIA_VERSION="2.0.0" \
-DBUILD_ALONG_WITH_CMRTLIB=1 \
-DBS_DIR_GMMLIB=`pwd`/../gmmlib/Source/GmmLib/ \
-DBS_DIR_COMMON=`pwd`/../gmmlib/Source/Common/ \
-DBS_DIR_INC=`pwd`/../gmmlib/Source/inc/ \
-DBS_DIR_MEDIA=`pwd`/../media-driver && \
make -j8 install
ENV LIBVA_DRIVER_NAME iHD
ENV LIBVA_DRIVERS_PATH /usr/lib/dri
# Build MediaSDK
RUN \
git clone https://github.com/Intel-Media-SDK/MediaSDK && \
mkdir build-msdk && \
cd build-msdk && \
cmake -GNinja ../MediaSDK && \
ninja install
ENV MFX_HOME /opt/intel/mediasdk