Skip to content

Commit

Permalink
ics3a/build: fix onevpl component build after rename
Browse files Browse the repository at this point in the history
OneVPL library was moved to gihub.com/intel organization. This
commit fixes the build on our side.

Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
  • Loading branch information
dvrogozh committed Nov 28, 2023
1 parent bb5b157 commit 13ab1c0
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 31 deletions.
8 changes: 4 additions & 4 deletions docker/encoder/ubuntu22.04/intel-gfx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ RUN apt-get update && \
gcc \
g++ \
git \
libvpl-dev \
libva-dev \
libvpl-dev \
make \
patch \
pkg-config \
Expand Down Expand Up @@ -118,8 +118,8 @@ RUN apt-get update && \
gcc \
g++ \
libdrm-dev \
libvpl-dev \
libva-dev \
libvpl-dev \
meson \
patch \
pkg-config && \
Expand Down Expand Up @@ -160,10 +160,10 @@ RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
intel-media-va-driver-non-free \
libigfxcmrt7 \
libva-drm2 \
libvpl2 \
libmfx1 \
libmfxgen1 \
libvpl2 \
libva-drm2 \
libyaml-cpp0.7 \
libva2 \
iproute2 \
Expand Down
10 changes: 5 additions & 5 deletions docker/encoder/ubuntu22.04/selfbuild-prodkmd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ RUN apt-get update && \
cmake \
dh-autoreconf && \
rm -rf /var/lib/apt/lists/*
ARG ONEVPL_REPO=https://github.com/oneapi-src/oneVPL/archive/v2023.3.0.tar.gz
ARG LIBVPL_REPO=https://github.com/intel/libvpl/archive/v2023.3.0.tar.gz
RUN cd /opt/build && \
wget -O - ${ONEVPL_REPO} | tar xz
# build oneVPL
RUN cd /opt/build/oneVPL-2023.3.0 && \
wget -O - ${LIBVPL_REPO} | tar xz
# build libvpl
RUN cd /opt/build/libvpl-2023.3.0 && \
mkdir build && cd build && \
cmake \
-DCMAKE_BUILD_TYPE=Release \
Expand Down Expand Up @@ -324,7 +324,7 @@ RUN apt-get update && \
COPY --from=build /opt/dist /
RUN echo "/opt/lib" >> /etc/ld.so.conf.d/all-libs.conf && ldconfig

ENV ONEVPL_SEARCH_PATH=/opt/lib/
ENV LIBVPL_SEARCH_PATH=/opt/lib/
# Installing entrypoint helper scripts
COPY assets/demo-alive /usr/bin/
COPY assets/demo-bash /usr/bin/
Expand Down
2 changes: 1 addition & 1 deletion docker/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ m4_templates = files(
'../templates/m4docker/components/intel-gfx.m4',
'../templates/m4docker/components/libva2.m4',
'../templates/m4docker/components/libva2-utils.m4',
'../templates/m4docker/components/libvpl.m4',
'../templates/m4docker/components/media-driver.m4',
'../templates/m4docker/components/msdk.m4',
'../templates/m4docker/components/nodesource.m4',
'../templates/m4docker/components/onevpl-gpu.m4',
'../templates/m4docker/components/onevpl.m4',
'../templates/chrome.m4',
'../templates/defs.m4',
'../templates/encoder.m4',
Expand Down
8 changes: 4 additions & 4 deletions templates/encoder.m4
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ DECLARE(`ENCODER_BUILD_SERVER',enabled)
ifelse(ENCODER_BUILD_SERVER,enabled,`dnl
define(`ENCODER_BUILD_DEPS',`dnl
gcc g++ libdrm-dev dnl
ifdef(`BUILD_ONEVPL',,libvpl-dev) dnl
ifdef(`BUILD_LIBVA2',,libva-dev) dnl
ifdef(`BUILD_LIBVPL',,libvpl-dev) dnl
meson patch pkg-config')

define(`ENCODER_INSTALL_DEPS',`dnl
ifdef(`BUILD_ONEVPL',,libvpl2) dnl
ifdef(`BUILD_ONEVPLGPU',,libmfxgen1) dnl
ifdef(`BUILD_LIBVA2',,libva2 libva-drm2)')
ifdef(`BUILD_LIBVA2',,libva2 libva-drm2) dnl
ifdef(`BUILD_LIBVPL',,libvpl2) dnl
ifdef(`BUILD_ONEVPLGPU',,libmfxgen1)')
')

ifelse(ENCODER_BUILD_SERVER,disabled,`dnl
Expand Down
8 changes: 4 additions & 4 deletions templates/ffmpeg.m4
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ DECLARE(`FFMPEG_REPO_URL',https://github.com/FFmpeg/FFmpeg.git)
DECLARE(`FFMPEG_ENABLE_MFX',`2.x')

define(`FFMPEG_BUILD_DEPS',`ca-certificates gcc g++ git dnl
ifdef(`BUILD_MSDK',,ifelse(FFMPEG_ENABLE_MFX,1.x,libmfx-dev)) dnl
ifdef(`BUILD_ONEVPL',,ifelse(FFMPEG_ENABLE_MFX,2.x,libvpl-dev)) dnl
ifdef(`BUILD_LIBVA2',,libva-dev) dnl
ifdef(`BUILD_LIBVPL',,ifelse(FFMPEG_ENABLE_MFX,2.x,libvpl-dev)) dnl
ifdef(`BUILD_MSDK',,ifelse(FFMPEG_ENABLE_MFX,1.x,libmfx-dev)) dnl
make patch pkg-config xz-utils yasm')

define(`FFMPEG_INSTALL_DEPS',`dnl
ifdef(`BUILD_MEDIA_DRIVER',,intel-media-va-driver-non-free libigfxcmrt7) dnl
ifdef(`BUILD_LIBVA2',,libva-drm2) dnl
ifdef(`BUILD_LIBVPL',,ifelse(FFMPEG_ENABLE_MFX,2.x,libvpl2)) dnl
ifdef(`BUILD_MSDK',,libmfx1) dnl
ifdef(`BUILD_ONEVPLGPU',,ifelse(FFMPEG_ENABLE_MFX,2.x,libmfxgen1)) dnl
ifdef(`BUILD_ONEVPL',,ifelse(FFMPEG_ENABLE_MFX,2.x,libvpl2)) dnl
ifdef(`BUILD_LIBVA2',,libva-drm2) dnl
')

define(`BUILD_FFMPEG',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ dnl OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
dnl
include(begin.m4)

DECLARE(`ONEVPL_VER',2023.3.0)
DECLARE(`LIBVPL_VER',2023.3.0)

ifelse(OS_NAME,ubuntu,dnl
`define(`ONEVPL_BUILD_DEPS',`automake ca-certificates gcc g++ make pkg-config wget cmake dh-autoreconf')'
`define(`ONEVPL_INSTALL_DEPS',`')'
`define(`LIBVPL_BUILD_DEPS',`automake ca-certificates gcc g++ make pkg-config wget cmake dh-autoreconf')'
`define(`LIBVPL_INSTALL_DEPS',`')'
)

define(`BUILD_ONEVPL',
ARG ONEVPL_REPO=https://github.com/oneapi-src/oneVPL/archive/v`'ONEVPL_VER.tar.gz
define(`BUILD_LIBVPL',
ARG LIBVPL_REPO=https://github.com/intel/libvpl/archive/v`'LIBVPL_VER.tar.gz
RUN cd BUILD_HOME && \
wget -O - ${ONEVPL_REPO} | tar xz
ifdef(`ONEVPL_PATCH_PATH',`PATCH(BUILD_HOME/oneVPL-ONEVPL_VER,ONEVPL_PATCH_PATH)')dnl
# build oneVPL
RUN cd BUILD_HOME/oneVPL-ONEVPL_VER && \
wget -O - ${LIBVPL_REPO} | tar xz
ifdef(`LIBVPL_PATCH_PATH',`PATCH(BUILD_HOME/libvpl-LIBVPL_VER,LIBVPL_PATCH_PATH)')dnl
# build libvpl
RUN cd BUILD_HOME/libvpl-LIBVPL_VER && \
mkdir build && cd build && \
cmake \
-DCMAKE_BUILD_TYPE=Release \
Expand All @@ -55,10 +55,10 @@ RUN cd BUILD_HOME/oneVPL-ONEVPL_VER && \
make install
)

define(`ENV_VARS_ONEVPL',`dnl
ENV ONEVPL_SEARCH_PATH=BUILD_LIBDIR/
define(`ENV_VARS_LIBVPL',`dnl
ENV LIBVPL_SEARCH_PATH=BUILD_LIBDIR/
')

REG(ONEVPL)
REG(LIBVPL)

include(end.m4)dnl
2 changes: 1 addition & 1 deletion templates/m4docker/components/onevpl-gpu.m4
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dnl OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
dnl
include(begin.m4)
include(libva2.m4)
include(onevpl.m4)
include(libvpl.m4)

DECLARE(`ONEVPL_GPU_VER',23.2.4)
DECLARE(`MFX_ENABLE_AENC',OFF)
Expand Down

0 comments on commit 13ab1c0

Please sign in to comment.