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

Arduino: no headers files (.h) found #3

Open
padaszewski opened this issue Feb 12, 2023 · 5 comments
Open

Arduino: no headers files (.h) found #3

padaszewski opened this issue Feb 12, 2023 · 5 comments

Comments

@padaszewski
Copy link

padaszewski commented Feb 12, 2023

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?

@chegewara
Copy link
Owner

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.

@padaszewski
Copy link
Author

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?

@djzrs
Copy link

djzrs commented Apr 10, 2023

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

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

@chiffacff
Copy link

Hello. Do you find solutions?

@lathoub
Copy link

lathoub commented Nov 22, 2023

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

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

5 participants