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

Compile errors with Arduino #185

Closed
Yardie- opened this issue Jun 4, 2022 · 3 comments · Fixed by #187
Closed

Compile errors with Arduino #185

Yardie- opened this issue Jun 4, 2022 · 3 comments · Fixed by #187
Assignees
Labels
arduino-ide building this with arduino ESP32

Comments

@Yardie-
Copy link
Contributor

Yardie- commented Jun 4, 2022

Trying to compile throws

Arduino/libraries/epdiy/src/epd_driver/board/epd_board_v6.c:2:10: fatal error: board/epd_board_v6.h: No such file or directoryResolveLibrary(board/epd_board_v6.h)
  -> candidates: []
 #include "board/epd_board_v6.h"


I know the Arduino precompiler is bizarre and I have often had path issues like this.
It is something I never really solved.

@martinberlin
Copy link
Collaborator

As I commented in Slack I think the issue with Arduino IDE is that it expects all header includes without relative paths.
Gregory also please add exact steps to reproduce the error. Like:

  • 1 Setup https://github.com/vroland/epdiy.git as a library ie symlink epdiy git to ~/Arduino/libraries
  • 2 Create an Arduino basic sketch to start display, draw some text or shapes and clearscreen at the end

@martinberlin martinberlin added bug Something isn't working arduino-ide building this with arduino ESP32 and removed bug Something isn't working labels Jun 4, 2022
@mickeprag
Copy link
Contributor

Ok, so I have been able to reproduce the issue. I get the same error.
I wonder what the best solution for this is? Is is possible to specify include directories for Arduino libraries?

@mickeprag
Copy link
Contributor

Adding the include paths explicitly is unfortunately not yet supported:
arduino/arduino-cli#502

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arduino-ide building this with arduino ESP32
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants