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

fatal error: Adafruit_USBD_CDC.h: No such file or directory #39

Open
matsujirushi opened this issue Mar 19, 2023 · 2 comments
Open

fatal error: Adafruit_USBD_CDC.h: No such file or directory #39

matsujirushi opened this issue Mar 19, 2023 · 2 comments

Comments

@matsujirushi
Copy link
Contributor

元記事

Alternatives for Adafruit_USBD_CDC.h: []
ResolveLibrary(Adafruit_USBD_CDC.h)
  -> candidates: []
In file included from D:\DEVELOP\TakSan\MicroComputer\Arduino\ESP32\ALGYAN_Board\ALGYAN8_ES3_Test\ALGYAN8_ES3_Test.ino:10:
C:\Users\TakSan\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.1\cores\nRF5/Arduino.h:65:10: fatal error: Adafruit_USBD_CDC.h: No such file or directory
   65 | #include "Adafruit_USBD_CDC.h"
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1
@matsujirushi
Copy link
Contributor Author

matsujirushi commented Mar 19, 2023

下記手順で環境構築して試したが再現せず。

プラットフォームパッケージ

cd C:\Users\takashi\AppData\Local\arduino15\packages\Seeeduino\hardware\nrf52
rmdir /S /Q 1.1.1
git clone https://github.com/Seeed-Studio/Adafruit_nRF52_Arduino 1.1.1
cd 1.1.1
git submodule init
git submodule update

依存ライブラリ1

cd C:\Users\takashi\Documents\Arduino\libraries
git clone https://github.com/adafruit/Adafruit-GFX-Library
git clone https://github.com/adafruit/Adafruit_BusIO
git clone https://github.com/hideakitai/ArduinoEigen

依存ライブラリ2

cd C:\Users\takashi\Documents\Arduino\libraries
git clone https://github.com/pfeerick/elapsedMillis

xiaogyan_arduino

cd C:\Users\takashi\Documents\Arduino\libraries
git clone https://github.com/algyan/xiaogyan_arduino
  • src/Speaker.cppのledcAttachPin()ledcWriteTone()をコメント。

xiaogyan_examples

git clone https://github.com/algyan/xiaogyan_examples
  • arduino/HardwareTest/src/main.cppをHardwareTest.inoに名前変更。

ビルド

image

@matsujirushi
Copy link
Contributor Author

Adafruit_USBD_CDC.hはプラットフォームパッケージ内のlibrariesフォルダ配下にあります。
ファイルは存在していますか?
(ファイルが無いならば、git submodule init/updateが正常にできていないと思います。)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant