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

PRIV_REQUIRES onewire_bus (BSP-481) #316

Closed
morgana2313 opened this issue Mar 26, 2024 · 3 comments
Closed

PRIV_REQUIRES onewire_bus (BSP-481) #316

morgana2313 opened this issue Mar 26, 2024 · 3 comments

Comments

@morgana2313
Copy link

Using ds18b20 gives an error:

components/espressif__ds18b20/src/ds18b20.c:10:10: fatal error: onewire_bus.h: No such file or directory
   10 | #include "onewire_bus.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
[...]
BUG: onewire_bus.h found in component espressif__onewire_bus which is already in the requirements list of espressif__ds18b20

Fix: components/ds18b20/CMakeLists.txt

idf_component_register(SRCS "src/ds18b20.c"
                       INCLUDE_DIRS "include"
+                        PRIV_REQUIRES onewire_bus
)
@github-actions github-actions bot changed the title PRIV_REQUIRES onewire_bus PRIV_REQUIRES onewire_bus (BSP-481) Mar 26, 2024
@suda-morris
Copy link
Collaborator

suda-morris commented Apr 7, 2024

Hi @morgana2313 May I know how you use the onewire_bus and the ds18b20 components? Are you using them with component manager? In the manifest file, we have declared the dependency on the onewire_bus.

@tore-espressif
Copy link
Collaborator

Closing due to lack of feedback. Feel free to reopen

@morgana2313
Copy link
Author

morgana2313 commented Jun 10, 2024 via email

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

3 participants