msdk: issues when cross-compiling
When cross-compiling the msdk plugin, I am getting this:
Run-time dependency libmfx found: YES 1.34 Has header "mfx/mfxdefs.h" : YES
../gst-plugins-bad-1.18.1/sys/msdk/meson.build:72:2: ERROR: Include dir /usr/include/mfx does not exist.
The line:
include_directories : [configinc, mfx_inc]
breaks cross-compilation. It's looking at the host path.
When PKG_CONFIG_SYSROOT_DIR
is set, pkg-config
would prepend the target sysroot location to path of directories in -I or -L. But it won't be prepended to the values of the variables (in this case includedir
). The variable values should not be used to add directories to include path.
I am not sure why includedir
is being used at all .. shouldn't it be handled automatically when mfx_dep
is added to dependencies
?