esp32-usb-v2 icon indicating copy to clipboard operation
esp32-usb-v2 copied to clipboard

Arduino: no headers files (.h) found

Open padaszewski opened this issue 2 years ago • 5 comments

Hi,

I'm trying to prototype with Arduino, but I can't compile the sample sketches because of the error: no headers files (.h) found. In fact there are no header files.

Here is what I have done:

  1. Repo downloaded,
  2. Copied to Arduino/libraries
  3. New project with example code (cdc)
  4. Result: usb_cdc.hpp: No such file or directory

Edit: I've added the library.proprties file and it is working now.

Edit2: I would also like to help with development if I can find the time. Is this the right email from the profile? We could get in touch. Some initial introduction and explanation would be great.

Any help with this?

padaszewski avatar Feb 12 '23 14:02 padaszewski

Yes, sorry for that. Ive been trying to make library compatible with arduino and esp-idf, but its a big mess right now. Arduino is using own clone of tinyusb and own config flags, so i have to rest a bit from this library and play a bit with something else.

chegewara avatar Feb 12 '23 22:02 chegewara

Thx for the fast answer. About half a year ago I was trying to create a prototype host device (ESP32 S3) for a custom USB device. I tried many libraries, but the only one that helped me in any way at that time was yours. It was the only one that received any messages from the device. I am not an expert in hardware or C programming. I started prototyping in Arduino, but somehow without success. Would you be able to advise if it is worthwhile to take an interest in ESP-IDF in such a usecase? And if I have a custom USB device, which CDC should I start with? And did I understand correctly? For now you stop the development of this library?

padaszewski avatar Feb 13 '23 07:02 padaszewski

Arduino:1.8.19 (Windows 10), 开发板:"ESP32S2 Dev Module, Enabled, Disabled, Disabled, Internal USB, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi), QIO, 80MHz, 4MB (32Mb), 921600, None, Disabled"

keyboard:3:10: fatal error: usb_keyboard.hpp: No such file or directory

compilation terminated.

exit status 1

usb_keyboard.hpp: No such file or directory

在文件 -> 首选项开启 “编译过程中显示详细输出”选项 这份报告会包含更多信息。

djzrs avatar Apr 10 '23 13:04 djzrs

Hello. Do you find solutions?

chiffacff avatar Jun 30 '23 21:06 chiffacff

I believe this relates to a missing library.properties file, that specifies a default include file (includes=).

See here

It states: If the includes property is missing, all the header files (.h) on the root source folder are included.

Buy there are only .hpp files, no .h files, hence the error.

I got past the missing file error (I added a usb_message.cpp and usb_message.cpp file, the .h file includes the .hpp) during compilation, only to get error stated in #8

lathoub avatar Nov 22 '23 15:11 lathoub