-
Notifications
You must be signed in to change notification settings - Fork 8
Changes for Windows build of updated Emulator #8
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
Conversation
Latest update and sync of Arduino api folder are cool things, but some parts need some polishing at least on Windows. |
I am wondering: is the cmake build failing on Windows because of the string caps problem ? If this is still causing issues, I will consider to move back to WString.h |
Solution with In current situation includePath order does the trick on Windows, so compile is possible. I think let merge it as it is with |
I was doing some tests on OS/X and it was failing there as well. Can you double check with the actual state and open a new pull request for things which are still not working in Windows ? |
While this solution with They prefer not to add |
I was hoping that Arduino provides an api implementation that compiles as-is w/o issues on all platforms. |
Obvious solution is to rename I did migration to As for me, goal to have |
I pretty much gave up an the idea of a submodule. |
I managed to compile it with original code from Just some minor changes in See my commit: As for Looks like we about to land this thing! |
Just verified existing Arduino core implementation for tree structure is:
BTW in implementation files they use "api/Common.h" references, so only path to the root of core is nessesary... |
I had a closer look at this solution approach and it's working with the current functionality and examples, but I am afraid, I don't like it because it is breaking a lot of funcitonality: In Arduino we expect that something like #include "Stream.h" or #include "Print.h" is working to include the core functionality in a sketch. After applying the recommendation from Arduino, we would need to use #include "api/Stream.h" or #include "api/Print.h", which is clearly wrong! |
Just in case you mentioned, these are trampoline modules that are put in |
Agreed, for Print and String this is working. If I don't get any errors in the AudioTools, I will consider this solution. |
I merged the branch to main: the core is a git submodule now. |
I am fixing it, seems almost done |
Submodule works for Windows flawlessly! |
The problem with git action, that we forget to checkout submodules, so ArduinoCore-API folder is just empty :) |
Added missing functions bodies (random, randomSeed)
Added windows compile note (comment)
Added ability to manually run workflows