Issue when used as submodule #79
Replies: 8 comments
-
I don't use submodules. But if I were to guess, it's because your directory layout does not match the expectations of the Arduino IDE. The IDE is quite particular about where its libraries must live. The user-defined ones must live under |
Beta Was this translation helpful? Give feedback.
-
Have same issue even if place it in This need to be fixed. Libraries outside of source folder is generally a bad idea, due possibilities of version conflicts between projects. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure I understand what the problem is, what your propose fix is. I think it would be helpful if you included more info about your environment, your source directory structure, and the tools that you using. You say that AUnit works when installed using the Arduino IDE. That is the installation process which is supported. I don't use git submodules, I have never tested it, I don't mention it in my docs, so I don't what your source tree looks like, so I have no idea what is broken. I normally use diamond brackets very intentionally. |
Beta Was this translation helpful? Give feedback.
-
Other libraries as U8g2 of FreeRTOS port work ok. Arduino IDE do not have any packet manager, so I want to use C approach to ship right library versions. |
Beta Was this translation helpful? Give feedback.
-
I agree that your directory structure is better in many ways, and I even attempted to use something like when I first started working with Arduino. But Arduino does not support it, and it just broke too many things. I find it too difficult and time consuming to fight Arduino's design decisions, so my suggestion is to just go with the Arduino Library Manager defaults. |
Beta Was this translation helpful? Give feedback.
-
Ok. For now I will use a fork without |
Beta Was this translation helpful? Give feedback.
-
You might want to look at PlatformIO which uses a directory structure similar to yours. Third party libraries like AUnit should work. As a publisher of 3rd party libraries, I cannot use PlatformIO, but as a consumer, it should work just fine. |
Beta Was this translation helpful? Give feedback.
-
Closing this, but moving to Discussions for future reference. |
Beta Was this translation helpful? Give feedback.
-
Hi. For some reasons, I can't use AUnit as git submodule. When installed using Arduino IDE all works fine.
In my setup I got
Steps to reproduce:
Beta Was this translation helpful? Give feedback.
All reactions