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

The component usb_device could not be found (AEGHB-614) #75

Closed
Mair opened this issue Apr 9, 2024 · 2 comments
Closed

The component usb_device could not be found (AEGHB-614) #75

Mair opened this issue Apr 9, 2024 · 2 comments

Comments

@Mair
Copy link

Mair commented Apr 9, 2024

Hi there,

I'm trying the following

  1. in vs code created an empty project targeting the ESP32-S3
  2. ran idf.py add-dependency "espressif/mesh_lite^0.10.2"
  3. tried to build with `idf.py build'

I get the following error

HINT: The component usb_device could not be found....

I looked for other issues related to this and found #20
if I add the following to my idf_component.yml

  usb_device:
    path: components/usb/usb_device
    git: https://github.com/espressif/esp-iot-bridge.git
    rules:
      - if: "target in [esp32s2, esp32s3]"

then I get this errer
/Users/mair/projects/spike/mesh-lite-spike/managed_components/espressif__iot_bridge/src/bridge_common.c:487:13: error: implicit declaration of function 'ip_napt_enable' [-Werror=implicit-function-declaration]
487 | ip_napt_enable(ip_info->ip.addr, 1);
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors

Could you please advise how to get the library compiling

I understand the library is new however, might I humbly request a getting started guide while the library is having teething issues.

@github-actions github-actions bot changed the title The component usb_device could not be found The component usb_device could not be found (AEGHB-614) Apr 9, 2024
@tswen
Copy link
Contributor

tswen commented Apr 9, 2024

You can check your configuration to confirm whether the following two configuration items are enabled:

CONFIG_LWIP_IP_FORWARD=y
CONFIG_LWIP_IPV4_NAPT=y

@Mair
Copy link
Author

Mair commented Apr 10, 2024

thanks @tswen
updating the sdkconfig with
CONFIG_LWIP_IP_FORWARD=y
CONFIG_LWIP_IPV4_NAPT=y
and adding the following to my idf_component.yml

  usb_device:
    path: components/usb/usb_device
    git: https://github.com/espressif/esp-iot-bridge.git
    rules:
      - if: "target in [esp32s2, esp32s3]"

Has enabled me to compile

@Mair Mair closed this as completed Apr 10, 2024
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