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 Dec 21, 2023
1 parent d5e09d8 commit 96bae5f
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 32 deletions.
2 changes: 1 addition & 1 deletion docker/ubuntu20.04/native/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ RUN apt-get update && \
python3-pip \
intel-media-va-driver-non-free \
libigfxcmrt7 \
libmfx1 \
libva-drm2 \
libmfx1 \
libx264-155 \
libx265-179 \
libxcb-shm0 \
Expand Down
15 changes: 9 additions & 6 deletions docker/ubuntu20.04/selfbuild-prodkmd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -159,18 +159,18 @@ RUN apt-get update && \
cmake \
dh-autoreconf && \
rm -rf /var/lib/apt/lists/*
ARG ONEVPL_REPO=https://github.com/oneapi-src/oneVPL/archive/v2023.0.0.tar.gz
ARG LIBVPL_REPO=https://github.com/intel/libvpl/archive/v2023.0.0.tar.gz
RUN cd /opt/build && \
wget -O - ${ONEVPL_REPO} | tar xz
wget -O - ${LIBVPL_REPO} | tar xz

COPY patches/libvpl2 /opt/build/oneVPL-2023.0.0
RUN cd /opt/build/oneVPL-2023.0.0 && { set -e; \
COPY patches/libvpl2 /opt/build/libvpl-2023.0.0
RUN cd /opt/build/libvpl-2023.0.0 && { set -e; \
for patch_file in $(find -iname "*.patch" | sort -n); do \
echo "Applying: ${patch_file}"; \
patch -p1 < ${patch_file}; \
done; }
# build oneVPL
RUN cd /opt/build/oneVPL-2023.0.0 && \
# build libvpl
RUN cd /opt/build/libvpl-2023.0.0 && \
mkdir build && cd build && \
cmake \
-DCMAKE_BUILD_TYPE=Release \
Expand Down Expand Up @@ -512,6 +512,9 @@ ENTRYPOINT ["/usr/bin/demo-bash"]
# ... end of custom installation rules

# Custom component environment variables, if any...
# While onevpl was renamed to libvpl, as of now this mostly concerns project
# naming and repository location. Environment variable we define below still
# follows onevpl naming convention.
ENV ONEVPL_SEARCH_PATH=/opt/intel/samples/lib/
# ... end of custom environment variables

Expand Down
2 changes: 1 addition & 1 deletion docker/ubuntu20.04/selfbuild-prodkmd/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
include(defs.m4)dnl
divert(-1)
define(`USE_VPL_TOOLS',yes)
define(`ONEVPL_PATCH_PATH',patches/libvpl2)
define(`LIBVPL_PATCH_PATH',patches/libvpl2)
define(`MEDIA_DRIVER_PATCH_PATH',patches/media-driver)
define(`MFX_ENABLE_AENC',ON)
define(`ENABLE_PRODUCTION_KMD',ON)
Expand Down
15 changes: 9 additions & 6 deletions docker/ubuntu20.04/selfbuild/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -159,18 +159,18 @@ RUN apt-get update && \
cmake \
dh-autoreconf && \
rm -rf /var/lib/apt/lists/*
ARG ONEVPL_REPO=https://github.com/oneapi-src/oneVPL/archive/v2023.0.0.tar.gz
ARG LIBVPL_REPO=https://github.com/intel/libvpl/archive/v2023.0.0.tar.gz
RUN cd /opt/build && \
wget -O - ${ONEVPL_REPO} | tar xz
wget -O - ${LIBVPL_REPO} | tar xz

COPY patches/libvpl2 /opt/build/oneVPL-2023.0.0
RUN cd /opt/build/oneVPL-2023.0.0 && { set -e; \
COPY patches/libvpl2 /opt/build/libvpl-2023.0.0
RUN cd /opt/build/libvpl-2023.0.0 && { set -e; \
for patch_file in $(find -iname "*.patch" | sort -n); do \
echo "Applying: ${patch_file}"; \
patch -p1 < ${patch_file}; \
done; }
# build oneVPL
RUN cd /opt/build/oneVPL-2023.0.0 && \
# build libvpl
RUN cd /opt/build/libvpl-2023.0.0 && \
mkdir build && cd build && \
cmake \
-DCMAKE_BUILD_TYPE=Release \
Expand Down Expand Up @@ -512,6 +512,9 @@ ENTRYPOINT ["/usr/bin/demo-bash"]
# ... end of custom installation rules

# Custom component environment variables, if any...
# While onevpl was renamed to libvpl, as of now this mostly concerns project
# naming and repository location. Environment variable we define below still
# follows onevpl naming convention.
ENV ONEVPL_SEARCH_PATH=/opt/intel/samples/lib/
# ... end of custom environment variables

Expand Down
2 changes: 1 addition & 1 deletion docker/ubuntu20.04/selfbuild/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
include(defs.m4)dnl
divert(-1)
define(`USE_VPL_TOOLS',yes)
define(`ONEVPL_PATCH_PATH',patches/libvpl2)
define(`LIBVPL_PATCH_PATH',patches/libvpl2)
define(`MEDIA_DRIVER_PATCH_PATH',patches/media-driver)
define(`MFX_ENABLE_AENC',ON)
define(`ENABLE_PRODUCTION_KMD',OFF)
Expand Down
4 changes: 2 additions & 2 deletions docker/ubuntu22.04/intel-gfx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ RUN apt-get update && \
python3-pip \
intel-media-va-driver-non-free \
libigfxcmrt7 \
libva-drm2 \
libvpl2 \
libmfx1 \
libmfxgen1 \
libvpl2 \
libva-drm2 \
libx264-163 \
libx265-199 \
libxcb-shm0 \
Expand Down
4 changes: 2 additions & 2 deletions templates/ffmpeg.m4
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ define(`FFMPEG_BUILD_DEPS',`ca-certificates gcc g++ git dnl

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
ifelse(OS_NAME:OS_VERSION,ubuntu:20.04,libx264-155) dnl
ifelse(OS_NAME:OS_VERSION,ubuntu:22.04,libx264-163) dnl
ifelse(OS_NAME:OS_VERSION,ubuntu:20.04,libx265-179) dnl
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.0.0)
DECLARE(`LIBVPL_VER',2023.0.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,13 @@ RUN cd BUILD_HOME/oneVPL-ONEVPL_VER && \
make install
)

define(`ENV_VARS_ONEVPL',`dnl
define(`ENV_VARS_LIBVPL',`dnl
# While onevpl was renamed to libvpl, as of now this mostly concerns project
# naming and repository location. Environment variable we define below still
# follows onevpl naming convention.
ENV ONEVPL_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',22.6.1)
DECLARE(`MFX_ENABLE_AENC',OFF)
Expand Down
2 changes: 1 addition & 1 deletion templates/samples.m4
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ include(intel-gpu-tools.m4)
DECLARE(`DEVEL',yes)

define(`SAMPLES_INSTALL_DEPS',`dnl
ifdef(`BUILD_ONEVPL',,ifelse(USE_VPL_TOOLS,yes,libvpl-tools)) dnl
ifdef(`BUILD_LIBVPL',,ifelse(USE_VPL_TOOLS,yes,libvpl-tools)) dnl
ifdef(`BUILD_MSDK',,ifelse(USE_VPL_TOOLS,no,libmfx-tools)) dnl
linux-tools-generic nginx pciutils dnl
python3 python3-matplotlib python3-numpy dnl
Expand Down

0 comments on commit 96bae5f

Please sign in to comment.