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

Exploring ways to integrate/automate C header files in porject #27

Open
vladimirvivien opened this issue Sep 10, 2022 · 0 comments
Open

Comments

@vladimirvivien
Copy link
Owner

In #20, @ajcasagrande contributed code changes that copied the Kernel v4l2 header files from a specific commit. This provides for a more stable build experience because the code does not depend on the local machine to provide the header files. This is very useful, however @farshidtz pointed out, in the closed PR, that there could be some unforeseen additional issues.

I am opening this issue provide a place to continue discussions on this and also propose additional ways of approaching this problem. There are some valid issues brought forth in the discussion above. I am doing some research to see how other Go projects handle this. What I have seen so far

  • Project that includes the headers, as is done here
  • Project that automatically pull a specific version at commit, via submodules

I think there is a middle ground solutions that can be adopted, while avoiding any additional burden for users of this library.

Possible solutions

  • Manually update header files and pinned to a specific version (as done now)
  • Creating a simple code gen (Makefile/script) to automates pulling header files for a specified Kernel version.
  • Will add more proposals as I continue to explore
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

No branches or pull requests

1 participant