intel / libvpl

Intel® Video Processing Library (Intel® VPL) API, dispatcher, and examples
https://intel.github.io/libvpl/
MIT License
262 stars 80 forks source link

How To Do A Static Build #110

Closed ProdigyView closed 5 months ago

ProdigyView commented 8 months ago

I am trying to compile ffmpeg for a static build for distrubiton. When I get this error when I do:

 ERROR: libvpl >= 2.6 not found

I am currently doing the scripts for installation on linux:

if build "oneVPL" "2023.3.1"; then
  # libaom bcfe6fb == v3.5.0
  download "https://github.com/oneapi-src/oneVPL/archive/refs/tags/v2023.3.1.tar.gz" "oneVPL-2023.3.1" "oneVPL"
  cd oneVPL-2023.3.1 || exit
  execute script/bootstrap
  execute script/build
  execute script/install
  build_done "libvpl" "2.3.1"
fi
CONFIGURE_OPTIONS+=("--enable-libvpl")

Works fine if I don't do a static build. So can libvpl be compiled for a static compiling of ffmpeg?

akwrobel commented 8 months ago

@ProdigyView please check the CMAKE file when compiling VPL, you can set the BUILD_SHARED_LIBS to OFF and this should provide the static lib you are looking for.

If you still have issues can you provide more information on your setup?

movy commented 6 months ago

See also https://github.com/intel/cartwheel-ffmpeg/issues/286

akwrobel commented 5 months ago

Closed due to age and no further asks from the submitter.