jetson-ffmpeg icon indicating copy to clipboard operation
jetson-ffmpeg copied to clipboard

Add libv4l2 to the pkg-config in order not to fail linking ffmpeg to nvmpi.so on the environments that doesn't support linking shared libs "like a chain"

Open kazuki0824 opened this issue 3 years ago • 4 comments

On Ubuntu the linker refers to rpath location by default. But when other environments like openembedded+bitbake or something like this, it is not. Adding libv4l2 to the Requires in pkg-config is essential since the program is slightly dependent on v4l2 function and lacking it can cause an issue on linking.

kazuki0824 avatar Feb 28 '21 16:02 kazuki0824

@jocover is it checked?

kazuki0824 avatar Oct 18 '21 11:10 kazuki0824

when i merged this pr, cmake and ffmpeg configure cannot find libv4l2

xia-chu avatar Nov 11 '21 13:11 xia-chu

@xia-chu Thank you for filing it. Can you find libv4l2's pkg-config file manually? I bet pkg-config isn't configured properly. Please check for 3 locations, under

  • ${BITBAKE_SYSROOT}/usr/lib/pkgconfig
  • ${BITBAKE_SYSROOT}/usr/lib/aarch64-linux-gnu/pkgconfig
  • ${BITBAKE_SYSROOT}/usr/local/lib/pkgconfig

Next, please try a recently committed new one.

kazuki0824 avatar Nov 18 '21 03:11 kazuki0824

@xia-chu Thank you for filing it. Can you find libv4l2's pkg-config file manually? I bet pkg-config isn't configured properly. Please check for 3 locations, under

* ${BITBAKE_SYSROOT}/usr/lib/pkgconfig

* ${BITBAKE_SYSROOT}/usr/lib/aarch64-linux-gnu/pkgconfig

* ${BITBAKE_SYSROOT}/usr/local/lib/pkgconfig

Next, please try a recently committed new one.

No, pkg-config can not find libv4l2 manually. libv4l2 is located in /usr/lib/aarch64-linux-gnu/tegra , if set the environment variable of PKG_CONFIG_PATH, we should be able to find libv4l2

xia-chu avatar Nov 18 '21 03:11 xia-chu