Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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" #78

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kazuki0824
Copy link

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.

…ly dependent on v4l2 function and lacking it can cause an issue on linking.
Replace v4l2 definition with pkg-config-based search
HunterAP23 added a commit to HunterAP23/jetson-ffmpeg that referenced this pull request May 4, 2021
@kazuki0824
Copy link
Author

@jocover is it checked?

@xia-chu
Copy link

xia-chu commented Nov 11, 2021

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

@kazuki0824
Copy link
Author

@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.

@xia-chu
Copy link

xia-chu commented Nov 18, 2021

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants