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

3rd party C libraries #55

Closed
p3zhy opened this issue Jul 6, 2022 · 1 comment
Closed

3rd party C libraries #55

p3zhy opened this issue Jul 6, 2022 · 1 comment

Comments

@p3zhy
Copy link

p3zhy commented Jul 6, 2022

Hello . I want to add 3rd party C libraries to esp-idf components. But bindgen does not recognize this component and I cannot use its functions in the project. What is the way to add 3rd party C library?

@N3xed
Copy link
Collaborator

N3xed commented Jul 7, 2022

Unfortunately, this is not possible yet out of the box (see this issue esp-rs/esp-idf-sys#72).

To work around this, you could modify the esp-idf-sys:
- make sure the external component is built by modifying the CMakeLists.txt for the dummy project
- include the relevant headers in the binding.h header file so that bindgen picks it up

Closing, because this is really a esp-idf-sys issue. Please open an issue there or add to the existing issues related to this.

@N3xed N3xed closed this as completed Jul 7, 2022
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

2 participants